Skip to content
Code-Schnipsel Gruppen Projekte
Commit 60c18660 erstellt von Michael Danielczok's avatar Michael Danielczok
Dateien durchsuchen

Merge branch 'next-1.x' into 111-feat-rework-order-page

Übergeordnete 1bd306b0 b72c926d
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!111feat: order page for nobody reworked,!110feat: order page for nobody reworked
Pipeline-Nr. 10750 mit Warnungen bestanden
......@@ -275,9 +275,9 @@ public static function onQuiqqerInvoiceTemporaryInvoicePostEnd(
QUI\ERP\Accounting\Invoice\Invoice $Invoice
) {
try {
$Order = Handler::getInstance()->getOrderByHash($Invoice->getHash());
$Order = Handler::getInstance()->getOrderByHash($Invoice->getGlobalProcessId());
if ($Order->isPosted()) {
if ($Order->hasInvoice() && $Order->getInvoice() instanceof QUI\ERP\Accounting\Invoice\Invoice) {
return;
}
......
......@@ -514,7 +514,14 @@ protected function getDataForSaving()
$invoiceId = null;
if ($this->hasInvoice()) {
$invoiceId = $this->getInvoice()->getCleanId();
$Invoice = $this->getInvoice();
if (
class_exists('QUI\ERP\Accounting\Invoice\Invoice')
&& $Invoice instanceof QUI\ERP\Accounting\Invoice\Invoice
) {
$invoiceId = $Invoice->getCleanId();
}
}
// currency exchange rate
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren