Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
d076ffe7
Commit
d076ffe7
authored
8 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Use correct thirdparty for numbering module
parent
f591e2b1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/cashdesk/validation_verif.php
+12
-2
12 additions, 2 deletions
htdocs/cashdesk/validation_verif.php
with
12 additions
and
2 deletions
htdocs/cashdesk/validation_verif.php
+
12
−
2
View file @
d076ffe7
...
...
@@ -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'
]);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment