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] => Sintram [nom] => Sintram [firstname] => [lastname] => [particulier] => [civility_id] => [address] => sté internationale de travaux au Maroc lotissement la Colline (Sidi Maarouf), lot 31 - 20190 Casablanca [zip] => 20190 [town] => CASABLANCA [status] => 1 [state_id] => 667 [state_code] => MA11 [state] => Préfecture de Casablanca [departement_id] => [departement_code] => [departement] => [pays] => [country_id] => 12 [country_code] => MA [country] => Maroc [tel] => 0522975389-052297539 [phone] => 0522975389-052297539 [fax] => [email] => [url] => www.sitram.ma [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] => Maccaferri Maghreb SARL [nom] => Maccaferri Maghreb SARL [firstname] => [lastname] => [particulier] => [civility_id] => [address] => 62 Boulevard d'Anfa Résidence Bab Abdelaziz N°31 [zip] => 20000 [town] => Cassablanca [status] => 1 [state_id] => [state_code] => [state] => [departement_id] => [departement_code] => [departement] => [pays] => [country_id] => 12 [country_code] => MA [country] => Maroc [tel] => 00212665401256 [phone] => 00212665401256 [fax] => 00212522397317 [email] => info@maccaferri.ma [url] => http://www.maccaferri.ma [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] => Macaferri Logo_0.jpg [logo_small] => Macaferri Logo_0_small.jpg [logo_mini] => Macaferri Logo_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] => GA8A27151010VAST2DIR [libelle] => Gabion NF Acier maille 80x100 fil 2.70 mm GALMAC 1.50x1.00x1.00 m sans diaphragme [product_desc] => Nos fabrications sont conformes aux normes europ�ennes et internationales suivantes : * Charge de rupture et d'allongement EN 10016 & 10223-3 * Tol�rances dimensionnelles du fil EN 10218-2, Classe T1 * Rev�tement Galvanis� EN 10244-2 * Tol�rances mailles hexagonales EN 10223-3 [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] => GA8A27151010VAST2DIR [product_label] => Gabion NF Acier maille 80x100 fil 2.70 mm GALMAC 1.50x1.00x1.00 m sans diaphragme [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] => GA8A27151010VAST2DIR [libelle] => Gabion NF Acier maille 80x100 fil 2.70 mm GALMAC 1.50x1.00x1.00 m sans diaphragme [product_desc] => Nos fabrications sont conformes aux normes europ�ennes et internationales suivantes : * Charge de rupture et d'allongement EN 10016 & 10223-3 * Tol�rances dimensionnelles du fil EN 10218-2, Classe T1 * Rev�tement Galvanis� EN 10244-2 * Tol�rances mailles hexagonales EN 10223-3 [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] => GA8A27151010VAST2DIR [product_label] => Gabion NF Acier maille 80x100 fil 2.70 mm GALMAC 1.50x1.00x1.00 m sans diaphragme [fk_product_type] => 0 [product_photo] => [devise_pu] => 15.00000 [devise_mt_ligne] => 30000.00000 [unite] => M3 ) ) [contact] => Array ( ) [linkedObjects] => Array ( ) [autre] => Array ( [devise] => Moroccan Dirham [incoterm] => - [date_devis_fr] => 22/11/2013 [fin_validite] => 05/12/2013 [projet] => )