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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
dd1c5ce3
Commit
dd1c5ce3
authored
11 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Missing commit
parent
ef8b5557
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/fourn/class/fournisseur.commande.class.php
+29
-19
29 additions, 19 deletions
htdocs/fourn/class/fournisseur.commande.class.php
with
29 additions
and
19 deletions
htdocs/fourn/class/fournisseur.commande.class.php
+
29
−
19
View file @
dd1c5ce3
...
@@ -780,7 +780,6 @@ class CommandeFournisseur extends CommonOrder
...
@@ -780,7 +780,6 @@ class CommandeFournisseur extends CommonOrder
$error
=
0
;
$error
=
0
;
dol_syslog
(
get_class
(
$this
)
.
"::refuse"
);
$result
=
0
;
$result
=
0
;
if
(
$user
->
rights
->
fournisseur
->
commande
->
approuver
)
if
(
$user
->
rights
->
fournisseur
->
commande
->
approuver
)
{
{
...
@@ -789,12 +788,15 @@ class CommandeFournisseur extends CommonOrder
...
@@ -789,12 +788,15 @@ class CommandeFournisseur extends CommonOrder
$sql
=
"UPDATE "
.
MAIN_DB_PREFIX
.
"commande_fournisseur SET fk_statut = 9"
;
$sql
=
"UPDATE "
.
MAIN_DB_PREFIX
.
"commande_fournisseur SET fk_statut = 9"
;
$sql
.
=
" WHERE rowid = "
.
$this
->
id
;
$sql
.
=
" WHERE rowid = "
.
$this
->
id
;
if
(
$this
->
db
->
query
(
$sql
))
dol_syslog
(
get_class
(
$this
)
.
"::refuse sql="
.
$sql
);
$resql
=
$this
->
db
->
query
(
$sql
);
if
(
$resql
)
{
{
$result
=
0
;
$result
=
0
;
$this
->
log
(
$user
,
9
,
time
());
$this
->
log
(
$user
,
9
,
time
());
if
(
$error
==
0
)
if
(
!
$error
)
{
{
// Appel des triggers
// Appel des triggers
include_once
DOL_DOCUMENT_ROOT
.
'/core/class/interfaces.class.php'
;
include_once
DOL_DOCUMENT_ROOT
.
'/core/class/interfaces.class.php'
;
...
@@ -804,10 +806,18 @@ class CommandeFournisseur extends CommonOrder
...
@@ -804,10 +806,18 @@ class CommandeFournisseur extends CommonOrder
{
{
$error
++
;
$error
++
;
$this
->
errors
=
$interface
->
errors
;
$this
->
errors
=
$interface
->
errors
;
$this
->
db
->
rollback
();
}
}
// Fin appel triggers
// Fin appel triggers
}
}
if
(
!
$error
)
{
$this
->
db
->
commit
();
}
else
{
$this
->
db
->
rollback
();
}
}
}
else
else
{
{
...
...
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