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
f8f4fd3a
Commit
f8f4fd3a
authored
12 years ago
by
Marcos García de La Fuente
Browse files
Options
Downloads
Patches
Plain Diff
Enhanced fix
parent
a9e63610
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/compta/prelevement/class/bonprelevement.class.php
+3
-2
3 additions, 2 deletions
htdocs/compta/prelevement/class/bonprelevement.class.php
with
3 additions
and
2 deletions
htdocs/compta/prelevement/class/bonprelevement.class.php
+
3
−
2
View file @
f8f4fd3a
...
@@ -589,7 +589,8 @@ class BonPrelevement extends CommonObject
...
@@ -589,7 +589,8 @@ class BonPrelevement extends CommonObject
* Renvoie toutes les factures presente
* Renvoie toutes les factures presente
* dans un bon de prelevement
* dans un bon de prelevement
*/
*/
$sql
=
"SELECT fk_facture, SUM(pl.amount)"
;
$sql
=
"SELECT fk_facture"
;
if
(
$amounts
)
$sql
.
=
", SUM(pl.amount)"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"prelevement_bons as p"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"prelevement_bons as p"
;
$sql
.
=
" , "
.
MAIN_DB_PREFIX
.
"prelevement_lignes as pl"
;
$sql
.
=
" , "
.
MAIN_DB_PREFIX
.
"prelevement_lignes as pl"
;
$sql
.
=
" , "
.
MAIN_DB_PREFIX
.
"prelevement_facture as pf"
;
$sql
.
=
" , "
.
MAIN_DB_PREFIX
.
"prelevement_facture as pf"
;
...
@@ -597,7 +598,7 @@ class BonPrelevement extends CommonObject
...
@@ -597,7 +598,7 @@ class BonPrelevement extends CommonObject
$sql
.
=
" AND pl.fk_prelevement_bons = p.rowid"
;
$sql
.
=
" AND pl.fk_prelevement_bons = p.rowid"
;
$sql
.
=
" AND p.rowid = "
.
$this
->
id
;
$sql
.
=
" AND p.rowid = "
.
$this
->
id
;
$sql
.
=
" AND p.entity = "
.
$conf
->
entity
;
$sql
.
=
" AND p.entity = "
.
$conf
->
entity
;
$sql
.
=
" GROUP BY fk_facture"
;
if
(
$amounts
)
$sql
.
=
" GROUP BY fk_facture"
;
$resql
=
$this
->
db
->
query
(
$sql
);
$resql
=
$this
->
db
->
query
(
$sql
);
if
(
$resql
)
if
(
$resql
)
...
...
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