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
360dd71c
Commit
360dd71c
authored
16 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
Removed deprecated code
parent
a67c00ee
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/livraison/livraison.class.php
+203
-193
203 additions, 193 deletions
htdocs/livraison/livraison.class.php
with
203 additions
and
193 deletions
htdocs/livraison/livraison.class.php
+
203
−
193
View file @
360dd71c
...
@@ -71,9 +71,9 @@ class Livraison extends CommonObject
...
@@ -71,9 +71,9 @@ class Livraison extends CommonObject
}
}
/**
/**
* \brief Cr
�� bon
de
liv
raison en
base
* \brief Cr
eate
deliv
ery receipt in data
base
* \param user Objet du user qui cr
�
e
* \param user Objet du user qui cr
e
e
* \return int <0 si erreur, id livraison cr
��
e si ok
* \return int <0 si erreur, id livraison cr
e
e si ok
*/
*/
function
create
(
$user
)
function
create
(
$user
)
{
{
...
@@ -92,12 +92,10 @@ class Livraison extends CommonObject
...
@@ -92,12 +92,10 @@ class Livraison extends CommonObject
$sql
=
"INSERT INTO "
.
MAIN_DB_PREFIX
.
"livraison (ref, fk_soc, date_creation, fk_user_author,"
;
$sql
=
"INSERT INTO "
.
MAIN_DB_PREFIX
.
"livraison (ref, fk_soc, date_creation, fk_user_author,"
;
$sql
.
=
" fk_adresse_livraison"
;
$sql
.
=
" fk_adresse_livraison"
;
if
(
$this
->
commande_id
)
$sql
.
=
", fk_commande"
;
if
(
$this
->
expedition_id
)
$sql
.
=
", fk_expedition"
;
if
(
$this
->
expedition_id
)
$sql
.
=
", fk_expedition"
;
$sql
.
=
")"
;
$sql
.
=
")"
;
$sql
.
=
" VALUES ('(PROV)', "
.
$this
->
socid
.
", now(),
$user->id
,"
;
$sql
.
=
" VALUES ('(PROV)', "
.
$this
->
socid
.
", now(),
$user->id
,"
;
$sql
.
=
" "
.
(
$this
->
adresse_livraison_id
>
0
?
$this
->
adresse_livraison_id
:
"null"
);
$sql
.
=
" "
.
(
$this
->
adresse_livraison_id
>
0
?
$this
->
adresse_livraison_id
:
"null"
);
if
(
$this
->
commande_id
)
$sql
.
=
",
$this->commande_id
"
;
if
(
$this
->
expedition_id
)
$sql
.
=
",
$this->expedition_id
"
;
if
(
$this
->
expedition_id
)
$sql
.
=
",
$this->expedition_id
"
;
$sql
.
=
")"
;
$sql
.
=
")"
;
...
@@ -134,6 +132,18 @@ class Livraison extends CommonObject
...
@@ -134,6 +132,18 @@ class Livraison extends CommonObject
}
}
}
}
/*
if ($conf->livraison->enabled && $this->origin_id)
{
$sql = 'INSERT INTO '.MAIN_DB_PREFIX.'co_liv (fk_livraison, fk_commande) VALUES ('.$this->id.','.$this->origin_id.')';
if (!$this->db->query($sql))
{
$error++;
}
}
*/
if
(
!
$conf
->
expedition
->
enabled
)
if
(
!
$conf
->
expedition
->
enabled
)
{
{
$sql
=
"UPDATE "
.
MAIN_DB_PREFIX
.
"commande"
;
$sql
=
"UPDATE "
.
MAIN_DB_PREFIX
.
"commande"
;
...
...
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