NEW set payment method on paid ticket in cash desk

This commit is contained in:
VESSILLER 2020-03-11 17:42:30 +01:00
parent 61cb1ec81a
commit 5d740d16fb

View File

@ -240,6 +240,8 @@ if ($action == 'valid' && $user->rights->facture->creer)
dol_syslog("Invoice is paid, so we set it to status Paid");
$result = $invoice->set_paid($user);
if ($result > 0) $invoice->paye = 1;
// set payment method
$invoice->setPaymentMethods($paiementid);
} else {
dol_syslog("Invoice is not paid, remain to pay = ".$remaintopay);
}