Create customer without contact (#189)
This commit is contained in:
parent
f842142791
commit
06ccfd9add
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user