mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 15:44:45 +02:00
added another breakpoints
This commit is contained in:
parent
fccac285ac
commit
b0ca5ddec0
2 changed files with 2 additions and 43 deletions
|
@ -102,48 +102,6 @@ module Api
|
||||||
ident_type: 'priv', ident_country_code: country)
|
ident_type: 'priv', ident_country_code: country)
|
||||||
return contact if contact
|
return contact if contact
|
||||||
|
|
||||||
# company_register = CompanyRegister::Client.new
|
|
||||||
# res = company_register.representation_rights(citizen_personal_code: company_codes,
|
|
||||||
# citizen_country_code: current_registrant_user.country.alpha3)
|
|
||||||
# p "++++++++++++++++"
|
|
||||||
# p res
|
|
||||||
# p "+++++++++++++++++"
|
|
||||||
# res.each do |r|
|
|
||||||
# unless contact.name == r.company_ame
|
|
||||||
# contact.update(name: r.company_name)
|
|
||||||
# end
|
|
||||||
#
|
|
||||||
p "+++++++++++++++++"
|
|
||||||
p "+++++++++++++++++"
|
|
||||||
p current_registrant_user.companies
|
|
||||||
p "+++++++++++++++++"
|
|
||||||
p "+++++++++++++++++"
|
|
||||||
p "+++++++++++++++++"
|
|
||||||
p company_codes
|
|
||||||
p "+++++++++++++++++"
|
|
||||||
p "+++++++++++++++++"
|
|
||||||
p "+++++++++++++++++"
|
|
||||||
|
|
||||||
|
|
||||||
current_registrant_user.companies.each do |i|
|
|
||||||
# c = Contact.find_by(uuid: uuid, ident_type: 'org', ident: company_codes,
|
|
||||||
# ident_country_code: country)
|
|
||||||
|
|
||||||
p "+++++++++++++++++"
|
|
||||||
p "+++++++++++++++++"
|
|
||||||
# p c.org_name
|
|
||||||
p "+++++++++++++++++"
|
|
||||||
p "+++++++++++++++++"
|
|
||||||
p i.companies
|
|
||||||
p i.company_name
|
|
||||||
p "+++++++++++++++++"
|
|
||||||
p "+++++++++++++++++"
|
|
||||||
|
|
||||||
# unless c.org_name == i.company_name
|
|
||||||
# c.update(org_name: company_name)
|
|
||||||
# end
|
|
||||||
end
|
|
||||||
|
|
||||||
Contact.find_by(uuid: uuid, ident_type: 'org', ident: company_codes,
|
Contact.find_by(uuid: uuid, ident_type: 'org', ident: company_codes,
|
||||||
ident_country_code: country)
|
ident_country_code: country)
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,8 @@ class RegistrantUser < User
|
||||||
def companies(company_register = CompanyRegister::Client.new)
|
def companies(company_register = CompanyRegister::Client.new)
|
||||||
return [] if ident.include?('-')
|
return [] if ident.include?('-')
|
||||||
|
|
||||||
company_register.representation_rights(citizen_personal_code: ident,
|
p "++++++++++++++++++++++++++++++++++++++++"
|
||||||
|
p company_register.representation_rights(citizen_personal_code: ident,
|
||||||
citizen_country_code: country.alpha3)
|
citizen_country_code: country.alpha3)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue