FIX pay value

This commit is contained in:
andreubisquerra 2022-01-28 17:22:41 +01:00 committed by GitHub
parent e507fa12fa
commit 9d228b13de
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'));
}