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:
Laurent Destailleur 2020-03-11 19:26:10 +01:00 committed by GitHub
commit 5d5b2b8183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}