1
0
mirror of synced 2024-11-21 21:06:09 +03:00

Create customer without contact (#189)

This commit is contained in:
RenCurs 2021-04-02 11:58:44 +03:00 committed by GitHub
parent f842142791
commit 06ccfd9add
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,6 +203,10 @@ class CorporateCustomerBuilder extends AbstractBuilder implements RetailcrmBuild
$this->customerBuilder->setDataCrm($this->dataCrm['contact'])->build(); $this->customerBuilder->setDataCrm($this->dataCrm['contact'])->build();
$this->corporateContact = $this->customerBuilder->getCustomer(); $this->corporateContact = $this->customerBuilder->getCustomer();
$this->customer = $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 { } else {
$this->corporateContact = null; $this->corporateContact = null;
$this->customer = null; $this->customer = null;