space cast statement fix
This commit is contained in:
parent
fb0b208df7
commit
c5e773fcfd
@ -115,7 +115,7 @@ if (($action == "addline" || $action == "freezone") and $placeid == 0) {
|
||||
$invoice->date = dol_now();
|
||||
$invoice->ref = "(PROV-POS)";
|
||||
$invoice->module_source = 'takepos';
|
||||
$invoice->pos_source = (string)(empty($place) ? '0' : $place);
|
||||
$invoice->pos_source = (string) (empty($place)?'0':$place);
|
||||
$placeid = $invoice->create($user);
|
||||
$sql = "UPDATE " . MAIN_DB_PREFIX . "facture set facnumber='(PROV-POS-" . $place . ")' where rowid=" . $placeid;
|
||||
$db->query($sql);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user