custom payment mode in invoice PDF

Yo!

ok, today i’ve been tweaking the invoice’s pdf generator :woohoo:

a little bug report:

  1. if we define a new payment mode in “setup/module/dictionarry setup/Payment modes”, the invoice’s pdf generator code is not updated causing the invoice PDF generator to display “PaymentTypeShort” in the “tableau_versements” (table below the total when payment has been made) on the pdf…

So to avoid that, and as the invoice pdf generator is a bit special, the easiest is that instead of creating a new payment mode, we should modify an existing payment mode + modify the translation in bills.lang

please see screenshot below

Pièces jointes :

dolibarr_paymenttype_short.jpg

  1. payment type translation file not taken in account in the compta/facture.php page…

virement.gif

to work around that, we can modify the default name in the “setup/modules/dictionarry setup/Payment modes”, although this would be cool to be corrected in the next version of Dolibarr!

that’s it :silly: