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

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

Übergeordnete fd4f843f 4822f136
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -941,6 +941,8 @@ public function addTransaction(Transaction $Transaction)
return;
}
$currentPaidStatus = $this->getAttribute('paid_status');
QUI\ERP\Accounting\Calc::calculatePayments($this);
if ($this->getInvoiceType() == Handler::TYPE_INVOICE_REVERSAL
......@@ -950,8 +952,9 @@ public function addTransaction(Transaction $Transaction)
return;
}
if ($this->getAttribute('paid_status') == QUI\ERP\Constants::PAYMENT_STATUS_PAID ||
$this->getAttribute('paid_status') == QUI\ERP\Constants::PAYMENT_STATUS_CANCELED
if ($currentPaidStatus === $this->getAttribute('paid_status')
&& ($this->getAttribute('paid_status') == QUI\ERP\Constants::PAYMENT_STATUS_PAID ||
$this->getAttribute('paid_status') == QUI\ERP\Constants::PAYMENT_STATUS_CANCELED)
) {
return;
}
......
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