diff --git a/src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php b/src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php index ca6d60ddae61e9d837a283384d6ec87838bf453c..a15e07ec796770dff8efa4baf15fbe6bfbc67c44 100644 --- a/src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php +++ b/src/QUI/ERP/Accounting/Invoice/InvoiceTemporary.php @@ -375,6 +375,10 @@ public function getCustomer() } if (!empty($invoiceAddress)) { + if (!empty($this->getAttribute('contact_person'))) { + $invoiceAddress['contactPerson'] = $this->getAttribute('contact_person'); + } + $userData['address'] = $invoiceAddress; if (empty($userData['firstname']) && !empty($invoiceAddress['firstname'])) {