From c5e773fcfd5218eb19f1bc38a34cd454201d1139 Mon Sep 17 00:00:00 2001 From: aurelien goudeneche <44634756+AurelGDN@users.noreply.github.com> Date: Fri, 7 Dec 2018 17:20:05 +0100 Subject: [PATCH] space cast statement fix --- htdocs/takepos/invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/takepos/invoice.php b/htdocs/takepos/invoice.php index f276ee51040..16812d60b58 100644 --- a/htdocs/takepos/invoice.php +++ b/htdocs/takepos/invoice.php @@ -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);