Merge pull request #19962 from andreubisquerra/develop

FIX pay value in TakePOS
This commit is contained in:
Laurent Destailleur 2022-01-28 18:11:06 +01:00 committed by GitHub
commit b81754ee6e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -290,7 +290,7 @@ if ($action == 'valid' && $user->rights->facture->creer) {
$payment->datepaye = $now;
$payment->fk_account = $bankaccount;
$payment->amounts[$invoice->id] = $amountofpayment;
if ($pay == 'cash') {
if ($pay == 'LIQ') {
$payment->pos_change = price2num(GETPOST('excess', 'alpha'));
}