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
86d8fe12
Commit
86d8fe12
authored
8 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Plain Diff
Merge branch '4.0' of git@github.com:Dolibarr/dolibarr.git into 4.0
parents
1a57d186
427f656b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
htdocs/fourn/class/fournisseur.commande.class.php
+35
-29
35 additions, 29 deletions
htdocs/fourn/class/fournisseur.commande.class.php
htdocs/fourn/class/fournisseur.facture.class.php
+8
-1
8 additions, 1 deletion
htdocs/fourn/class/fournisseur.facture.class.php
with
43 additions
and
30 deletions
htdocs/fourn/class/fournisseur.commande.class.php
+
35
−
29
View file @
86d8fe12
...
...
@@ -1457,7 +1457,7 @@ class CommandeFournisseur extends CommonOrder
$sql
.
=
", '"
.
$localtax1_type
.
"',"
;
$sql
.
=
" '"
.
$localtax2_type
.
"'"
;
$sql
.
=
", "
.
$remise_percent
.
",'"
.
price2num
(
$subprice
,
'MU'
)
.
"','"
.
$ref
.
"',"
;
$sql
.
=
", "
.
$remise_percent
.
",'"
.
price2num
(
$subprice
,
'MU'
)
.
"','"
.
$
this
->
db
->
escape
(
$
ref
)
.
"',"
;
$sql
.
=
"'"
.
price2num
(
$total_ht
)
.
"',"
;
$sql
.
=
"'"
.
price2num
(
$total_tva
)
.
"',"
;
$sql
.
=
"'"
.
price2num
(
$total_localtax1
)
.
"',"
;
...
...
@@ -2752,7 +2752,8 @@ class CommandeFournisseurLigne extends CommonOrderLine
$sql
.
=
' cd.info_bits, cd.total_ht, cd.total_tva, cd.total_ttc,'
;
$sql
.
=
' cd.total_localtax1, cd.total_localtax2,'
;
$sql
.
=
' p.ref as product_ref, p.label as product_libelle, p.description as product_desc,'
;
$sql
.
=
' cd.date_start, cd.date_end, cd.fk_unit'
;
$sql
.
=
' cd.date_start, cd.date_end, cd.fk_unit,'
;
$sql
.
=
' cd.multicurrency_subprice, cd.multicurrency_total_ht, cd.multicurrency_total_tva, cd.multicurrency_total_ttc'
;
$sql
.
=
' FROM '
.
MAIN_DB_PREFIX
.
'commande_fournisseurdet as cd'
;
$sql
.
=
' LEFT JOIN '
.
MAIN_DB_PREFIX
.
'product as p ON cd.fk_product = p.rowid'
;
$sql
.
=
' WHERE cd.rowid = '
.
$rowid
;
...
...
@@ -2760,33 +2761,38 @@ class CommandeFournisseurLigne extends CommonOrderLine
if
(
$result
)
{
$objp
=
$this
->
db
->
fetch_object
(
$result
);
$this
->
rowid
=
$objp
->
rowid
;
$this
->
fk_commande
=
$objp
->
fk_commande
;
$this
->
desc
=
$objp
->
description
;
$this
->
qty
=
$objp
->
qty
;
$this
->
subprice
=
$objp
->
subprice
;
$this
->
tva_tx
=
$objp
->
tva_tx
;
$this
->
localtax1_tx
=
$objp
->
localtax1_tx
;
$this
->
localtax2_tx
=
$objp
->
localtax2_tx
;
$this
->
remise
=
$objp
->
remise
;
$this
->
remise_percent
=
$objp
->
remise_percent
;
$this
->
fk_product
=
$objp
->
fk_product
;
$this
->
info_bits
=
$objp
->
info_bits
;
$this
->
total_ht
=
$objp
->
total_ht
;
$this
->
total_tva
=
$objp
->
total_tva
;
$this
->
total_localtax1
=
$objp
->
total_localtax1
;
$this
->
total_localtax2
=
$objp
->
total_localtax2
;
$this
->
total_ttc
=
$objp
->
total_ttc
;
$this
->
product_type
=
$objp
->
product_type
;
$this
->
ref
=
$objp
->
product_ref
;
$this
->
product_libelle
=
$objp
->
product_libelle
;
$this
->
product_desc
=
$objp
->
product_desc
;
$this
->
date_start
=
$this
->
db
->
jdate
(
$objp
->
date_start
);
$this
->
date_end
=
$this
->
db
->
jdate
(
$objp
->
date_end
);
$this
->
fk_unit
=
$objp
->
fk_unit
;
$this
->
rowid
=
$objp
->
rowid
;
$this
->
fk_commande
=
$objp
->
fk_commande
;
$this
->
desc
=
$objp
->
description
;
$this
->
qty
=
$objp
->
qty
;
$this
->
subprice
=
$objp
->
subprice
;
$this
->
tva_tx
=
$objp
->
tva_tx
;
$this
->
localtax1_tx
=
$objp
->
localtax1_tx
;
$this
->
localtax2_tx
=
$objp
->
localtax2_tx
;
$this
->
remise
=
$objp
->
remise
;
$this
->
remise_percent
=
$objp
->
remise_percent
;
$this
->
fk_product
=
$objp
->
fk_product
;
$this
->
info_bits
=
$objp
->
info_bits
;
$this
->
total_ht
=
$objp
->
total_ht
;
$this
->
total_tva
=
$objp
->
total_tva
;
$this
->
total_localtax1
=
$objp
->
total_localtax1
;
$this
->
total_localtax2
=
$objp
->
total_localtax2
;
$this
->
total_ttc
=
$objp
->
total_ttc
;
$this
->
product_type
=
$objp
->
product_type
;
$this
->
ref
=
$objp
->
product_ref
;
$this
->
product_libelle
=
$objp
->
product_libelle
;
$this
->
product_desc
=
$objp
->
product_desc
;
$this
->
date_start
=
$this
->
db
->
jdate
(
$objp
->
date_start
);
$this
->
date_end
=
$this
->
db
->
jdate
(
$objp
->
date_end
);
$this
->
fk_unit
=
$objp
->
fk_unit
;
$this
->
multicurrency_subprice
=
$objp
->
multicurrency_subprice
;
$this
->
multicurrency_total_ht
=
$objp
->
multicurrency_total_ht
;
$this
->
multicurrency_total_tva
=
$objp
->
multicurrency_total_tva
;
$this
->
multicurrency_total_ttc
=
$objp
->
multicurrency_total_ttc
;
$this
->
db
->
free
(
$result
);
return
1
;
}
...
...
This diff is collapsed.
Click to expand it.
htdocs/fourn/class/fournisseur.facture.class.php
+
8
−
1
View file @
86d8fe12
...
...
@@ -2076,8 +2076,9 @@ class SupplierInvoiceLine extends CommonObjectLine
{
$sql
=
'SELECT f.rowid, f.ref as ref_supplier, f.description, f.pu_ht, f.pu_ttc, f.qty, f.remise_percent, f.tva_tx'
;
$sql
.
=
', f.localtax1_type, f.localtax2_type, f.localtax1_tx, f.localtax2_tx, f.total_localtax1, f.total_localtax2 '
;
$sql
.
=
', f.total_ht, f.tva as total_tva, f.total_ttc, f.fk_product, f.product_type, f.info_bits, f.rang, f.special_code, f.fk_parent_line, f.fk_unit'
;
$sql
.
=
', f.total_ht, f.tva as total_tva, f.total_ttc,
f.fk_facture_fourn,
f.fk_product, f.product_type, f.info_bits, f.rang, f.special_code, f.fk_parent_line, f.fk_unit'
;
$sql
.
=
', p.rowid as product_id, p.ref as product_ref, p.label as label, p.description as product_desc'
;
$sql
.
=
', f.multicurrency_subprice, f.multicurrency_total_ht, f.multicurrency_total_tva, multicurrency_total_ttc'
;
$sql
.
=
' FROM '
.
MAIN_DB_PREFIX
.
'facture_fourn_det as f'
;
$sql
.
=
' LEFT JOIN '
.
MAIN_DB_PREFIX
.
'product as p ON f.fk_product = p.rowid'
;
$sql
.
=
' WHERE f.rowid = '
.
$rowid
;
...
...
@@ -2098,6 +2099,7 @@ class SupplierInvoiceLine extends CommonObjectLine
$this
->
id
=
$obj
->
rowid
;
$this
->
rowid
=
$obj
->
rowid
;
$this
->
fk_facture_fourn
=
$obj
->
fk_facture_fourn
;
$this
->
description
=
$obj
->
description
;
$this
->
product_ref
=
$obj
->
product_ref
;
$this
->
ref
=
$obj
->
product_ref
;
...
...
@@ -2130,6 +2132,11 @@ class SupplierInvoiceLine extends CommonObjectLine
$this
->
rang
=
$obj
->
rang
;
$this
->
fk_unit
=
$obj
->
fk_unit
;
$this
->
multicurrency_subprice
=
$obj
->
multicurrency_subprice
;
$this
->
multicurrency_total_ht
=
$obj
->
multicurrency_total_ht
;
$this
->
multicurrency_total_tva
=
$obj
->
multicurrency_total_tva
;
$this
->
multicurrency_total_ttc
=
$obj
->
multicurrency_total_ttc
;
return
1
;
}
...
...
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