Update pay.php

This commit is contained in:
Laurent Destailleur 2019-03-26 20:13:25 +01:00 committed by GitHub
parent 6bab56c6bb
commit 27ae740e82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ if ($resql) {
if ($paycode == 'CHQ') $paycode = 'CHEQUE';
$accountname="CASHDESK_ID_BANKACCOUNT_".$paycode;
if ($conf->global->$accountname) array_push($paiements, $obj);
if (! empty($conf->global->$accountname) && $conf->global->$accountname > 0) array_push($paiements, $obj);
}
}
?>