Skip to content
Code-Schnipsel Gruppen Projekte
Commit 7af00232 erstellt von Patrick Müller's avatar Patrick Müller
Dateien durchsuchen

Merge branch 'dev' of dev.quiqqer.com:quiqqer/invoice into dev

Übergeordnete 020dc577 45e7f052
No related branches found
No related tags found
Keine zugehörigen Merge Requests gefunden
...@@ -176,6 +176,17 @@ public static function getTemplateData($entityId) ...@@ -176,6 +176,17 @@ public static function getTemplateData($entityId)
$globalInvoiceText = QUI::getLocale()->get('quiqqer/invoice', 'global.invoice.text'); $globalInvoiceText = QUI::getLocale()->get('quiqqer/invoice', 'global.invoice.text');
} }
// order number
$orderNumber = '';
if ($InvoiceView->getAttribute('order_id')) {
try {
$Order = QUI\ERP\Order\Handler::getInstance()->getOrderById($InvoiceView->getAttribute('order_id'));
$orderNumber = $Order->getPrefixedId();
} catch (QUI\Exception $Exception) {
}
}
return [ return [
'this' => $InvoiceView, 'this' => $InvoiceView,
'ArticleList' => $Articles, 'ArticleList' => $Articles,
...@@ -187,7 +198,8 @@ public static function getTemplateData($entityId) ...@@ -187,7 +198,8 @@ public static function getTemplateData($entityId)
'transaction' => $InvoiceView->getTransactionText(), 'transaction' => $InvoiceView->getTransactionText(),
'projectName' => $Invoice->getAttribute('project_name'), 'projectName' => $Invoice->getAttribute('project_name'),
'useShipping' => QUI::getPackageManager()->isInstalled('quiqqer/shipping'), 'useShipping' => QUI::getPackageManager()->isInstalled('quiqqer/shipping'),
'globalInvoiceText' => $globalInvoiceText 'globalInvoiceText' => $globalInvoiceText,
'orderNumber' => $orderNumber
]; ];
} }
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren