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);