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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
61b78666
Commit
61b78666
authored
12 years ago
by
Florian Henry
Browse files
Options
Downloads
Patches
Plain Diff
Change-Id: I07221687a67be28376ee9146eaa46567486300ce
parent
dd8a84bc
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/compta/journal/purchasesjournal.php
+0
-3
0 additions, 3 deletions
htdocs/compta/journal/purchasesjournal.php
htdocs/compta/journal/sellsjournal.php
+1
-1
1 addition, 1 deletion
htdocs/compta/journal/sellsjournal.php
with
1 addition
and
4 deletions
htdocs/compta/journal/purchasesjournal.php
+
0
−
3
View file @
61b78666
...
@@ -100,11 +100,8 @@ $sql.= " fd.total_ttc, fd.tva_tx, fd.total_ht, fd.tva as total_tva, fd.product_t
...
@@ -100,11 +100,8 @@ $sql.= " fd.total_ttc, fd.tva_tx, fd.total_ht, fd.tva as total_tva, fd.product_t
$sql
.
=
" s.rowid as socid, s.nom as name, s.code_compta_fournisseur,"
;
$sql
.
=
" s.rowid as socid, s.nom as name, s.code_compta_fournisseur,"
;
$sql
.
=
" p.rowid as pid, p.ref as ref, p.accountancy_code_buy,"
;
$sql
.
=
" p.rowid as pid, p.ref as ref, p.accountancy_code_buy,"
;
$sql
.
=
" ct.accountancy_code_buy as account_tva, ct.recuperableonly"
;
$sql
.
=
" ct.accountancy_code_buy as account_tva, ct.recuperableonly"
;
//$sql.= " ctl1.accountancy_code_buy as account_localtax1, ctl2.accountancy_code_buy as account_localtax2";
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"facture_fourn_det fd"
;
$sql
.
=
" FROM "
.
MAIN_DB_PREFIX
.
"facture_fourn_det fd"
;
$sql
.
=
" LEFT JOIN "
.
MAIN_DB_PREFIX
.
"c_tva ct ON fd.tva_tx = ct.taux AND fd.info_bits = ct.recuperableonly AND ct.fk_pays = '"
.
$idpays
.
"'"
;
$sql
.
=
" LEFT JOIN "
.
MAIN_DB_PREFIX
.
"c_tva ct ON fd.tva_tx = ct.taux AND fd.info_bits = ct.recuperableonly AND ct.fk_pays = '"
.
$idpays
.
"'"
;
//$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."c_tva ctl1 ON fd.localtax1_tx = ctl1.localtax1 AND ctl1.fk_pays = '".$idpays."'";
//$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."c_tva ctl2 ON fd.localtax2_tx = ctl2.localtax2 AND ctl2.fk_pays = '".$idpays."'";
$sql
.
=
" LEFT JOIN "
.
MAIN_DB_PREFIX
.
"product p ON p.rowid = fd.fk_product"
;
$sql
.
=
" LEFT JOIN "
.
MAIN_DB_PREFIX
.
"product p ON p.rowid = fd.fk_product"
;
$sql
.
=
" JOIN "
.
MAIN_DB_PREFIX
.
"facture_fourn f ON f.rowid = fd.fk_facture_fourn"
;
$sql
.
=
" JOIN "
.
MAIN_DB_PREFIX
.
"facture_fourn f ON f.rowid = fd.fk_facture_fourn"
;
$sql
.
=
" JOIN "
.
MAIN_DB_PREFIX
.
"societe s ON s.rowid = f.fk_soc"
;
$sql
.
=
" JOIN "
.
MAIN_DB_PREFIX
.
"societe s ON s.rowid = f.fk_soc"
;
...
...
This diff is collapsed.
Click to expand it.
htdocs/compta/journal/sellsjournal.php
+
1
−
1
View file @
61b78666
...
@@ -115,7 +115,7 @@ else $sql.= " AND f.type IN (0,1,2,3)";
...
@@ -115,7 +115,7 @@ else $sql.= " AND f.type IN (0,1,2,3)";
$sql
.
=
" AND fd.product_type IN (0,1)"
;
$sql
.
=
" AND fd.product_type IN (0,1)"
;
if
(
$date_start
&&
$date_end
)
$sql
.
=
" AND f.datef >= '"
.
$db
->
idate
(
$date_start
)
.
"' AND f.datef <= '"
.
$db
->
idate
(
$date_end
)
.
"'"
;
if
(
$date_start
&&
$date_end
)
$sql
.
=
" AND f.datef >= '"
.
$db
->
idate
(
$date_start
)
.
"' AND f.datef <= '"
.
$db
->
idate
(
$date_end
)
.
"'"
;
$sql
.
=
" ORDER BY f.rowid"
;
$sql
.
=
" ORDER BY f.rowid"
;
print
$sql
;
$result
=
$db
->
query
(
$sql
);
$result
=
$db
->
query
(
$sql
);
if
(
$result
)
if
(
$result
)
{
{
...
...
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