Skip to content
Code-Schnipsel Gruppen Projekte
Commit b25e4c92 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: #61

Übergeordneter ac1009c4
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
......@@ -431,7 +431,7 @@ public function hasRefund(): bool
/* @var $Payment QUI\ERP\Accounting\Payments\Api\AbstractPayment */
$Payment = $Transaction->getPayment();
if ($Payment->refundSupport()) {
if ($Payment && $Payment->refundSupport()) {
return true;
}
}
......@@ -657,13 +657,9 @@ public function reversal(string $reason, $PermissionUser = null): int
$this->addComment($reason, QUI::getUsers()->getSystemUser());
// When an invoice is canceled, the payments (if any were posted on the invoice)
// must be posted in the opposite direction on the cancellation invoice
// @todo
QUI::getEvents()->fireEvent(
'quiqqerInvoiceReversalEnd',
[$this]
[$this, $CreditNote]
);
return $CreditNote->getCleanId();
......
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