mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 06:56:23 +02:00
call company status directly
This commit is contained in:
parent
7f6c4f24a6
commit
6d810bb604
1 changed files with 8 additions and 1 deletions
|
@ -83,7 +83,14 @@ module Actions
|
||||||
|
|
||||||
Rails.logger.info "======= I AM HERE"
|
Rails.logger.info "======= I AM HERE"
|
||||||
|
|
||||||
company_status = contact.return_company_status
|
# company_status = contact.return_company_status
|
||||||
|
# Rails.logger.info "company_status: #{company_status}"
|
||||||
|
|
||||||
|
company_register = CompanyRegister::Client.new
|
||||||
|
res = company_register.simple_data(registration_number: ident.to_s)
|
||||||
|
Rails.logger.info "res: #{res.inspect}"
|
||||||
|
|
||||||
|
company_status = res.first[:status]
|
||||||
Rails.logger.info "company_status: #{company_status}"
|
Rails.logger.info "company_status: #{company_status}"
|
||||||
|
|
||||||
return if [Contact::REGISTERED, Contact::LIQUIDATED].include? company_status
|
return if [Contact::REGISTERED, Contact::LIQUIDATED].include? company_status
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue