Skip to content

Commit

Permalink
Merge pull request #10892 from andreubisquerra/master
Browse files Browse the repository at this point in the history
Fix a previous commit that causes TakePOS not work
  • Loading branch information
eldy committed Mar 21, 2019
2 parents aa33e4f + 3665e91 commit 626e852
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 626e852

Please sign in to comment.