Edition Personnalisée/Documentation utilisateur
Description et utilisation
Le module d'édition personnalisée permet de générer les documents au format PDF et/ou ODT correspondant à une proposition commerciale, commande ou facture standard de dolibarr. Ce module vient en supplément à la génération standard de document de dolibarr.
Les documents sont générés à partir de modèle(s) téléversable via l'administration du module : Accueil => Configuration => Modules => Odtdocs : Config.
Pour générer un document via ce module, il suffit d'accéder à l'onglet "Edition Personnalisée" qui se trouve sur la fiche d'une proposition commerciale, commande ou facture lorsque le module est activé. Une fois sur cette page il suffit de choisir un modèle (préalablement téléversé) et de cliquer sur "Générer" pour avoir un document au format .ODT, ou sur "Générer en PDF" pour un document au format .PDF.
Pour chaque fiche proposition commerciale, commande ou facture, une liste des différents documents générés via le module d'édition personnalisée est disponible via l'onglet du même nom.
Modèles de documents
Les modèles de documents doivent être au format ODT et conçu au format TinyButStrong
Les différentes variables accessible dans ces modèles sont :
1 - Propales
[doc] => Propal Object ( [element] => propal [table_element] => propal [table_element_line] => propaldet [fk_element] => fk_propal [ismultientitymanaged:protected] => 1 [id] => 2 [socid] => 11 [client] => [contactid] => [fk_project] => [author] => [ref] => PR1311-0001 [ref_client] => [statut] => 0 [datec] => 1384961438 [datev] => 1385045875 [date] => 1384902000 [datep] => 1384902000 [date_livraison] => [fin_validite] => 1386241200 [user_author_id] => 2 [user_valid_id] => 2 [user_close_id] => [total_ht] => 105000.00000000 [total_tva] => 0.00000000 [total_localtax1] => 0.00000000 [total_localtax2] => 0.00000000 [total_ttc] => 105000.00000000 [price] => [tva] => [total] => 105000.00000000 [cond_reglement_id] => 1 [cond_reglement_code] => RECEP [mode_reglement_id] => 0 [mode_reglement_code] => [remise] => 0 [remise_percent] => [remise_absolue] => [note] => [note_private] => [note_public] => [fk_delivery_address] => [fk_address] => [address_type] => [address] => [availability_id] => 0 [availability_code] => [demand_reason_id] => 0 [demand_reason_code] => [products] => Array ( ) [line] => [origin] => [origin_id] => [labelstatut] => Array ( [0] => Brouillon (à valider) [1] => Validée (propale ouverte) [2] => Signée (à facturer) [3] => Non signée (fermée) [4] => Facturée ) [labelstatut_short] => Array ( [0] => Brouillon [1] => Ouvert [2] => Signée [3] => Non signée [4] => Facturée ) [nbtodo] => [nbtodolate] => [specimen] => [error] => [errors] => [canvas] => [lastname] => [firstname] => [name] => [nom] => [civility_id] => [array_options] => Array ( ) [linkedObjectsIds] => Array ( ) [linkedObjects] => Array ( ) [duree_validite] => 15 [modelpdf] => azur [statut_libelle] => Brouillon [date_creation] => 1384961438 [date_validation] => 1385045875 [availability] => [demand_reason] => [mode_reglement] => - [cond_reglement] => A réception de facture [cond_reglement_doc] => Réception de facture [brouillon] => 1 [total_ht_devise] => 105000.00000 [total_tva_devise] => 0 [total_ttc_devise] => 105000.00000 ) [societe] => Societe Object ( [element] => societe [table_element] => societe [fk_element] => fk_soc [childtables:protected] => Array ( [0] => propal [1] => commande [2] => facture [3] => contrat [4] => facture_fourn [5] => commande_fournisseur ) [ismultientitymanaged:protected] => 1 [id] => 11 [name] => ATM [nom] => ATM [firstname] => [lastname] => [particulier] => [civility_id] => [address] => [zip] => 26000 [town] => Valence [status] => 1 [state_id] => 667 [state_code] => MA11 [state] => Plateau de Lautagne [departement_id] => [departement_code] => [departement] => [pays] => [country_id] => 12 [country_code] => FR [country] => France [tel] => 0426781781 [phone] => 0426781781 [fax] => [email] => [url] => www.atm-consulting.fr [barcode] => [barcode_type] => [barcode_type_code] => [barcode_type_label] => [barcode_type_coder] => [idprof1] => [idprof2] => [idprof3] => [idprof4] => [idprof5] => [idprof6] => [prefix_comm] => [tva_assuj] => 1 [tva_intra] => [localtax1_assuj] => [localtax2_assuj] => [capital] => 45000000 [typent_id] => 0 [typent_code] => TE_UNKNOWN [effectif_id] => [forme_juridique_code] => [forme_juridique] => [remise_percent] => 0 [mode_reglement_id] => [cond_reglement_id] => [remise_client] => 0 [mode_reglement] => [cond_reglement] => [client] => 1 [prospect] => 0 [fournisseur] => 0 [code_client] => CL00011 [code_fournisseur] => [code_compta] => 411CL00011 [code_compta_fournisseur] => [note] => [note_private] => [note_public] => [stcomm_id] => 0 [statut_commercial] => Jamais contacté [price_level] => [datec] => 1380668336 [date_update] => 1380668336 [commercial_id] => [parent] => [default_lang] => [ref_int] => [import_key] => [logo] => [logo_small] => [logo_mini] => [array_options] => [oldcopy] => [error] => [errors] => [canvas] => [linkedObjectsIds] => [linkedObjects] => [entity] => 1 [ref] => 11 [ref_ext] => [effectif] => [fk_prospectlevel] => ) [mysoc] => Societe Object ( [element] => societe [table_element] => societe [fk_element] => fk_soc [ismultientitymanaged:protected] => 1 [id] => 0 [name] => MyCompany [nom] => MyCompany [firstname] => [lastname] => [particulier] => [civility_id] => [address] => [zip] => 20000 [town] => Valence [status] => 1 [state_id] => [state_code] => [state] => [departement_id] => [departement_code] => [departement] => [pays] => [country_id] => 12 [country_code] => FR [country] => France [tel] => 0426781781 [phone] => 0426781781 [fax] => 0426781781 [email] => info@test.com [url] => http://www.test.fr [barcode] => [barcode_type] => [barcode_type_code] => [barcode_type_label] => [barcode_type_coder] => [idprof1] => 239489 [idprof2] => [idprof3] => 40417086 [idprof4] => 8811722 [idprof5] => [idprof6] => [prefix_comm] => [tva_assuj] => 1 [tva_intra] => [localtax1_assuj] => 0 [localtax2_assuj] => 0 [capital] => [typent_id] => 0 [typent_code] => [effectif_id] => 0 [forme_juridique_code] => [forme_juridique] => [remise_percent] => [mode_reglement_id] => [cond_reglement_id] => [remise_client] => [mode_reglement] => [cond_reglement] => [client] => 0 [prospect] => 0 [fournisseur] => 0 [code_client] => [code_fournisseur] => [code_compta] => [code_compta_fournisseur] => [note] => [note_private] => [note_public] => [stcomm_id] => [statut_commercial] => [price_level] => [datec] => [date_update] => [commercial_id] => [parent] => [default_lang] => [ref_int] => [import_key] => [logo] => MyLogo_0.jpg [logo_small] => MyLogo_0_small.jpg [logo_mini] => MyLogo_0_mini.jpg [array_options] => [oldcopy] => [error] => [errors] => [canvas] => [linkedObjectsIds] => [linkedObjects] => ) [tableau] => Array ( [0] => Array ( [error] => [oldline] => [rowid] => 6 [fk_propal] => 2 [fk_parent_line] => 10 [desc] => [fk_product] => 681 [product_type] => 0 [qty] => 5000 [tva_tx] => 0.000 [subprice] => 15.00000000 [remise_percent] => [fk_remise_except] => [rang] => 1 [fk_fournprice] => [pa_ht] => 0.00000000 [marge_tx] => [marque_tx] => 100 [special_code] => 0 [info_bits] => 0 [total_ht] => 75000.00000000 [total_tva] => 0.00000000 [total_ttc] => 75000.00000000 [remise] => [price] => 15 [ref] => P001 [libelle] => Un Produit [product_desc] => Un produit de test [localtax1_tx] => 0.000 [localtax2_tx] => 0.000 [total_localtax1] => 0.00000000 [total_localtax2] => 0.00000000 [date_start] => [date_end] => [skip_update_total] => [label] => [product_ref] => P001 [product_label] => Un Produit [fk_product_type] => 0 [product_photo] => [devise_pu] => 15.00000 [devise_mt_ligne] => 75000.00000 [unite] => M3 ) [1] => Array ( [error] => [oldline] => [rowid] => 10 [fk_propal] => 2 [fk_parent_line] => [desc] => PHASE 1 [fk_product] => [product_type] => 9 [qty] => 0 [tva_tx] => 0.000 [subprice] => 0.00000000 [remise_percent] => [fk_remise_except] => [rang] => 1 [fk_fournprice] => [pa_ht] => 0.00000000 [marge_tx] => [marque_tx] => [special_code] => 1790 [info_bits] => 0 [total_ht] => 75000.00000000 [total_tva] => 0.00000000 [total_ttc] => 75000.00000000 [remise] => [price] => 0 [ref] => [libelle] => [product_desc] => [localtax1_tx] => 0.000 [localtax2_tx] => 0.000 [total_localtax1] => 0.00000000 [total_localtax2] => 0.00000000 [date_start] => [date_end] => [skip_update_total] => [label] => [product_ref] => [product_label] => [fk_product_type] => [description] => [devise_pu] => 0.00000000 [devise_mt_ligne] => 75000.00000000 [unite] => ) [2] => Array ( [error] => [oldline] => [rowid] => 11 [fk_propal] => 2 [fk_parent_line] => [desc] => PHASE 2 [fk_product] => [product_type] => 9 [qty] => 0 [tva_tx] => 0.000 [subprice] => 0.00000000 [remise_percent] => [fk_remise_except] => [rang] => 2 [fk_fournprice] => [pa_ht] => 0.00000000 [marge_tx] => [marque_tx] => [special_code] => 1790 [info_bits] => 0 [total_ht] => 30000.00000000 [total_tva] => 0.00000000 [total_ttc] => 30000.00000000 [remise] => [price] => 0 [ref] => [libelle] => [product_desc] => [localtax1_tx] => 0.000 [localtax2_tx] => 0.000 [total_localtax1] => 0.00000000 [total_localtax2] => 0.00000000 [date_start] => [date_end] => [skip_update_total] => [label] => [product_ref] => [product_label] => [fk_product_type] => [description] => [devise_pu] => 0.00000000 [devise_mt_ligne] => 30000.00000000 [unite] => ) [3] => Array ( [error] => [oldline] => [rowid] => 9 [fk_propal] => 2 [fk_parent_line] => 11 [desc] => [fk_product] => 681 [product_type] => 0 [qty] => 2000 [tva_tx] => 0.000 [subprice] => 15.00000000 [remise_percent] => [fk_remise_except] => [rang] => 4 [fk_fournprice] => [pa_ht] => 0.00000000 [marge_tx] => [marque_tx] => 100 [special_code] => 0 [info_bits] => 0 [total_ht] => 30000.00000000 [total_tva] => 0.00000000 [total_ttc] => 30000.00000000 [remise] => [price] => 15 [ref] => P002 [libelle] => Intitulé d'un deuxième problème [product_desc] => Description deuxième produit [localtax1_tx] => 0.000 [localtax2_tx] => 0.000 [total_localtax1] => 0.00000000 [total_localtax2] => 0.00000000 [date_start] => [date_end] => [skip_update_total] => [label] => [product_ref] => P002 [product_label] => Intitulé d'un deuxième problème [fk_product_type] => 0 [product_photo] => [devise_pu] => 15.00000 [devise_mt_ligne] => 30000.00000 [unite] => U3 ) ) [contact] => Array ( [CUSTOMER] => Array ( [id] => 1 [civility] => [firstname] => Test [lastname] => Contact [address] => [cp] => [ville] => [pays] => [email] => [phone] => [fax] => [societe] => ATM Consulting ) [BILLING] => Array ( [id] => 1 [civility] => [firstname] => Test [lastname] => Contact [address] => [cp] => [ville] => [pays] => [email] => [phone] => [fax] => [societe] => ATM Consulting ) [SALESREPFOLL] => Array ( [id] => 1 [firstname] => [lastname] => SuperAdmin [address] => [cp] => [ville] => [pays] => [email] => support@atm-consulting.fr [phone] => [fax] => ) ) [linkedObjects] => Array ( ) [autre] => Array ( [devise] => Euros [incoterm] => EXW [date_devis_fr] => 22/11/2013 [fin_validite] => 05/12/2013 [projet] => Intitulé projet )
2 - Commandes
[doc] => Propal Object ( [element] => propal [table_element] => propal [table_element_line] => propaldet [fk_element] => fk_propal [ismultientitymanaged:protected] => 1 [id] => 2 [socid] => 11 [client] => [contactid] => [fk_project] => [author] => [ref] => PR1311-0001 [ref_client] => [statut] => 0 [datec] => 1384961438 [datev] => 1385045875 [date] => 1384902000 [datep] => 1384902000 [date_livraison] => [fin_validite] => 1386241200 [user_author_id] => 2 [user_valid_id] => 2 [user_close_id] => [total_ht] => 105000.00000000 [total_tva] => 0.00000000 [total_localtax1] => 0.00000000 [total_localtax2] => 0.00000000 [total_ttc] => 105000.00000000 [price] => [tva] => [total] => 105000.00000000 [cond_reglement_id] => 1 [cond_reglement_code] => RECEP [mode_reglement_id] => 0 [mode_reglement_code] => [remise] => 0 [remise_percent] => [remise_absolue] => [note] => [note_private] => [note_public] => [fk_delivery_address] => [fk_address] => [address_type] => [address] => [availability_id] => 0 [availability_code] => [demand_reason_id] => 0 [demand_reason_code] => [products] => Array ( ) [line] => [origin] => [origin_id] => [labelstatut] => Array ( [0] => Brouillon (à valider) [1] => Validée (propale ouverte) [2] => Signée (à facturer) [3] => Non signée (fermée) [4] => Facturée ) [labelstatut_short] => Array ( [0] => Brouillon [1] => Ouvert [2] => Signée [3] => Non signée [4] => Facturée ) [nbtodo] => [nbtodolate] => [specimen] => [error] => [errors] => [canvas] => [lastname] => [firstname] => [name] => [nom] => [civility_id] => [array_options] => Array ( ) [linkedObjectsIds] => Array ( ) [linkedObjects] => Array ( ) [duree_validite] => 15 [modelpdf] => azur [statut_libelle] => Brouillon [date_creation] => 1384961438 [date_validation] => 1385045875 [availability] => [demand_reason] => [mode_reglement] => - [cond_reglement] => A réception de facture [cond_reglement_doc] => Réception de facture [brouillon] => 1 [total_ht_devise] => 105000.00000 [total_tva_devise] => 0 [total_ttc_devise] => 105000.00000 ) [societe] => Societe Object ( [element] => societe [table_element] => societe [fk_element] => fk_soc [childtables:protected] => Array ( [0] => propal [1] => commande [2] => facture [3] => contrat [4] => facture_fourn [5] => commande_fournisseur ) [ismultientitymanaged:protected] => 1 [id] => 11 [name] => ATM [nom] => ATM [firstname] => [lastname] => [particulier] => [civility_id] => [address] => [zip] => 26000 [town] => Valence [status] => 1 [state_id] => 667 [state_code] => MA11 [state] => Plateau de Lautagne [departement_id] => [departement_code] => [departement] => [pays] => [country_id] => 12 [country_code] => FR [country] => France [tel] => 0426781781 [phone] => 0426781781 [fax] => [email] => [url] => www.atm-consulting.fr [barcode] => [barcode_type] => [barcode_type_code] => [barcode_type_label] => [barcode_type_coder] => [idprof1] => [idprof2] => [idprof3] => [idprof4] => [idprof5] => [idprof6] => [prefix_comm] => [tva_assuj] => 1 [tva_intra] => [localtax1_assuj] => [localtax2_assuj] => [capital] => 45000000 [typent_id] => 0 [typent_code] => TE_UNKNOWN [effectif_id] => [forme_juridique_code] => [forme_juridique] => [remise_percent] => 0 [mode_reglement_id] => [cond_reglement_id] => [remise_client] => 0 [mode_reglement] => [cond_reglement] => [client] => 1 [prospect] => 0 [fournisseur] => 0 [code_client] => CL00011 [code_fournisseur] => [code_compta] => 411CL00011 [code_compta_fournisseur] => [note] => [note_private] => [note_public] => [stcomm_id] => 0 [statut_commercial] => Jamais contacté [price_level] => [datec] => 1380668336 [date_update] => 1380668336 [commercial_id] => [parent] => [default_lang] => [ref_int] => [import_key] => [logo] => [logo_small] => [logo_mini] => [array_options] => [oldcopy] => [error] => [errors] => [canvas] => [linkedObjectsIds] => [linkedObjects] => [entity] => 1 [ref] => 11 [ref_ext] => [effectif] => [fk_prospectlevel] => ) [mysoc] => Societe Object ( [element] => societe [table_element] => societe [fk_element] => fk_soc [ismultientitymanaged:protected] => 1 [id] => 0 [name] => MyCompany [nom] => MyCompany [firstname] => [lastname] => [particulier] => [civility_id] => [address] => [zip] => 20000 [town] => Valence [status] => 1 [state_id] => [state_code] => [state] => [departement_id] => [departement_code] => [departement] => [pays] => [country_id] => 12 [country_code] => FR [country] => France [tel] => 0426781781 [phone] => 0426781781 [fax] => 0426781781 [email] => info@test.com [url] => http://www.test.fr [barcode] => [barcode_type] => [barcode_type_code] => [barcode_type_label] => [barcode_type_coder] => [idprof1] => 239489 [idprof2] => [idprof3] => 40417086 [idprof4] => 8811722 [idprof5] => [idprof6] => [prefix_comm] => [tva_assuj] => 1 [tva_intra] => [localtax1_assuj] => 0 [localtax2_assuj] => 0 [capital] => [typent_id] => 0 [typent_code] => [effectif_id] => 0 [forme_juridique_code] => [forme_juridique] => [remise_percent] => [mode_reglement_id] => [cond_reglement_id] => [remise_client] => [mode_reglement] => [cond_reglement] => [client] => 0 [prospect] => 0 [fournisseur] => 0 [code_client] => [code_fournisseur] => [code_compta] => [code_compta_fournisseur] => [note] => [note_private] => [note_public] => [stcomm_id] => [statut_commercial] => [price_level] => [datec] => [date_update] => [commercial_id] => [parent] => [default_lang] => [ref_int] => [import_key] => [logo] => MyLogo_0.jpg [logo_small] => MyLogo_0_small.jpg [logo_mini] => MyLogo_0_mini.jpg [array_options] => [oldcopy] => [error] => [errors] => [canvas] => [linkedObjectsIds] => [linkedObjects] => ) [tableau] => Array ( [0] => Array ( [error] => [oldline] => [rowid] => 6 [fk_propal] => 2 [fk_parent_line] => 10 [desc] => [fk_product] => 681 [product_type] => 0 [qty] => 5000 [tva_tx] => 0.000 [subprice] => 15.00000000 [remise_percent] => [fk_remise_except] => [rang] => 1 [fk_fournprice] => [pa_ht] => 0.00000000 [marge_tx] => [marque_tx] => 100 [special_code] => 0 [info_bits] => 0 [total_ht] => 75000.00000000 [total_tva] => 0.00000000 [total_ttc] => 75000.00000000 [remise] => [price] => 15 [ref] => P001 [libelle] => Un Produit [product_desc] => Un produit de test [localtax1_tx] => 0.000 [localtax2_tx] => 0.000 [total_localtax1] => 0.00000000 [total_localtax2] => 0.00000000 [date_start] => [date_end] => [skip_update_total] => [label] => [product_ref] => P001 [product_label] => Un Produit [fk_product_type] => 0 [product_photo] => [devise_pu] => 15.00000 [devise_mt_ligne] => 75000.00000 [unite] => M3 ) [1] => Array ( [error] => [oldline] => [rowid] => 10 [fk_propal] => 2 [fk_parent_line] => [desc] => PHASE 1 [fk_product] => [product_type] => 9 [qty] => 0 [tva_tx] => 0.000 [subprice] => 0.00000000 [remise_percent] => [fk_remise_except] => [rang] => 1 [fk_fournprice] => [pa_ht] => 0.00000000 [marge_tx] => [marque_tx] => [special_code] => 1790 [info_bits] => 0 [total_ht] => 75000.00000000 [total_tva] => 0.00000000 [total_ttc] => 75000.00000000 [remise] => [price] => 0 [ref] => [libelle] => [product_desc] => [localtax1_tx] => 0.000 [localtax2_tx] => 0.000 [total_localtax1] => 0.00000000 [total_localtax2] => 0.00000000 [date_start] => [date_end] => [skip_update_total] => [label] => [product_ref] => [product_label] => [fk_product_type] => [description] => [devise_pu] => 0.00000000 [devise_mt_ligne] => 75000.00000000 [unite] => ) [2] => Array ( [error] => [oldline] => [rowid] => 11 [fk_propal] => 2 [fk_parent_line] => [desc] => PHASE 2 [fk_product] => [product_type] => 9 [qty] => 0 [tva_tx] => 0.000 [subprice] => 0.00000000 [remise_percent] => [fk_remise_except] => [rang] => 2 [fk_fournprice] => [pa_ht] => 0.00000000 [marge_tx] => [marque_tx] => [special_code] => 1790 [info_bits] => 0 [total_ht] => 30000.00000000 [total_tva] => 0.00000000 [total_ttc] => 30000.00000000 [remise] => [price] => 0 [ref] => [libelle] => [product_desc] => [localtax1_tx] => 0.000 [localtax2_tx] => 0.000 [total_localtax1] => 0.00000000 [total_localtax2] => 0.00000000 [date_start] => [date_end] => [skip_update_total] => [label] => [product_ref] => [product_label] => [fk_product_type] => [description] => [devise_pu] => 0.00000000 [devise_mt_ligne] => 30000.00000000 [unite] => ) [3] => Array ( [error] => [oldline] => [rowid] => 9 [fk_propal] => 2 [fk_parent_line] => 11 [desc] => [fk_product] => 681 [product_type] => 0 [qty] => 2000 [tva_tx] => 0.000 [subprice] => 15.00000000 [remise_percent] => [fk_remise_except] => [rang] => 4 [fk_fournprice] => [pa_ht] => 0.00000000 [marge_tx] => [marque_tx] => 100 [special_code] => 0 [info_bits] => 0 [total_ht] => 30000.00000000 [total_tva] => 0.00000000 [total_ttc] => 30000.00000000 [remise] => [price] => 15 [ref] => P002 [libelle] => Intitulé d'un deuxième problème [product_desc] => Description deuxième produit [localtax1_tx] => 0.000 [localtax2_tx] => 0.000 [total_localtax1] => 0.00000000 [total_localtax2] => 0.00000000 [date_start] => [date_end] => [skip_update_total] => [label] => [product_ref] => P002 [product_label] => Intitulé d'un deuxième problème [fk_product_type] => 0 [product_photo] => [devise_pu] => 15.00000 [devise_mt_ligne] => 30000.00000 [unite] => U3 ) ) [contact] => Array ( ) [linkedObjects] => Array ( ) [autre] => Array ( [devise] => Euros [incoterm] => EXW [date_devis_fr] => 22/11/2013 [fin_validite] => 05/12/2013 [projet] => Intitulé projet )