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
f255b94e
Commit
f255b94e
authored
8 years ago
by
Juanjo Menent
Browse files
Options
Downloads
Patches
Plain Diff
Fix #6537 Bug: SQL error: Missing , leads to wrong syntax
parent
dfc1ed7d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/expedition/card.php
+5
-5
5 additions, 5 deletions
htdocs/expedition/card.php
with
5 additions
and
5 deletions
htdocs/expedition/card.php
+
5
−
5
View file @
f255b94e
...
...
@@ -3,7 +3,7 @@
* Copyright (C) 2005-2016 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005 Simon TOSSER <simon@kornog-computing.com>
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2011-201
2
Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2011-201
7
Juanjo Menent <jmenent@2byte.es>
* Copyright (C) 2013 Florian Henry <florian.henry@open-concept.pro>
* Copyright (C) 2013 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2014 Cedric GROSS <c.gross@kreiz-it.fr>
...
...
@@ -1744,10 +1744,10 @@ else if ($id || $ref)
{
$sql
=
"SELECT obj.rowid, obj.fk_product, obj.label, obj.description, obj.product_type as fk_product_type, obj.qty as qty_asked, obj.date_start, obj.date_end"
;
$sql
.
=
", ed.rowid as shipmentline_id, ed.qty as qty_shipped, ed.fk_expedition as expedition_id, ed.fk_origin_line, ed.fk_entrepot"
;
$sql
.
=
", e.rowid as shipment_id, e.ref as shipment_ref, e.date_creation, e.date_valid, e.date_delivery, e.date_expedition
,
"
;
//if ($conf->livraison_bon->enabled) $sql .= " l.rowid as livraison_id, l.ref as livraison_ref, l.date_delivery, ld.qty as qty_received
,
";
$sql
.
=
' p.label as product_label, p.ref, p.fk_product_type, p.rowid as prodid, p.tobatch as product_tobatch'
;
$sql
.
=
' p.description as product_desc'
;
$sql
.
=
", e.rowid as shipment_id, e.ref as shipment_ref, e.date_creation, e.date_valid, e.date_delivery, e.date_expedition"
;
//if ($conf->livraison_bon->enabled) $sql .= "
,
l.rowid as livraison_id, l.ref as livraison_ref, l.date_delivery, ld.qty as qty_received";
$sql
.
=
'
,
p.label as product_label, p.ref, p.fk_product_type, p.rowid as prodid, p.tobatch as product_tobatch'
;
$sql
.
=
'
,
p.description as product_desc'
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"expeditiondet as ed"
;
$sql
.
=
", "
.
MAIN_DB_PREFIX
.
"expedition as e"
;
$sql
.
=
", "
.
MAIN_DB_PREFIX
.
$origin
.
"det as obj"
;
...
...
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