Update invoice.php
This commit is contained in:
parent
3be723f3a1
commit
f57f729d40
1 changed files with 2 additions and 2 deletions
|
|
@ -249,8 +249,8 @@ if ($action == 'valid' && $user->rights->facture->creer)
|
|||
$payment->paiementid = $paiementid;
|
||||
$payment->num_payment = $invoice->ref;
|
||||
|
||||
if ($pay!="delayed") $payment->create($user);
|
||||
if ($pay!="delayed") $payment->addPaymentToBank($user, 'payment', '(CustomerInvoicePayment)', $bankaccount, '', '');
|
||||
if ($pay != "delayed") $payment->create($user);
|
||||
if ($pay != "delayed") $payment->addPaymentToBank($user, 'payment', '(CustomerInvoicePayment)', $bankaccount, '', '');
|
||||
|
||||
$remaintopay = $invoice->getRemainToPay(); // Recalculate remain to pay after the payment is recorded
|
||||
if ($remaintopay == 0) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue