October 18th 2003 oXerp Documentation SourceForge.net Logo
Introduction Installation Create a company Create a partner Create a product Create an order Create an invoice Customize invoice Customize payment conditions Import-export Close a period Marshalling java-xml Understand config files Add extra info to an object
Customize invoice

XSLT is the language used to customize documents. Just create a sub-directory with the name of your company below config in your installation tree. Add a customized invoice.xsl file in it. You can find default invoice.xsl in config/default sub-directory. Here is an example of invoice.xml to be transformed by invoice.xsl ; this xml is produced by class InvoicePrintableHelper :

<invoice validated='false' libelle='Prestations' reference='20008' compte-bilan-key='410' journal-key='VT' order-key='BC$;$0' order-ref='BC' order-type='0' partner-key='MyClient' payment-date='2004-4-26T0:0:0.0+2:00' escompte='0.0' remise='0.0' currency-code='Euro' date='2004-2-26T0:0:0.0+2:00' type='0'> <partner-data name='MyClient name' reference='MyRef' type='0'> <address city='PARIS' delivery='false' libelle='Les Halles' street='1, rue de Paris' zip='31500'> <person billing-contact='true' first-name='Alain' main-contact='true' name='TOTO' title='1'/> </address> <payment-conditions xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:type='org.oxerp.plugins.pcm.PaymentConditionsComptant'> <key>payment.conditions.comptant</key> </payment-conditions> <payment-mode key='payment.mode.cheque'/> <xml-info><intra-vat>FR 00000000</intra-vat></xml-info> <compte-avoir-client>410</compte-avoir-client> <compte-client>410</compte-client> <compte-escompte-client>410</compte-escompte-client> <compte-remise-client>410</compte-remise-client> </partner-data> <xml-info>null;null;null;null;</xml-info> <payment-conditions xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:type='org.oxerp.plugins.pcm.PaymentConditionsJ60Facture'> <key>60J date de facture</key> </payment-conditions> <payment-mode key='Virement'/> <simple-line libelle='Frais de déplacement' compte-resultat='700' amount='194.10' quantity='1.00' remise-commerciale='0.0' vat-rate='0.196'/> <stock-line libelle='Prestations Diverses' appro-amount='0.00' compte-resultat-key='700' currency-code='Euro' date='2004-2-26T0:0:0.0+2:00' journal-key='VT' pk='200080' amount='3811.20' quantity='5.00' remise-commerciale='0.0' vat-rate='0.196' product-code='INTJ'/> </invoice>