Update takepos.php

This commit is contained in:
Laurent Destailleur 2019-03-26 20:10:48 +01:00 committed by GitHub
parent 7ff51df8f3
commit f902f7beeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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