diff --git a/intaro.retailcrm/classes/general/CorporateCustomerBuilder.php b/intaro.retailcrm/classes/general/CorporateCustomerBuilder.php index 3176a01d..dc087c67 100644 --- a/intaro.retailcrm/classes/general/CorporateCustomerBuilder.php +++ b/intaro.retailcrm/classes/general/CorporateCustomerBuilder.php @@ -203,6 +203,10 @@ class CorporateCustomerBuilder extends AbstractBuilder implements RetailcrmBuild $this->customerBuilder->setDataCrm($this->dataCrm['contact'])->build(); $this->corporateContact = $this->customerBuilder->getCustomer(); $this->customer = $this->customerBuilder->getCustomer(); + } elseif (isset($this->dataCrm['customer'])) { + $this->customerBuilder->setDataCrm($this->dataCrm['customer'])->build(); + $this->corporateContact = $this->customerBuilder->getCustomer(); + $this->customer = $this->customerBuilder->getCustomer(); } else { $this->corporateContact = null; $this->customer = null;