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
1ad61013
Commit
1ad61013
authored
9 years ago
by
Maxime Kohlhaas
Browse files
Options
Downloads
Patches
Plain Diff
Fix : shipment list sql request and delivery display
parent
62f12fec
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/expedition/list.php
+10
-2
10 additions, 2 deletions
htdocs/expedition/list.php
with
10 additions
and
2 deletions
htdocs/expedition/list.php
+
10
−
2
View file @
1ad61013
...
@@ -78,8 +78,8 @@ if (!$user->rights->societe->client->voir && !$socid) // Internal user with no p
...
@@ -78,8 +78,8 @@ if (!$user->rights->societe->client->voir && !$socid) // Internal user with no p
}
}
$sql
.
=
")"
;
$sql
.
=
")"
;
$sql
.
=
" LEFT JOIN "
.
MAIN_DB_PREFIX
.
"societe as s ON s.rowid = e.fk_soc"
;
$sql
.
=
" LEFT JOIN "
.
MAIN_DB_PREFIX
.
"societe as s ON s.rowid = e.fk_soc"
;
$sql
.
=
" LEFT JOIN "
.
MAIN_DB_PREFIX
.
"element_element as ee ON e.rowid = ee.fk_source AND ee.sourcetype = 'shipping'"
;
$sql
.
=
" LEFT JOIN "
.
MAIN_DB_PREFIX
.
"element_element as ee ON e.rowid = ee.fk_source AND ee.sourcetype = 'shipping'
AND ee.targettype = 'delivery'
"
;
$sql
.
=
" LEFT JOIN "
.
MAIN_DB_PREFIX
.
"livraison as l ON l.rowid = ee.fk_target
AND ee.targettype = 'delivery'
"
;
$sql
.
=
" LEFT JOIN "
.
MAIN_DB_PREFIX
.
"livraison as l ON l.rowid = ee.fk_target"
;
$sql
.
=
" WHERE e.entity = "
.
$conf
->
entity
;
$sql
.
=
" WHERE e.entity = "
.
$conf
->
entity
;
if
(
!
$user
->
rights
->
societe
->
client
->
voir
&&
!
$socid
)
// Internal user with no permission to see all
if
(
!
$user
->
rights
->
societe
->
client
->
voir
&&
!
$socid
)
// Internal user with no permission to see all
{
{
...
@@ -185,6 +185,14 @@ if ($resql)
...
@@ -185,6 +185,14 @@ if ($resql)
}*/
}*/
print
"</td>
\n
"
;
print
"</td>
\n
"
;
if
(
$conf
->
livraison_bon
->
enabled
)
{
if
(
$conf
->
livraison_bon
->
enabled
)
{
$shipment
->
fetchObjectLinked
(
$shipment
->
id
,
$shipment
->
element
);
$receiving
=
(
!
empty
(
$shipment
->
linkedObjects
[
'delivery'
][
0
])
?
$shipment
->
linkedObjects
[
'delivery'
][
0
]
:
''
);
// Ref
print
'<td>'
;
print
!
empty
(
$receiving
)
?
$receiving
->
getNomUrl
(
$db
)
:
''
;
print
'</td>'
;
// Date real
// Date real
print
"<td align=
\"
center
\"
>"
;
print
"<td align=
\"
center
\"
>"
;
print
dol_print_date
(
$db
->
jdate
(
$objp
->
date_livraison
),
"day"
);
print
dol_print_date
(
$db
->
jdate
(
$objp
->
date_livraison
),
"day"
);
...
...
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