Merge pull request #13328 from OPEN-DSI/new-takepos-payment-method
NEW set payment method on paid ticket in cash desk
This commit is contained in:
commit
5d5b2b8183
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user