|
|
|
|
|
|
|
|
$documentFactory = new DocumentFactory(); |
|
|
$documentFactory = new DocumentFactory(); |
|
|
|
|
|
|
|
|
$document = $documentFactory->create($orderShop->getSection()->getMerchant(), DocumentModel::TYPE_INVOICE); |
|
|
$document = $documentFactory->create($orderShop->getSection()->getMerchant(), DocumentModel::TYPE_INVOICE); |
|
|
|
|
|
|
|
|
|
|
|
$document->setTitle($orderShop->__toString()); |
|
|
$this->documentBuilder->initFromOrderShop($document, $orderShop); |
|
|
$this->documentBuilder->initFromOrderShop($document, $orderShop); |
|
|
return $document; |
|
|
return $document; |
|
|
} |
|
|
} |