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
253955dc
Commit
253955dc
authored
10 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Plain Diff
Merge branch '3.6' of git@github.com:Dolibarr/dolibarr.git into 3.6
parents
ffe1ee0d
d0e4d804
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/commande/liste.php
+5
-4
5 additions, 4 deletions
htdocs/commande/liste.php
htdocs/product/stock/product.php
+1
-1
1 addition, 1 deletion
htdocs/product/stock/product.php
with
6 additions
and
5 deletions
htdocs/commande/liste.php
+
5
−
4
View file @
253955dc
...
...
@@ -6,6 +6,7 @@
* Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2013 Christophe Battarel <christophe.battarel@altairis.fr>
* Copyright (C) 2013 Cédric Salvador <csalvador@gpcsolutions.fr>
* Copyright (C) 2015 Marcos García <marcosgdf@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -112,7 +113,7 @@ $help_url="EN:Module_Customers_Orders|FR:Module_Commandes_Clients|ES:Módulo_Ped
llxHeader
(
''
,
$langs
->
trans
(
"Orders"
),
$help_url
);
$sql
=
'SELECT s.nom, s.rowid as socid, s.client, c.rowid, c.ref, c.total_ht, c.ref_client,'
;
$sql
.
=
' c.date_valid, c.date_commande, c.note_private, c.date_livraison, c.fk_statut, c.facture as facturee'
;
$sql
.
=
' c.date_valid, c.date_commande, c.note_private, c.date_livraison
as date_delivery
, c.fk_statut, c.facture as facturee'
;
$sql
.
=
' FROM '
.
MAIN_DB_PREFIX
.
'societe as s'
;
$sql
.
=
', '
.
MAIN_DB_PREFIX
.
'commande as c'
;
// We'll need this table joined to the select in order to filter by sale
...
...
@@ -306,11 +307,11 @@ if ($resql)
print
'<td class="liste_titre" align="left">'
;
print
'<input class="flat" type="text" name="snom" value="'
.
$snom
.
'">'
;
print
'</td>'
;
print
'<td class="liste_titre">'
;
print
'<td class="liste_titre"
align="right"
>'
;
if
(
!
empty
(
$conf
->
global
->
MAIN_LIST_FILTER_ON_DAY
))
print
'<input class="flat" type="text" size="1" maxlength="2" name="orderday" value="'
.
$orderday
.
'">'
;
print
'<input class="flat" type="text" size="1" maxlength="2" name="ordermonth" value="'
.
$ordermonth
.
'">'
;
$formother
->
select_year
(
$orderyear
?
$orderyear
:-
1
,
'orderyear'
,
1
,
20
,
5
);
print
'</td><td class="liste_titre">'
;
print
'</td><td class="liste_titre"
align="right"
>'
;
if
(
!
empty
(
$conf
->
global
->
MAIN_LIST_FILTER_ON_DAY
))
print
'<input class="flat" type="text" size="1" maxlength="2" name="deliveryday" value="'
.
$deliveryday
.
'">'
;
print
'<input class="flat" type="text" size="1" maxlength="2" name="deliverymonth" value="'
.
$deliverymonth
.
'">'
;
$formother
->
select_year
(
$deliveryyear
?
$deliveryyear
:-
1
,
'deliveryyear'
,
1
,
20
,
5
);
...
...
@@ -340,7 +341,7 @@ if ($resql)
print
'</td>'
;
print
'<td style="min-width: 20px" class="nobordernopadding nowrap">'
;
if
((
$objp
->
fk_statut
>
0
)
&&
(
$objp
->
fk_statut
<
3
)
&&
max
(
$db
->
jdate
(
$objp
->
date_commande
),
$db
->
jdate
(
$objp
->
date_liv
raison
))
<
(
$now
-
$conf
->
commande
->
client
->
warning_delay
))
if
((
$objp
->
fk_statut
>
0
)
&&
(
$objp
->
fk_statut
<
3
)
&&
max
(
$db
->
jdate
(
$objp
->
date_commande
),
$db
->
jdate
(
$objp
->
date_
de
liv
ery
))
<
(
$now
-
$conf
->
commande
->
client
->
warning_delay
))
print
img_picto
(
$langs
->
trans
(
"Late"
),
"warning"
);
if
(
!
empty
(
$objp
->
note_private
))
{
...
...
This diff is collapsed.
Click to expand it.
htdocs/product/stock/product.php
+
1
−
1
View file @
253955dc
...
...
@@ -343,7 +343,7 @@ if ($id > 0 || $ref)
if
(
!
empty
(
$conf
->
commande
->
enabled
))
{
if
(
$found
)
print
'<br>'
;
else
$found
=
1
;
print
$langs
->
trans
(
"CustomersOrdersRunning"
)
.
': '
.
(
$product
->
stats_commande
[
'qty'
]
-
$product
->
stats_
sendings
[
'qty'
]);
print
$langs
->
trans
(
"CustomersOrdersRunning"
)
.
': '
.
(
$product
->
stats_commande
[
'qty'
]
-
$product
->
stats_
expedition
[
'qty'
]);
$result
=
$product
->
load_stats_commande
(
0
,
'0'
);
if
(
$result
<
0
)
dol_print_error
(
$db
,
$product
->
error
);
print
' ('
.
$langs
->
trans
(
"Draft"
)
.
': '
.
$product
->
stats_commande
[
'qty'
]
.
')'
;
...
...
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