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
a9bb9f89
Commit
a9bb9f89
authored
18 years ago
by
Regis Houssin
Browse files
Options
Downloads
Patches
Plain Diff
Fix: un prospect n'était pas passé comme client à la validation d'une facture ou d'une
commande
parent
053f12de
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/commande/commande.class.php
+3
-0
3 additions, 0 deletions
htdocs/commande/commande.class.php
htdocs/facture.class.php
+6
-0
6 additions, 0 deletions
htdocs/facture.class.php
with
9 additions
and
0 deletions
htdocs/commande/commande.class.php
+
3
−
0
View file @
a9bb9f89
...
...
@@ -175,6 +175,9 @@ class Commande extends CommonObject
$objMod
=
new
$modName
(
$this
->
db
);
$soc
=
new
Societe
(
$this
->
db
);
$soc
->
fetch
(
$this
->
socidp
);
// Classe la société rattachée comme client
$result
=
$soc
->
set_as_client
();
// on vérifie si la commande est en numérotation provisoire
$comref
=
substr
(
$this
->
ref
,
1
,
4
);
...
...
This diff is collapsed.
Click to expand it.
htdocs/facture.class.php
+
6
−
0
View file @
a9bb9f89
...
...
@@ -977,6 +977,12 @@ class Facture extends CommonObject
if
(
$error
==
0
)
{
// Classe la société rattachée comme client
$soc
=
new
Societe
(
$this
->
db
);
$soc
->
id
=
$this
->
socidp
;
$result
=
$soc
->
set_as_client
();
$this
->
ref
=
$numfa
;
$this
->
use_webcal
=
(
$conf
->
global
->
PHPWEBCALENDAR_BILLSTATUS
==
'always'
?
1
:
0
);
...
...
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