In a previous commit the command to change 'ref' has been deleted. And now TakePOS don't work.

In Dolibarr the next command not work on draft invoice:
$invoice->ref = "(PROV-POS-".$place.")";
So I return to the previous command:
$sql="UPDATE ".MAIN_DB_PREFIX."facture set ref='(PROV-POS-".$place.")' where rowid=".$placeid;
This commit is contained in:
andreubisquerra 2019-03-19 23:05:08 +01:00
parent 23ce97fb2d
commit 3665e9137a

View File

@ -87,11 +87,12 @@ if (($action=="addline" || $action=="freezone") && $placeid == 0)
{
$invoice->socid = $conf->global->CASHDESK_ID_THIRDPARTY;
$invoice->date = dol_now();
$invoice->ref = "(PROV-POS-".$place.")";
$invoice->module_source = 'takepos';
$invoice->pos_source = (string) $place;
$placeid = $invoice->create($user);
$sql="UPDATE ".MAIN_DB_PREFIX."facture set ref='(PROV-POS-".$place.")' where rowid=".$placeid;
$db->query($sql);
}
if ($action == "addline") {