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

fix: quiqqer/invoice#122

Übergeordneter 04af5521
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
Keine zugehörigen Merge Requests gefunden
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
'package_quiqqer_invoice_ajax_invoices_addPayment', 'package_quiqqer_invoice_ajax_invoices_addPayment',
function ($invoiceId, $amount, $paymentMethod, $date) { function ($invoiceId, $amount, $paymentMethod, $date) {
$Invoices = QUI\ERP\Accounting\Invoice\Handler::getInstance(); $Invoices = QUI\ERP\Accounting\Invoice\Handler::getInstance();
$Payment = Payments::getInstance()->getPayment($paymentMethod); $Payment = Payments::getInstance()->getPayment($paymentMethod);
try { try {
$Invoice = $Invoices->getInvoice($invoiceId); $Invoice = $Invoices->getInvoice($invoiceId);
...@@ -30,7 +30,7 @@ function ($invoiceId, $amount, $paymentMethod, $date) { ...@@ -30,7 +30,7 @@ function ($invoiceId, $amount, $paymentMethod, $date) {
// create the transaction // create the transaction
TransactionFactory::createPaymentTransaction( TransactionFactory::createPaymentTransaction(
$amount, $amount,
QUI\ERP\Defaults::getCurrency(), $Invoice->getCurrency(),
$Invoice->getHash(), $Invoice->getHash(),
$Payment->getPaymentType()->getName(), $Payment->getPaymentType()->getName(),
[], [],
...@@ -39,6 +39,11 @@ function ($invoiceId, $amount, $paymentMethod, $date) { ...@@ -39,6 +39,11 @@ function ($invoiceId, $amount, $paymentMethod, $date) {
$Invoice->getGlobalProcessId() $Invoice->getGlobalProcessId()
); );
}, },
['invoiceId', 'amount', 'paymentMethod', 'date'], [
'invoiceId',
'amount',
'paymentMethod',
'date'
],
'Permission::checkAdminUser' 'Permission::checkAdminUser'
); );
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