Update takepos.php
This commit is contained in:
parent
337cb49374
commit
7ff51df8f3
@ -449,17 +449,22 @@ $( document ).ready(function() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
// TakePOS setup check
|
// TakePOS setup check
|
||||||
// TODO
|
|
||||||
$sql = "SELECT code, libelle FROM ".MAIN_DB_PREFIX."c_paiement";
|
$sql = "SELECT code, libelle FROM ".MAIN_DB_PREFIX."c_paiement";
|
||||||
$sql.= " WHERE entity IN (".getEntity('c_paiement').")";
|
$sql.= " WHERE entity IN (".getEntity('c_paiement').")";
|
||||||
$sql.= " AND active = 1";
|
$sql.= " AND active = 1";
|
||||||
$sql.= " ORDER BY libelle";
|
$sql.= " ORDER BY libelle";
|
||||||
$resql = $db->query($sql);
|
$resql = $db->query($sql);
|
||||||
$paiementsModes = array();
|
$paiementsModes = 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($paiementsModes, $obj);
|
if($conf->global->$accountname) array_push($paiementsModes, $obj);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user