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
9e7e23a8
Commit
9e7e23a8
authored
9 years ago
by
Juanjo Menent
Browse files
Options
Downloads
Patches
Plain Diff
Fix Remove unused variables
parent
f73c8310
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/commande/class/commande.class.php
+13
-17
13 additions, 17 deletions
htdocs/commande/class/commande.class.php
with
13 additions
and
17 deletions
htdocs/commande/class/commande.class.php
+
13
−
17
View file @
9e7e23a8
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2012 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005-2014 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2005-2014 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
* Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
* Copyright (C) 2010-201
5
Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2010-201
6
Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2011 Jean Heimburger <jean@tiaris.info>
* Copyright (C) 2011 Jean Heimburger <jean@tiaris.info>
* Copyright (C) 2012-2014 Christophe Battarel <christophe.battarel@altairis.fr>
* Copyright (C) 2012-2014 Christophe Battarel <christophe.battarel@altairis.fr>
* Copyright (C) 2012 Cedric Salvador <csalvador@gpcsolutions.fr>
* Copyright (C) 2012 Cedric Salvador <csalvador@gpcsolutions.fr>
...
@@ -204,7 +204,7 @@ class Commande extends CommonOrder
...
@@ -204,7 +204,7 @@ class Commande extends CommonOrder
*/
*/
function
getNextNumRef
(
$soc
)
function
getNextNumRef
(
$soc
)
{
{
global
$db
,
$langs
,
$conf
;
global
$langs
,
$conf
;
$langs
->
load
(
"order"
);
$langs
->
load
(
"order"
);
if
(
!
empty
(
$conf
->
global
->
COMMANDE_ADDON
))
if
(
!
empty
(
$conf
->
global
->
COMMANDE_ADDON
))
...
@@ -239,7 +239,7 @@ class Commande extends CommonOrder
...
@@ -239,7 +239,7 @@ class Commande extends CommonOrder
}
}
else
else
{
{
dol_print_error
(
$db
,
get_class
(
$this
)
.
"::getNextNumRef "
.
$obj
->
error
);
dol_print_error
(
$
this
->
db
,
get_class
(
$this
)
.
"::getNextNumRef "
.
$obj
->
error
);
return
""
;
return
""
;
}
}
}
}
...
@@ -500,7 +500,6 @@ class Commande extends CommonOrder
...
@@ -500,7 +500,6 @@ class Commande extends CommonOrder
*/
*/
function
set_reopen
(
$user
)
function
set_reopen
(
$user
)
{
{
global
$conf
,
$langs
;
$error
=
0
;
$error
=
0
;
if
(
$this
->
statut
!=
self
::
STATUS_CANCELED
&&
$this
->
statut
!=
self
::
STATUS_CLOSED
)
if
(
$this
->
statut
!=
self
::
STATUS_CANCELED
&&
$this
->
statut
!=
self
::
STATUS_CLOSED
)
...
@@ -560,7 +559,7 @@ class Commande extends CommonOrder
...
@@ -560,7 +559,7 @@ class Commande extends CommonOrder
*/
*/
function
cloture
(
$user
)
function
cloture
(
$user
)
{
{
global
$conf
,
$langs
;
global
$conf
;
$error
=
0
;
$error
=
0
;
...
@@ -697,7 +696,7 @@ class Commande extends CommonOrder
...
@@ -697,7 +696,7 @@ class Commande extends CommonOrder
*/
*/
function
create
(
$user
,
$notrigger
=
0
)
function
create
(
$user
,
$notrigger
=
0
)
{
{
global
$conf
,
$langs
,
$mysoc
,
$hookmanager
;
global
$conf
,
$langs
;
$error
=
0
;
$error
=
0
;
// Clean parameters
// Clean parameters
...
@@ -971,7 +970,7 @@ class Commande extends CommonOrder
...
@@ -971,7 +970,7 @@ class Commande extends CommonOrder
*/
*/
function
createFromClone
(
$socid
=
0
)
function
createFromClone
(
$socid
=
0
)
{
{
global
$
conf
,
$user
,
$langs
,
$hookmanager
;
global
$
user
,
$hookmanager
;
$error
=
0
;
$error
=
0
;
...
@@ -1061,7 +1060,7 @@ class Commande extends CommonOrder
...
@@ -1061,7 +1060,7 @@ class Commande extends CommonOrder
*/
*/
function
createFromProposal
(
$object
)
function
createFromProposal
(
$object
)
{
{
global
$db
,
$conf
,
$user
,
$
langs
,
$
hookmanager
;
global
$conf
,
$user
,
$hookmanager
;
dol_include_once
(
'/core/class/extrafields.class.php'
);
dol_include_once
(
'/core/class/extrafields.class.php'
);
...
@@ -1134,7 +1133,7 @@ class Commande extends CommonOrder
...
@@ -1134,7 +1133,7 @@ class Commande extends CommonOrder
// get extrafields from original line
// get extrafields from original line
$object
->
fetch_optionals
(
$object
->
id
);
$object
->
fetch_optionals
(
$object
->
id
);
$e
=
new
ExtraFields
(
$db
);
$e
=
new
ExtraFields
(
$
this
->
db
);
$element_extrafields
=
$e
->
fetch_name_optionals_label
(
$this
->
element
);
$element_extrafields
=
$e
->
fetch_name_optionals_label
(
$this
->
element
);
foreach
(
$object
->
array_options
as
$options_key
=>
$value
)
{
foreach
(
$object
->
array_options
as
$options_key
=>
$value
)
{
...
@@ -1495,7 +1494,6 @@ class Commande extends CommonOrder
...
@@ -1495,7 +1494,6 @@ class Commande extends CommonOrder
*/
*/
function
fetch
(
$id
,
$ref
=
''
,
$ref_ext
=
''
,
$ref_int
=
''
)
function
fetch
(
$id
,
$ref
=
''
,
$ref_ext
=
''
,
$ref_int
=
''
)
{
{
global
$conf
;
// Check parameters
// Check parameters
if
(
empty
(
$id
)
&&
empty
(
$ref
)
&&
empty
(
$ref_ext
)
&&
empty
(
$ref_int
))
return
-
1
;
if
(
empty
(
$id
)
&&
empty
(
$ref
)
&&
empty
(
$ref_ext
)
&&
empty
(
$ref_int
))
return
-
1
;
...
@@ -1854,7 +1852,7 @@ class Commande extends CommonOrder
...
@@ -1854,7 +1852,7 @@ class Commande extends CommonOrder
* @param int $fk_product Filter on a product
* @param int $fk_product Filter on a product
* @return int <0 if KO, Nb of lines found if OK
* @return int <0 if KO, Nb of lines found if OK
*/
*/
function
loadExpeditions
(
$filtre_statut
=-
1
,
$fk_product
=
0
)
function
loadExpeditions
(
$filtre_statut
=-
1
)
{
{
$this
->
expeditions
=
array
();
$this
->
expeditions
=
array
();
...
@@ -1983,7 +1981,6 @@ class Commande extends CommonOrder
...
@@ -1983,7 +1981,6 @@ class Commande extends CommonOrder
*/
*/
function
deleteline
(
$lineid
)
function
deleteline
(
$lineid
)
{
{
global
$user
;
if
(
$this
->
statut
==
self
::
STATUS_DRAFT
)
if
(
$this
->
statut
==
self
::
STATUS_DRAFT
)
{
{
...
@@ -2262,7 +2259,7 @@ class Commande extends CommonOrder
...
@@ -2262,7 +2259,7 @@ class Commande extends CommonOrder
*/
*/
function
liste_array
(
$shortlist
=
0
,
$draft
=
0
,
$excluser
=
''
,
$socid
=
0
,
$limit
=
0
,
$offset
=
0
,
$sortfield
=
'c.date_commande'
,
$sortorder
=
'DESC'
)
function
liste_array
(
$shortlist
=
0
,
$draft
=
0
,
$excluser
=
''
,
$socid
=
0
,
$limit
=
0
,
$offset
=
0
,
$sortfield
=
'c.date_commande'
,
$sortorder
=
'DESC'
)
{
{
global
$conf
,
$user
;
global
$user
;
$ga
=
array
();
$ga
=
array
();
...
@@ -2430,7 +2427,7 @@ class Commande extends CommonOrder
...
@@ -2430,7 +2427,7 @@ class Commande extends CommonOrder
*/
*/
function
classifyBilled
(
User
$user
)
function
classifyBilled
(
User
$user
)
{
{
global
$
conf
,
$user
,
$langs
;
global
$
user
;
$error
=
0
;
$error
=
0
;
$this
->
db
->
begin
();
$this
->
db
->
begin
();
...
@@ -2698,7 +2695,6 @@ class Commande extends CommonOrder
...
@@ -2698,7 +2695,6 @@ class Commande extends CommonOrder
*/
*/
function
update
(
$user
=
null
,
$notrigger
=
0
)
function
update
(
$user
=
null
,
$notrigger
=
0
)
{
{
global
$conf
,
$langs
;
$error
=
0
;
$error
=
0
;
// Clean parameters
// Clean parameters
...
@@ -3205,7 +3201,7 @@ class Commande extends CommonOrder
...
@@ -3205,7 +3201,7 @@ class Commande extends CommonOrder
*/
*/
function
initAsSpecimen
()
function
initAsSpecimen
()
{
{
global
$
user
,
$langs
,
$conf
;
global
$
langs
;
dol_syslog
(
get_class
(
$this
)
.
"::initAsSpecimen"
);
dol_syslog
(
get_class
(
$this
)
.
"::initAsSpecimen"
);
...
@@ -3287,7 +3283,7 @@ class Commande extends CommonOrder
...
@@ -3287,7 +3283,7 @@ class Commande extends CommonOrder
*/
*/
function
load_state_board
()
function
load_state_board
()
{
{
global
$conf
,
$user
;
global
$user
;
$this
->
nb
=
array
();
$this
->
nb
=
array
();
$clause
=
"WHERE"
;
$clause
=
"WHERE"
;
...
...
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