Close cash with some terminals in TakePOS
This commit is contained in:
parent
3d82b78c88
commit
6b45d68f83
@ -823,6 +823,7 @@ $( document ).ready(function() {
|
||||
if (getDolGlobalString('TAKEPOS_CONTROL_CASH_OPENING')) {
|
||||
$sql = "SELECT rowid, status FROM ".MAIN_DB_PREFIX."pos_cash_fence WHERE";
|
||||
$sql .= " entity = ".$conf->entity." AND ";
|
||||
$sql .= " posnumber = ".$_SESSION["takeposterminal"]." AND ";
|
||||
$sql .= " date_creation > '".$db->idate(dol_get_first_hour(dol_now()))."'";
|
||||
$resql = $db->query($sql);
|
||||
if ($resql) {
|
||||
@ -1105,6 +1106,7 @@ if (getDolGlobalString('TAKEPOS_PRINT_METHOD') == "receiptprinter") {
|
||||
|
||||
$sql = "SELECT rowid, status, entity FROM ".MAIN_DB_PREFIX."pos_cash_fence WHERE";
|
||||
$sql .= " entity = ".$conf->entity." AND ";
|
||||
$sql .= " posnumber = ".$_SESSION["takeposterminal"]." AND ";
|
||||
$sql .= " date_creation > '".$db->idate(dol_get_first_hour(dol_now()))."'";
|
||||
$resql = $db->query($sql);
|
||||
if ($resql) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user