space cast statement fix

This commit is contained in:
aurelien goudeneche 2018-12-07 17:20:05 +01:00 committed by GitHub
parent fb0b208df7
commit c5e773fcfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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