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
500f6fc5
Commit
500f6fc5
authored
19 years ago
by
Rodolphe Quiedeville
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix
parent
50ddaa6e
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/bon-prelevement.class.php
+13
-9
13 additions, 9 deletions
htdocs/bon-prelevement.class.php
with
13 additions
and
9 deletions
htdocs/bon-prelevement.class.php
+
13
−
9
View file @
500f6fc5
...
...
@@ -418,27 +418,31 @@ class BonPrelevement
* Renvoie toutes les factures prsente
* dans un bon de prlvement
*/
$sql
=
"SELECT fk_facture"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"prelevement_facture"
;
$sql
.
=
" WHERE fk_prelevement = "
.
$this
->
id
;
$result
=
$this
->
db
->
query
(
$sql
);
if
(
$result
)
$sql
=
"SELECT fk_facture"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"prelevement_bons as p"
;
$sql
.
=
" , "
.
MAIN_DB_PREFIX
.
"prelevement_lignes as pl"
;
$sql
.
=
" , "
.
MAIN_DB_PREFIX
.
"prelevement_facture as pf"
;
$sql
.
=
" WHERE pf.fk_prelevement_lignes = pl.rowid"
;
$sql
.
=
" AND pl.fk_prelevement_bons = p.rowid"
;
$sql
.
=
" AND p.rowid="
.
$this
->
id
;
$resql
=
$this
->
db
->
query
(
$sql
);
if
(
$resql
)
{
$num
=
$this
->
db
->
num_rows
();
$num
=
$this
->
db
->
num_rows
(
$resql
);
if
(
$num
)
{
$i
=
0
;
while
(
$i
<
$num
)
{
$row
=
$this
->
db
->
fetch_row
();
$row
=
$this
->
db
->
fetch_row
(
$resql
);
$arr
[
$i
]
=
$row
[
0
];
$i
++
;
}
}
$this
->
db
->
free
();
$this
->
db
->
free
(
$resql
);
}
else
{
...
...
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