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:
parent
23ce97fb2d
commit
3665e9137a
@ -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") {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user