dolibarr-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Dolibarr-dev] MENTION OF SUBROGATION


From: Cyrille de Lambert
Subject: Re: [Dolibarr-dev] MENTION OF SUBROGATION
Date: Fri, 23 Mar 2012 13:42:04 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

Pour ceux qui ne comprennent pas mon mauvais anglais.
L'ideal serait de rendre paramétrable les texte pour les nouveaux moyen de paiement.
Faire ça dans le code (if ceci, je fais cela), c'est très peu souple.
De même, pour le paiement par chèque, j'aimerais en définir 2 (un par banque) afin de pouvoir faire un choix différent suivant le client.
On va voir comment proposer ça pour une prochaine version.

Cyrille

Le 23/03/2012 13:36, Cyrille de Lambert a écrit :
Hi Yoric,

This methode is very hard !!.
I know you can do that but I want to set draws this kind of problem.

Regard

Le 22/03/2012 17:20, Yoric Mangeart a écrit :

Hi Cyrille,

I came across the same kind of issue: I had to insert a custom text at the bottom left of a PDF invoice document.

I did a quick and dirty fix (without creating a whole module). Still, the result was ok on the PDF so it might help.

Actually, i didn't create a new method of payment (i sticked with "virement") but i hacked the code so that it checks weither the bank's name equals *your bank name* while rendering the PDF invoice, and add the custom text if so.

For your purpose, it might look like that:

Step 1/ Create an LCL bank account, if not already done

Step 2/Edit file "lib/pdf.lib.php" (and go to function "pdf_bank"):
$libelle_bas = $account->bank=='LCL'?'MySpecificLCLtext':'PaymentByTransferOnThisBankAccount';
if ($account->bank) $cury+=8; // number 8 can be bigger if your custom text is several lines long

Step 3/ Edit file "langs/fr_FR/bills.lang" and add one line:
MySpecificLCLtext=Pour être libératoire, votre règlement doit être effectué directement à l’ordre de Bibby Factor...etc...

Then make sure you have selected *your bank name* and "virement" while rendering your invoice, and it should be ok.

---

Yoric

2012/3/22 Cyrille de Lambert <address@hidden>
Hi,

I have to insert references to Subrogation on invoices.
For this, I thought creating a method of payment and indicate a specific reference to this method of payment.
example:

"Règlement à l’ordre de

BIBBY FACTOR FRANCE
158 avenue Thiers
CS 70 033

69454 LYON cedex 06
Tél. : 04 72 35 97 09 Fax : 04 72 35 95 76

Pour être libératoire, votre règlement doit être effectué directement à l’ordre de Bibby Factor, sur le compte : LCL N° 30002 01958 0000062140E 87 qui le reçoit par subrogation dans le cadre d’un contrat d’affacturage.

Bibby Factor devra être avisé de toute demande de renseignement ou réclamation."


This is not actually possible in Dolibarr.
Does anyone have done a module?

Regard
--
AUGURIA
Cyrille de Lambert
address@hidden
9, rue Alfred Kastler
BP 50752
44307 NANTES CEDEX 3
Tél : +33 (0) 2 51 13 50 12
Mobile :+33 (0) 6 29 41 81 22
Fax : +33 (0) 2 51 13 52 88
http://www.auguria.net

_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev





_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev


--
AUGURIA
Cyrille de Lambert
address@hidden
9, rue Alfred Kastler
BP 50752
44307 NANTES CEDEX 3
Tél : +33 (0) 2 51 13 50 12
Mobile :+33 (0) 6 29 41 81 22
Fax : +33 (0) 2 51 13 52 88
http://www.auguria.net


_______________________________________________
Dolibarr-dev mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/dolibarr-dev


--
AUGURIA
Cyrille de Lambert
address@hidden
9, rue Alfred Kastler
BP 50752
44307 NANTES CEDEX 3
Tél : +33 (0) 2 51 13 50 12
Mobile :+33 (0) 6 29 41 81 22
Fax : +33 (0) 2 51 13 52 88
http://www.auguria.net

reply via email to

[Prev in Thread] Current Thread [Next in Thread]