diff --git a/htdocs/exports/export.php b/htdocs/exports/export.php index 9f02928db50106cfebcc48b2f29d280dc70f1f45..063499905e40a68eabbc0346c03ca94e7d70bfeb 100644 --- a/htdocs/exports/export.php +++ b/htdocs/exports/export.php @@ -1,5 +1,5 @@ <?php -/* Copyright (C) 2005-2006 Laurent Destailleur <eldy@users.sourceforge.net> +/* Copyright (C) 2005-2007 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2005-2007 Regis Houssin <regis.houssin@cap-networks.com> * * This program is free software; you can redistribute it and/or modify @@ -17,7 +17,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * $Id$ - * $Source$ */ /** @@ -229,7 +228,7 @@ if ($step == 1 || ! $datatoexport) // Affiche les modules d'exports print '<table class="noborder" width="100%">'; print '<tr class="liste_titre">'; - print '<td width="25%">'.$langs->trans("Module").'</td>'; + print '<td>'.$langs->trans("Module").'</td>'; print '<td>'.$langs->trans("ExportableDatas").'</td>'; print '<td> </td>'; print '</tr>'; @@ -239,7 +238,7 @@ if ($step == 1 || ! $datatoexport) foreach ($objexport->array_export_code as $key => $value) { $val=!$val; - print '<tr '.$bc[$val].'><td>'; + print '<tr '.$bc[$val].'><td nospan="nospan">'; print img_object($objexport->array_export_module[$key]->getName(),$objexport->array_export_module[$key]->picto).' '; print $objexport->array_export_module[$key]->getName(); print '</td><td>'; diff --git a/htdocs/includes/modules/modBanque.class.php b/htdocs/includes/modules/modBanque.class.php index de8dc60380f70b0f3b0e0cada98de34f58867b32..6c216087bc9278bb92067abae9e3349932cd61c8 100644 --- a/htdocs/includes/modules/modBanque.class.php +++ b/htdocs/includes/modules/modBanque.class.php @@ -127,9 +127,9 @@ class modBanque extends DolibarrModules $r++; $this->export_code[$r]=$this->id.'_'.$r; $this->export_label[$r]='Ecritures bancaires et relev�s'; - $this->export_fields_array[$r]=array('b.rowid'=>'IdTransaction','ba.ref'=>'AccountRef','ba.label'=>'AccountLabel','b.datev'=>'DateValue','b.dateo'=>'DateOperation','b.label'=>'Label','-b.amount'=>'Debit','b.amount'=>'Credit','b.num_releve'=>'AccountStatement','b.datec'=>"DateCreation","but.url_id"=>"IdThirdParty","s.nom"=>"ThirdParty","s.code_compta"=>"CustomerAccountancyCode","s.code_compta_fournisseur"=>"SupplierAccountancyCode"); - $this->export_entities_array[$r]=array('b.rowid'=>'account','ba.ref'=>'account','ba.label'=>'account','b.datev'=>'account','b.dateo'=>'account','b.label'=>'account','-b.amount'=>'account','b.amount'=>'account','b.num_releve'=>'account','b.datec'=>"account","but.url_id"=>"company","s.nom"=>"company","s.code_compta"=>"company","s.code_compta_fournisseur"=>"company"); - $this->export_alias_array[$r]=array('b.rowid'=>'tran_id','ba.ref'=>'account_ref','ba.label'=>'account_label','b.datev'=>'datev','b.dateo'=>'dateo','b.label'=>'label','-b.amount'=>'debit','b.amount'=>'credit','b.num_releve'=>'numrel','b.datec'=>"datec","but.url_id"=>"soc_id","s.nom"=>"thirdparty","s.code_compta"=>"customeracccode","s.code_compta_fournisseur"=>"supplieracccode"); + $this->export_fields_array[$r]=array('b.rowid'=>'IdTransaction','ba.ref'=>'AccountRef','ba.label'=>'AccountLabel','b.datev'=>'DateValue','b.dateo'=>'DateOperation','b.label'=>'Label','b.num_chq'=>'CheckNumber','-b.amount'=>'Debit','b.amount'=>'Credit','b.num_releve'=>'AccountStatement','b.datec'=>"DateCreation","but.url_id"=>"IdThirdParty","s.nom"=>"ThirdParty","s.code_compta"=>"CustomerAccountancyCode","s.code_compta_fournisseur"=>"SupplierAccountancyCode"); + $this->export_entities_array[$r]=array('b.rowid'=>'account','ba.ref'=>'account','ba.label'=>'account','b.datev'=>'account','b.dateo'=>'account','b.label'=>'account','b.num_chq'=>'account','-b.amount'=>'account','b.amount'=>'account','b.num_releve'=>'account','b.datec'=>"account","but.url_id"=>"company","s.nom"=>"company","s.code_compta"=>"company","s.code_compta_fournisseur"=>"company"); + $this->export_alias_array[$r]=array('b.rowid'=>'tran_id','ba.ref'=>'account_ref','ba.label'=>'account_label','b.datev'=>'datev','b.dateo'=>'dateo','b.label'=>'label','b.num_chq'=>'num','-b.amount'=>'debit','b.amount'=>'credit','b.num_releve'=>'numrel','b.datec'=>"datec","but.url_id"=>"soc_id","s.nom"=>"thirdparty","s.code_compta"=>"customeracccode","s.code_compta_fournisseur"=>"supplieracccode"); $this->export_sql[$r]="select distinct "; $i=0; foreach ($this->export_alias_array[$r] as $key => $value) diff --git a/htdocs/includes/modules/modFacture.class.php b/htdocs/includes/modules/modFacture.class.php index 10c053ebfba30554885d9350e9665534caba52ff..50fb300b8840bdb06c93f40080534f7a9bc601d6 100644 --- a/htdocs/includes/modules/modFacture.class.php +++ b/htdocs/includes/modules/modFacture.class.php @@ -175,7 +175,7 @@ class modFacture extends DolibarrModules $r++; $this->export_code[$r]=$this->id.'_'.$r; - $this->export_label[$r]='Factures clients et lignes de facture'; + $this->export_label[$r]='CustomersInvoicesAndInvoiceLines'; // Translation key (used only if key ExportDataset_xxx_z not found) $this->export_fields_array[$r]=array('s.rowid'=>"IdCompany",'s.nom'=>'CompanyName','s.address'=>'Address','s.cp'=>'Zip','s.ville'=>'Town','s.fk_pays'=>'Country','s.tel'=>'Phone','s.siren'=>'ProfId1','s.siret'=>'ProfId2','s.ape'=>'ProfId3','s.idprof4'=>'ProfId4','s.code_compta'=>'CustomerAccountancyCode','s.code_compta_fournisseur'=>'SupplierAccountancyCode','f.rowid'=>"Id",'f.facnumber'=>"Ref",'f.datec'=>"DateCreation",'f.datef'=>"DateInvoice",'f.total'=>"TotalHT",'f.total_ttc'=>"TotalTTC",'f.tva'=>"TotalVAT",'f.paye'=>"BillShortStatusPayed",'f.fk_statut'=>'Status','f.note'=>"Note",'fd.rowid'=>'LineId','fd.description'=>"LineDescription",'fd.price'=>"LineUnitPrice",'fd.tva_taux'=>"LineVATRate",'fd.qty'=>"LineQty",'fd.total_ht'=>"LineTotalHT",'fd.total_tva'=>"LineTotalTVA",'fd.total_ttc'=>"LineTotalTTC",'fd.date_start'=>"DateStart",'fd.date_end'=>"DateEnd",'fd.fk_product'=>'ProductId','p.ref'=>'ProductRef'); $this->export_entities_array[$r]=array('s.rowid'=>"company",'s.nom'=>'company','s.address'=>'company','s.cp'=>'company','s.ville'=>'company','s.fk_pays'=>'company','s.tel'=>'company','s.siren'=>'company','s.siret'=>'company','s.ape'=>'company','s.idprof4'=>'company','s.code_compta'=>'company','s.code_compta_fournisseur'=>'company','f.rowid'=>"invoice",'f.facnumber'=>"invoice",'f.datec'=>"invoice",'f.datef'=>"invoice",'f.total'=>"invoice",'f.total_ttc'=>"invoice",'f.tva'=>"invoice",'f.paye'=>"invoice",'f.fk_statut'=>'invoice','f.note'=>"invoice",'fd.rowid'=>'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_taux'=>"invoice_line",'fd.qty'=>"invoice_line",'fd.date_start'=>"invoice_line",'fd.date_end'=>"invoice_line",'fd.fk_product'=>'product','p.ref'=>'product'); $this->export_alias_array[$r]=array('s.rowid'=>"socid",'s.nom'=>'soc_name','s.address'=>'soc_adres','s.cp'=>'soc_zip','s.ville'=>'soc_ville','s.fk_pays'=>'soc_pays','s.tel'=>'soc_tel','s.siren'=>'soc_siren','s.siret'=>'soc_siret','s.ape'=>'soc_ape','s.idprof4'=>'soc_idprof4','s.code_compta'=>'soc_customer_accountancy','s.code_compta_fournisseur'=>'soc_supplier_accountancy','f.rowid'=>"invoiceid",'f.facnumber'=>"ref",'f.datec'=>"datecreation",'f.datef'=>"dateinvoice",'f.total'=>"totalht",'f.total_ttc'=>"totalttc",'f.tva'=>"totalvat",'f.paye'=>"paid",'f.fk_statut'=>'status','f.note'=>"note",'fd.rowid'=>'lineid','fd.description'=>"linedescription",'fd.price'=>"lineprice",'fd.total_ht'=>"linetotalht",'fd.total_tva'=>"linetotaltva",'fd.total_ttc'=>"linetotalttc",'fd.tva_taux'=>"linevatrate",'fd.qty'=>"lineqty",'fd.date_start'=>"linedatestart",'fd.date_end'=>"linedateend",'fd.fk_product'=>'productid','p.ref'=>'productref'); @@ -194,7 +194,7 @@ class modFacture extends DolibarrModules $r++; $this->export_code[$r]=$this->id.'_'.$r; - $this->export_label[$r]='Factures clients et r�glements'; + $this->export_label[$r]='CustomersInvoicesAndPayments'; // Translation key (used only if key ExportDataset_xxx_z not found) $this->export_fields_array[$r]=array('s.rowid'=>"IdCompany",'s.nom'=>'CompanyName','s.address'=>'Address','s.cp'=>'Zip','s.ville'=>'Town','s.fk_pays'=>'Country','s.tel'=>'Phone','s.siren'=>'ProfId1','s.siret'=>'ProfId2','s.ape'=>'ProfId3','s.idprof4'=>'ProfId4','s.code_compta'=>'CustomerAccountancyCode','s.code_compta_fournisseur'=>'SupplierAccountancyCode','f.rowid'=>"Id",'f.facnumber'=>"Ref",'f.datec'=>"DateCreation",'f.datef'=>"DateInvoice",'f.total'=>"TotalHT",'f.total_ttc'=>"TotalTTC",'f.tva'=>"TotalVAT",'f.paye'=>"BillShortStatusPayed",'f.fk_statut'=>'Status','f.note'=>"Note",'pf.amount'=>'AmountPayment','p.datep'=>'DatePayment','p.num_paiement'=>'Numero'); $this->export_entities_array[$r]=array('s.rowid'=>"company",'s.nom'=>'company','s.address'=>'company','s.cp'=>'company','s.ville'=>'company','s.fk_pays'=>'company','s.tel'=>'company','s.siren'=>'company','s.siret'=>'company','s.ape'=>'company','s.idprof4'=>'company','s.code_compta'=>'company','s.code_compta_fournisseur'=>'company','f.rowid'=>"invoice",'f.facnumber'=>"invoice",'f.datec'=>"invoice",'f.datef'=>"invoice",'f.total'=>"invoice",'f.total_ttc'=>"invoice",'f.tva'=>"invoice",'f.paye'=>"invoice",'f.fk_statut'=>'invoice','f.note'=>"invoice",'pf.amount'=>'payment','p.datep'=>'payment','p.num_paiement'=>'payment'); $this->export_alias_array[$r]=array('s.rowid'=>"socid",'s.nom'=>'soc_name','s.address'=>'soc_adres','s.cp'=>'soc_zip','s.ville'=>'soc_ville','s.fk_pays'=>'soc_pays','s.tel'=>'soc_tel','s.siren'=>'soc_siren','s.siret'=>'soc_siret','s.ape'=>'soc_ape','s.idprof4'=>'soc_idprof4','s.code_compta'=>'soc_customer_accountancy','s.code_compta_fournisseur'=>'soc_supplier_accountancy','f.rowid'=>"invoiceid",'f.facnumber'=>"ref",'f.datec'=>"datecreation",'f.datef'=>"dateinvoice",'f.total'=>"totalht",'f.total_ttc'=>"totalttc",'f.tva'=>"totalvat",'f.paye'=>"paid",'f.fk_statut'=>'status','f.note'=>"note",'pf.amount'=>'amount_payment','p.datep'=>'date_payment','p.num_paiement'=>'num_payment'); diff --git a/htdocs/includes/modules/modProduit.class.php b/htdocs/includes/modules/modProduit.class.php index 420d96ed3d3e3711ca3ce1b7b300f570040c7e16..ac96f40d648294a69896b05f5eecff3127bca4ec 100644 --- a/htdocs/includes/modules/modProduit.class.php +++ b/htdocs/includes/modules/modProduit.class.php @@ -147,7 +147,7 @@ class modProduit extends DolibarrModules $r++; $this->export_code[$r]=$this->id.'_'.$r; - $this->export_label[$r]="ProductsOrServices"; // Translation key + $this->export_label[$r]="ProductsOrServices"; // Translation key (used only if key ExportDataset_xxx_z not found) $this->export_fields_array[$r]=array('p.rowid'=>"Id",'p.ref'=>"Ref",'p.fk_product_type'=>"Type",'p.label'=>"Label",'p.description'=>"Description",'p.note'=>"Note",'p.price'=>"Price",'p.tva_tx'=>'VAT','p.envente'=>"OnSell",'p.duration'=>"Duration",'p.datec'=>'DateCreation','p.tms'=>'DateModification'); $this->export_entities_array[$r]=array('p.rowid'=>"product",'p.ref'=>"product",'p.fk_product_type'=>"product",'p.label'=>"product",'p.description'=>"product",'p.note'=>"product",'p.price'=>"product",'p.tva_tx'=>'product','p.envente'=>"product",'p.duration'=>"product",'p.datec'=>'product','p.tms'=>'product'); $this->export_alias_array[$r]=array('p.rowid'=>"id",'p.ref'=>"ref",'p.fk_product_type'=>"type",'p.label'=>"label",'p.description'=>"description",'p.note'=>"note",'p.price'=>"price",'p.tva_tx'=>'vat','p.envente'=>"onsell",'p.duration'=>"duration",'p.datec'=>'datecreation','p.tms'=>'datemodification'); diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index 3b7b2d7bced4092a1950c8e584e421c5d2464186..4533ffff4ba639995ae87bab01a0d8f1cdc7e260 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -215,7 +215,7 @@ Module400Name=Projects Module400Desc=Projects' management inside other modules Module410Name=Webcalendar Module410Desc=Webcalendar integration -Module500Name=Taxes and social contributions +Module500Name=Taxes, social contributions and dividends Module500Desc=Taxes and social contributions' management Module600Name=Notifications Module600Desc=Send notifications (by email) on Dolibarr business events diff --git a/htdocs/langs/en_US/banks.lang b/htdocs/langs/en_US/banks.lang index 3f4978c8d8096d9cf953da0b6cac9ffb2f0cd453..9c32fff75dab016cda59ce6f4a22698990b946f2 100644 --- a/htdocs/langs/en_US/banks.lang +++ b/htdocs/langs/en_US/banks.lang @@ -109,3 +109,4 @@ ConfirmDeleteTransaction=Are you sure you want to delete this transaction ? ThisWillAlsoDeleteBankRecord=This will also delete generated bank transactions BankMovements=Movements CashBudget=Cash budget +ExportDataset_banque_1=Bank transactions and account statement diff --git a/htdocs/langs/en_US/bills.lang b/htdocs/langs/en_US/bills.lang index b999bbb87cb29095cfb825b064ba6fdc16ecf11f..e624020b8391e263ccb8687b05e8275587e94cb9 100644 --- a/htdocs/langs/en_US/bills.lang +++ b/htdocs/langs/en_US/bills.lang @@ -22,6 +22,7 @@ ReplacementInvoice=Replacement invoice ReplacedByInvoice=Replaced by invoice %s ReplacementByInvoice=Replaced by invoice CorrectInvoice=Correct invoice %s +CorrectInvoice=Correct invoice %s CorrectionInvoice=Correction invoice NoReplacableInvoice=No replacable invoices NoInvoiceToCorrect=No invoice to correct @@ -195,7 +196,10 @@ Repeatable=Repeatable ChangeIntoRepeatableInvoice=Change into repeatable CreateRepeatableInvoice=Create repeatable invoice CreateFromRepeatableInvoice=Create from repeatable invoice +CustomersInvoicesAndInvoiceLines=Customer invoices and invoices' lines +CustomersInvoicesAndPayments=Customer invoices and payments ExportDataset_invoice_1=Customer invoices list and invoices' lines +ExportDataset_invoice_2=Customer invoices and payments ProformaBill=Proforma Bill: Reduction=Reduction ReductionShort=Reduc. diff --git a/htdocs/langs/en_US/compta.lang b/htdocs/langs/en_US/compta.lang index a0ae8d3876dce9901898fb1dd294b49945ad8c93..20b3e9d48cd15e05231d6d2b1f8e24a4cd705ef4 100644 --- a/htdocs/langs/en_US/compta.lang +++ b/htdocs/langs/en_US/compta.lang @@ -72,3 +72,4 @@ PaySocialContribution=Pay a social contribution ConfirmPaySocialContribution=Are you sure you want to classify this social contribution as payed? DeleteSocialContribution=Delete a social contribution ConfirmDeleteSocialContribution=Are you sure you want to delete this social contribution? +ExportDataset_tax_1=Social contributions and payments diff --git a/htdocs/langs/en_US/suppliers.lang b/htdocs/langs/en_US/suppliers.lang index 037a7a2c8e963cc5736a01651e89b6aa1c2f958e..6626305120541afc912163d31ede420ef4353fc3 100644 --- a/htdocs/langs/en_US/suppliers.lang +++ b/htdocs/langs/en_US/suppliers.lang @@ -19,4 +19,6 @@ ProductHasAlreadyReferenceInThisSupplier=This product has already a reference in NoRecordedSuppliers=No suppliers recorded SupplierPayment=Supplier payment SuppliersArea=Suppliers area -RefSupplierShort=Ref. supplier \ No newline at end of file +RefSupplierShort=Ref. supplier +ExportDataset_fournisseur_1=Supplier invoices list and invoices' lines +ExportDataset_fournisseur_2=Supplier invoices and payments diff --git a/htdocs/langs/fr_BE/admin.lang b/htdocs/langs/fr_BE/admin.lang index fffce2066fa3b132d4a5ef4493e1c784f8d545e5..59e0c519d4c390f8faa3725460bab079e9051518 100644 --- a/htdocs/langs/fr_BE/admin.lang +++ b/htdocs/langs/fr_BE/admin.lang @@ -159,7 +159,7 @@ Module400Name=Projets Module400Desc=Gestion des projets au sein d'autres modules Module410Name=WebCalendar Module410Desc=Int�gration de WebCalendar -Module500Name=Contributions sociales et taxes +Module500Name=Contributions sociales, taxes et dividendes Module500Desc=Gestion des contributions sociales et taxes Module600Name=Avertissements Module600Desc=Envoi d'avertissement (par e-mail) lors d'�v�nements de business dans Dolibarr diff --git a/htdocs/langs/fr_FR/admin.lang b/htdocs/langs/fr_FR/admin.lang index 4212d78340384096b9fe82309304cca9a6530eb6..c64873e061c06db9c6ce5085dea69643a87a2051 100644 --- a/htdocs/langs/fr_FR/admin.lang +++ b/htdocs/langs/fr_FR/admin.lang @@ -215,7 +215,7 @@ Module400Name=Projets Module400Desc=Gestion des projets au sein des autres modules Module410Name=Webcalendar Module410Desc=Interface avec le calendrier Webcalendar -Module500Name=Taxes et charges sociales +Module500Name=Taxes, charges sociales et dividendes Module500Desc=Gestion des taxes et charges sociales Module600Name=Notifications Module600Desc=Envoi de notifications (par mail) sur les �v�nements m�tiers Dolibarr diff --git a/htdocs/langs/fr_FR/banks.lang b/htdocs/langs/fr_FR/banks.lang index 32bd2a357907bacbf1b8bc450213d464798247aa..aaf4361ac503ae8cd999c434bac49cbe7ae30521 100644 --- a/htdocs/langs/fr_FR/banks.lang +++ b/htdocs/langs/fr_FR/banks.lang @@ -108,4 +108,5 @@ DeleteTransaction=Supprimer la transaction ConfirmDeleteTransaction=Etes-vous sur de vouloir supprimer cette transaction ? ThisWillAlsoDeleteBankRecord=Ceci supprimera aussi les �critures banquaires g�n�r�es BankMovements=Mouvements -CashBudget=Budget de tr�sorerie \ No newline at end of file +CashBudget=Budget de tr�sorerie +ExportDataset_banque_1=Transaction bancaire et relev� \ No newline at end of file diff --git a/htdocs/langs/fr_FR/bills.lang b/htdocs/langs/fr_FR/bills.lang index e9043388f1fed2849ef7956d7452aedc8dbafb49..27297d1d43fbb770334215577abdff2a5cfc654e 100644 --- a/htdocs/langs/fr_FR/bills.lang +++ b/htdocs/langs/fr_FR/bills.lang @@ -195,7 +195,10 @@ Repeatable=R ChangeIntoRepeatableInvoice=Modifier en r�currente CreateRepeatableInvoice=Cr�er facture r�currente CreateFromRepeatableInvoice=Cr�er depuis facture r�currente +CustomersInvoicesAndInvoiceLines=Factures clients et lignes de factures +CustomersInvoicesAndPayments=Factures clients et r�glements ExportDataset_invoice_1=Factures clients et lignes de facture +ExportDataset_invoice_2=Factures clients et r�glements ProformaBill=Facture Proforma : Reduction=R�duction ReductionShort=R�duc. diff --git a/htdocs/langs/fr_FR/compta.lang b/htdocs/langs/fr_FR/compta.lang index 1cfab11c2cf2e1dddc971d1545f213c70423a38a..5743145c1a9550df8c3463b829eacfed4752dd01 100644 --- a/htdocs/langs/fr_FR/compta.lang +++ b/htdocs/langs/fr_FR/compta.lang @@ -71,4 +71,5 @@ NoWaitingChecks=Pas de ch PaySocialContribution=Payer une charge sociale ConfirmPaySocialContribution=Etes-vous s�r de vouloir classer cette charge sociale � pay� ? DeleteSocialContribution=Effacer charge sociale -ConfirmDeleteSocialContribution=Etes-vous s�r de vouloir supprimer cette charge sociale ? \ No newline at end of file +ConfirmDeleteSocialContribution=Etes-vous s�r de vouloir supprimer cette charge sociale ? +ExportDataset_tax_1=Charges sociales et paiements \ No newline at end of file diff --git a/htdocs/langs/fr_FR/suppliers.lang b/htdocs/langs/fr_FR/suppliers.lang index 268de95fb1eb8c42e66f9a2ca88220337326dbd5..fe0a694b6bdd23396008510142fcfa4d6c8351a7 100644 --- a/htdocs/langs/fr_FR/suppliers.lang +++ b/htdocs/langs/fr_FR/suppliers.lang @@ -19,4 +19,6 @@ ProductHasAlreadyReferenceInThisSupplier=Ce produit a d NoRecordedSuppliers=Pas de fournisseurs enregistr�s SupplierPayment=Paiement fournisseur SuppliersArea=Espace fournisseurs -RefSupplierShort=R�f. fournisseur \ No newline at end of file +RefSupplierShort=R�f. fournisseur +ExportDataset_fournisseur_1=Factures fournisseurs et lignes de facture +ExportDataset_fournisseur_2=Factures fournisseurs et r�glements