|
|
|
|
|
|
|
|
public function createDocumentInvoice(OrderShopInterface $orderShop) |
|
|
public function createDocumentInvoice(OrderShopInterface $orderShop) |
|
|
{ |
|
|
{ |
|
|
$merchantAddress = $orderShop->getMerchant()->getAddress() ; |
|
|
$merchantAddress = $orderShop->getMerchant()->getAddress() ; |
|
|
$buyerAddress = $orderShop->getBillingAddress() ; |
|
|
|
|
|
|
|
|
$buyerAddress = $orderShop->getInvoiceAddress() ; |
|
|
|
|
|
|
|
|
$document = $this->documentUtils->createDocument([ |
|
|
$document = $this->documentUtils->createDocument([ |
|
|
'type' => Document::TYPE_INVOICE, |
|
|
'type' => Document::TYPE_INVOICE, |