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
1b6fa8ec
Commit
1b6fa8ec
authored
Apr 9, 2016
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Clean dead code
parent
b16d9a88
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
+0
-29
0 additions, 29 deletions
htdocs/fourn/class/fournisseur.commande.class.php
with
0 additions
and
29 deletions
htdocs/fourn/class/fournisseur.commande.class.php
+
0
−
29
View file @
1b6fa8ec
...
@@ -365,35 +365,6 @@ class CommandeFournisseur extends CommonOrder
...
@@ -365,35 +365,6 @@ class CommandeFournisseur extends CommonOrder
}
}
}
}
/**
* Add a line in log table
*
* @param User $user User making action
* @param int $statut Status of order
* @param date $datelog Date of change
* @param string $comment Comment
* @return int <0 if KO, >0 if OK
*/
function
log
(
$user
,
$statut
,
$datelog
,
$comment
=
''
)
{
$sql
=
"INSERT INTO "
.
MAIN_DB_PREFIX
.
"commande_fournisseur_log (datelog, fk_commande, fk_statut, fk_user, comment)"
;
$sql
.
=
" VALUES ('"
.
$this
->
db
->
idate
(
$datelog
)
.
"',"
.
$this
->
id
.
", "
.
$statut
.
", "
;
$sql
.
=
$user
->
id
.
", "
;
$sql
.
=
(
$comment
?
"'"
.
$this
->
db
->
escape
(
$comment
)
.
"'"
:
'null'
);
$sql
.
=
")"
;
dol_syslog
(
"FournisseurCommande::log"
,
LOG_DEBUG
);
if
(
$this
->
db
->
query
(
$sql
)
)
{
return
1
;
}
else
{
$this
->
error
=
$this
->
db
->
lasterror
();
return
-
1
;
}
}
/**
/**
* Validate an order
* Validate an order
*
*
...
...
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