FIX pay value

This commit is contained in:
andreubisquerra 2022-01-28 17:22:41 +01:00 committed by Laurent Destailleur
parent c01e942a1c
commit 3ec2769a05

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