Update list.php
This commit is contained in:
parent
34b8325079
commit
cc70ffd1b3
@ -232,9 +232,7 @@ if ($action == "change") // Change customer for TakePOS
|
|||||||
$place = (GETPOST('place', 'int') > 0 ? GETPOST('place', 'int') : 0); // $place is id of table for Ba or Restaurant
|
$place = (GETPOST('place', 'int') > 0 ? GETPOST('place', 'int') : 0); // $place is id of table for Ba or Restaurant
|
||||||
|
|
||||||
// Check if draft invoice already exists, if not create it
|
// Check if draft invoice already exists, if not create it
|
||||||
$sql = 'SELECT * FROM '.MAIN_DB_PREFIX.'facture
|
$sql = "SELECT rowid FROM ".MAIN_DB_PREFIX."facture where ref='(PROV-POS".$_SESSION["takeposterminal"]."-".$place.")' AND entity IN (".getEntity('invoice').")";
|
||||||
where ref=\'(PROV-POS'.$_SESSION["takeposterminal"].'-'.$place.')\'
|
|
||||||
AND entity IN ('.getEntity('invoice').')';
|
|
||||||
$result = $db->query($sql);
|
$result = $db->query($sql);
|
||||||
$num_lines = $db->num_rows($result);
|
$num_lines = $db->num_rows($result);
|
||||||
if ($num_lines==0)
|
if ($num_lines==0)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user