Skip to content

Commit

Permalink
In a previous commit the command to change 'ref' has been deleted. An…
Browse files Browse the repository at this point in the history
…d 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;
  • Loading branch information
andreubisquerra committed Mar 19, 2019
1 parent 23ce97f commit 3665e91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/takepos/invoice.php
Expand Up @@ -87,11 +87,12 @@
{
$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") {
Expand Down

0 comments on commit 3665e91

Please sign in to comment.