Skip to content
Snippets Groups Projects
Commit d076ffe7 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Use correct thirdparty for numbering module

parent f591e2b1
No related branches found
No related tags found
No related merge requests found
......@@ -47,15 +47,25 @@ switch ($action)
case 'valide_achat':
$thirdpartyid = $_SESSION['CASHDESK_ID_THIRDPARTY'];
$company=new Societe($db);
$company->fetch($conf->global->CASHDESK_ID_THIRDPARTY);
$company->fetch($thirdpartyid);
$invoice=new Facture($db);
$invoice->date=dol_now();
$invoice->type= Facture::TYPE_STANDARD;
// TODO
// To use a specific numbering module for POS, reset $conf->global->FACTURE_ADDON and other vars here
// and restore after values just after
$num=$invoice->getNextNumRef($company);
// TODO Restore save values
$obj_facturation->numInvoice($num);
$obj_facturation->getSetPaymentMode($_POST['hdnChoix']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment