Update pay.php
This commit is contained in:
parent
f902f7beeb
commit
6bab56c6bb
@ -59,7 +59,12 @@ $resql = $db->query($sql);
|
|||||||
$paiements = array();
|
$paiements = array();
|
||||||
if ($resql) {
|
if ($resql) {
|
||||||
while ($obj = $db->fetch_object($resql)) {
|
while ($obj = $db->fetch_object($resql)) {
|
||||||
$accountname="CASHDESK_ID_BANKACCOUNT_".$obj->code;
|
$paycode = $obj->code;
|
||||||
|
if ($paycode == 'LIQ') $paycode = 'CASH';
|
||||||
|
if ($paycode == 'CB') $paycode = 'CARD';
|
||||||
|
if ($paycode == 'CHQ') $paycode = 'CHEQUE';
|
||||||
|
|
||||||
|
$accountname="CASHDESK_ID_BANKACCOUNT_".$paycode;
|
||||||
if ($conf->global->$accountname) array_push($paiements, $obj);
|
if ($conf->global->$accountname) array_push($paiements, $obj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user