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
28204d66
Commit
28204d66
authored
Jan 10, 2014
by
Charles Benke
Committed by
Laurent Destailleur
Jan 12, 2014
Browse files
Options
Downloads
Patches
Plain Diff
Update modFacture.class.php
remplace price by subprice on export invoice
parent
45b3a02e
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/core/modules/modFacture.class.php
+3
-3
3 additions, 3 deletions
htdocs/core/modules/modFacture.class.php
with
3 additions
and
3 deletions
htdocs/core/modules/modFacture.class.php
+
3
−
3
View file @
28204d66
...
...
@@ -178,10 +178,10 @@ class modFacture extends DolibarrModules
$this
->
export_label
[
$r
]
=
'CustomersInvoicesAndInvoiceLines'
;
// Translation key (used only if key ExportDataset_xxx_z not found)
$this
->
export_icon
[
$r
]
=
'bill'
;
$this
->
export_permission
[
$r
]
=
array
(
array
(
"facture"
,
"facture"
,
"export"
));
$this
->
export_fields_array
[
$r
]
=
array
(
's.rowid'
=>
"IdCompany"
,
's.nom'
=>
'CompanyName'
,
's.address'
=>
'Address'
,
's.zip'
=>
'Zip'
,
's.town'
=>
'Town'
,
'c.code'
=>
'CountryCode'
,
's.phone'
=>
'Phone'
,
's.siren'
=>
'ProfId1'
,
's.siret'
=>
'ProfId2'
,
's.ape'
=>
'ProfId3'
,
's.idprof4'
=>
'ProfId4'
,
's.code_compta'
=>
'CustomerAccountancyCode'
,
's.code_compta_fournisseur'
=>
'SupplierAccountancyCode'
,
's.tva_intra'
=>
'VATIntra'
,
'f.rowid'
=>
"InvoiceId"
,
'f.facnumber'
=>
"InvoiceRef"
,
'f.datec'
=>
"InvoiceDateCreation"
,
'f.datef'
=>
"DateInvoice"
,
'f.date_lim_reglement'
=>
"DateDue"
,
'f.total'
=>
"TotalHT"
,
'f.total_ttc'
=>
"TotalTTC"
,
'f.tva'
=>
"TotalVAT"
,
'f.paye'
=>
"InvoicePaid"
,
'f.fk_statut'
=>
'InvoiceStatus'
,
'f.note_private'
=>
"NotePrivate"
,
'f.note_public'
=>
"NotePublic"
,
'fd.rowid'
=>
'LineId'
,
'fd.label'
=>
"Label"
,
'fd.description'
=>
"LineDescription"
,
'fd.price'
=>
"LineUnitPrice"
,
'fd.tva_tx'
=>
"LineVATRate"
,
'fd.qty'
=>
"LineQty"
,
'fd.total_ht'
=>
"LineTotalHT"
,
'fd.total_tva'
=>
"LineTotalVAT"
,
'fd.total_ttc'
=>
"LineTotalTTC"
,
'fd.date_start'
=>
"DateStart"
,
'fd.date_end'
=>
"DateEnd"
,
'fd.special_code'
=>
'SpecialCode'
,
'fd.product_type'
=>
"TypeOfLineServiceOrProduct"
,
'fd.fk_product'
=>
'ProductId'
,
'p.ref'
=>
'ProductRef'
,
'p.label'
=>
'ProductLabel'
,
'p.accountancy_code_sell'
=>
'ProductAccountancyBuyCode'
);
$this
->
export_fields_array
[
$r
]
=
array
(
's.rowid'
=>
"IdCompany"
,
's.nom'
=>
'CompanyName'
,
's.address'
=>
'Address'
,
's.zip'
=>
'Zip'
,
's.town'
=>
'Town'
,
'c.code'
=>
'CountryCode'
,
's.phone'
=>
'Phone'
,
's.siren'
=>
'ProfId1'
,
's.siret'
=>
'ProfId2'
,
's.ape'
=>
'ProfId3'
,
's.idprof4'
=>
'ProfId4'
,
's.code_compta'
=>
'CustomerAccountancyCode'
,
's.code_compta_fournisseur'
=>
'SupplierAccountancyCode'
,
's.tva_intra'
=>
'VATIntra'
,
'f.rowid'
=>
"InvoiceId"
,
'f.facnumber'
=>
"InvoiceRef"
,
'f.datec'
=>
"InvoiceDateCreation"
,
'f.datef'
=>
"DateInvoice"
,
'f.date_lim_reglement'
=>
"DateDue"
,
'f.total'
=>
"TotalHT"
,
'f.total_ttc'
=>
"TotalTTC"
,
'f.tva'
=>
"TotalVAT"
,
'f.paye'
=>
"InvoicePaid"
,
'f.fk_statut'
=>
'InvoiceStatus'
,
'f.note_private'
=>
"NotePrivate"
,
'f.note_public'
=>
"NotePublic"
,
'fd.rowid'
=>
'LineId'
,
'fd.label'
=>
"Label"
,
'fd.description'
=>
"LineDescription"
,
'fd.
sub
price'
=>
"LineUnitPrice"
,
'fd.tva_tx'
=>
"LineVATRate"
,
'fd.qty'
=>
"LineQty"
,
'fd.total_ht'
=>
"LineTotalHT"
,
'fd.total_tva'
=>
"LineTotalVAT"
,
'fd.total_ttc'
=>
"LineTotalTTC"
,
'fd.date_start'
=>
"DateStart"
,
'fd.date_end'
=>
"DateEnd"
,
'fd.special_code'
=>
'SpecialCode'
,
'fd.product_type'
=>
"TypeOfLineServiceOrProduct"
,
'fd.fk_product'
=>
'ProductId'
,
'p.ref'
=>
'ProductRef'
,
'p.label'
=>
'ProductLabel'
,
'p.accountancy_code_sell'
=>
'ProductAccountancyBuyCode'
);
//$this->export_TypeFields_array[$r]=array('s.rowid'=>"List:societe:nom",'s.nom'=>'Text','s.address'=>'Text','s.zip'=>'Text','s.town'=>'Text','c.code'=>'Text','s.phone'=>'Text','s.siren'=>'Text','s.siret'=>'Text','s.ape'=>'Text','s.idprof4'=>'Text','s.code_compta'=>'Text','s.code_compta_fournisseur'=>'Text','s.tva_intra'=>'Text','f.facnumber'=>"Text",'f.datec'=>"Date",'f.datef'=>"Date",'f.date_lim_reglement'=>"Date",'f.total'=>"Numeric",'f.total_ttc'=>"Numeric",'f.tva'=>"Numeric",'f.paye'=>"Boolean",'f.fk_statut'=>'Status','f.note_private'=>"Text",'f.note_public'=>"Text",'fd.description'=>"Text",'fd.price'=>"Numeric",'fd.tva_tx'=>"Numeric",'fd.qty'=>"Numeric",'fd.total_ht'=>"Numeric",'fd.total_tva'=>"Numeric",'fd.total_ttc'=>"Numeric",'fd.date_start'=>"Date",'fd.date_end'=>"Date",'fd.product_type'=>"Numeric",'fd.fk_product'=>'List:Product:label','p.ref'=>'Text','p.label'=>'Text');
$this
->
export_TypeFields_array
[
$r
]
=
array
(
's.nom'
=>
'Text'
,
's.address'
=>
'Text'
,
's.zip'
=>
'Text'
,
's.town'
=>
'Text'
,
'c.code'
=>
'Text'
,
's.phone'
=>
'Text'
,
's.siren'
=>
'Text'
,
's.siret'
=>
'Text'
,
's.ape'
=>
'Text'
,
's.idprof4'
=>
'Text'
,
's.code_compta'
=>
'Text'
,
's.code_compta_fournisseur'
=>
'Text'
,
's.tva_intra'
=>
'Text'
,
'f.facnumber'
=>
"Text"
,
'f.datec'
=>
"Date"
,
'f.datef'
=>
"Date"
,
'f.date_lim_reglement'
=>
"Date"
,
'f.total'
=>
"Numeric"
,
'f.total_ttc'
=>
"Numeric"
,
'f.tva'
=>
"Numeric"
,
'f.paye'
=>
"Boolean"
,
'f.fk_statut'
=>
'Status'
,
'f.note_private'
=>
"Text"
,
'f.note_public'
=>
"Text"
,
'fd.description'
=>
"Text"
,
'fd.price'
=>
"Numeric"
,
'fd.tva_tx'
=>
"Numeric"
,
'fd.qty'
=>
"Numeric"
,
'fd.total_ht'
=>
"Numeric"
,
'fd.total_tva'
=>
"Numeric"
,
'fd.total_ttc'
=>
"Numeric"
,
'fd.date_start'
=>
"Date"
,
'fd.date_end'
=>
"Date"
,
'fd.special_code'
=>
'Numeric'
,
'fd.product_type'
=>
"Numeric"
,
'fd.fk_product'
=>
'List:Product:label'
,
'p.ref'
=>
'Text'
,
'p.label'
=>
'Text'
,
'p.accountancy_code_sell'
=>
'Text'
);
$this
->
export_entities_array
[
$r
]
=
array
(
's.rowid'
=>
"company"
,
's.nom'
=>
'company'
,
's.address'
=>
'company'
,
's.zip'
=>
'company'
,
's.town'
=>
'company'
,
'c.code'
=>
'company'
,
's.phone'
=>
'company'
,
's.siren'
=>
'company'
,
's.siret'
=>
'company'
,
's.ape'
=>
'company'
,
's.idprof4'
=>
'company'
,
's.code_compta'
=>
'company'
,
's.code_compta_fournisseur'
=>
'company'
,
's.tva_intra'
=>
'company'
,
'f.rowid'
=>
"invoice"
,
'f.facnumber'
=>
"invoice"
,
'f.datec'
=>
"invoice"
,
'f.datef'
=>
"invoice"
,
'f.date_lim_reglement'
=>
"invoice"
,
'f.total'
=>
"invoice"
,
'f.total_ttc'
=>
"invoice"
,
'f.tva'
=>
"invoice"
,
'f.paye'
=>
"invoice"
,
'f.fk_statut'
=>
'invoice'
,
'f.note_private'
=>
"invoice"
,
'f.note_public'
=>
"invoice"
,
'fd.rowid'
=>
'invoice_line'
,
'fd.label'
=>
"invoice_line"
,
'fd.description'
=>
"invoice_line"
,
'fd.price'
=>
"invoice_line"
,
'fd.total_ht'
=>
"invoice_line"
,
'fd.total_tva'
=>
"invoice_line"
,
'fd.total_ttc'
=>
"invoice_line"
,
'fd.tva_tx'
=>
"invoice_line"
,
'fd.qty'
=>
"invoice_line"
,
'fd.date_start'
=>
"invoice_line"
,
'fd.date_end'
=>
"invoice_line"
,
'fd.special_code'
=>
'invoice_line'
,
'fd.product_type'
=>
'invoice_line'
,
'fd.fk_product'
=>
'product'
,
'p.ref'
=>
'product'
,
'p.label'
=>
'product'
,
'p.accountancy_code_sell'
=>
'product'
);
$this
->
export_TypeFields_array
[
$r
]
=
array
(
's.nom'
=>
'Text'
,
's.address'
=>
'Text'
,
's.zip'
=>
'Text'
,
's.town'
=>
'Text'
,
'c.code'
=>
'Text'
,
's.phone'
=>
'Text'
,
's.siren'
=>
'Text'
,
's.siret'
=>
'Text'
,
's.ape'
=>
'Text'
,
's.idprof4'
=>
'Text'
,
's.code_compta'
=>
'Text'
,
's.code_compta_fournisseur'
=>
'Text'
,
's.tva_intra'
=>
'Text'
,
'f.facnumber'
=>
"Text"
,
'f.datec'
=>
"Date"
,
'f.datef'
=>
"Date"
,
'f.date_lim_reglement'
=>
"Date"
,
'f.total'
=>
"Numeric"
,
'f.total_ttc'
=>
"Numeric"
,
'f.tva'
=>
"Numeric"
,
'f.paye'
=>
"Boolean"
,
'f.fk_statut'
=>
'Status'
,
'f.note_private'
=>
"Text"
,
'f.note_public'
=>
"Text"
,
'fd.description'
=>
"Text"
,
'fd.
sub
price'
=>
"Numeric"
,
'fd.tva_tx'
=>
"Numeric"
,
'fd.qty'
=>
"Numeric"
,
'fd.total_ht'
=>
"Numeric"
,
'fd.total_tva'
=>
"Numeric"
,
'fd.total_ttc'
=>
"Numeric"
,
'fd.date_start'
=>
"Date"
,
'fd.date_end'
=>
"Date"
,
'fd.special_code'
=>
'Numeric'
,
'fd.product_type'
=>
"Numeric"
,
'fd.fk_product'
=>
'List:Product:label'
,
'p.ref'
=>
'Text'
,
'p.label'
=>
'Text'
,
'p.accountancy_code_sell'
=>
'Text'
);
$this
->
export_entities_array
[
$r
]
=
array
(
's.rowid'
=>
"company"
,
's.nom'
=>
'company'
,
's.address'
=>
'company'
,
's.zip'
=>
'company'
,
's.town'
=>
'company'
,
'c.code'
=>
'company'
,
's.phone'
=>
'company'
,
's.siren'
=>
'company'
,
's.siret'
=>
'company'
,
's.ape'
=>
'company'
,
's.idprof4'
=>
'company'
,
's.code_compta'
=>
'company'
,
's.code_compta_fournisseur'
=>
'company'
,
's.tva_intra'
=>
'company'
,
'f.rowid'
=>
"invoice"
,
'f.facnumber'
=>
"invoice"
,
'f.datec'
=>
"invoice"
,
'f.datef'
=>
"invoice"
,
'f.date_lim_reglement'
=>
"invoice"
,
'f.total'
=>
"invoice"
,
'f.total_ttc'
=>
"invoice"
,
'f.tva'
=>
"invoice"
,
'f.paye'
=>
"invoice"
,
'f.fk_statut'
=>
'invoice'
,
'f.note_private'
=>
"invoice"
,
'f.note_public'
=>
"invoice"
,
'fd.rowid'
=>
'invoice_line'
,
'fd.label'
=>
"invoice_line"
,
'fd.description'
=>
"invoice_line"
,
'fd.
sub
price'
=>
"invoice_line"
,
'fd.total_ht'
=>
"invoice_line"
,
'fd.total_tva'
=>
"invoice_line"
,
'fd.total_ttc'
=>
"invoice_line"
,
'fd.tva_tx'
=>
"invoice_line"
,
'fd.qty'
=>
"invoice_line"
,
'fd.date_start'
=>
"invoice_line"
,
'fd.date_end'
=>
"invoice_line"
,
'fd.special_code'
=>
'invoice_line'
,
'fd.product_type'
=>
'invoice_line'
,
'fd.fk_product'
=>
'product'
,
'p.ref'
=>
'product'
,
'p.label'
=>
'product'
,
'p.accountancy_code_sell'
=>
'product'
);
$this
->
export_dependencies_array
[
$r
]
=
array
(
'invoice_line'
=>
'fd.rowid'
,
'product'
=>
'fd.rowid'
);
// To add unique key if we ask a field of a child to avoid the DISTINCT to discard them
$this
->
export_sql_start
[
$r
]
=
'SELECT DISTINCT '
;
...
...
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