# Paiements conditions

**URL:** https://discuss.tryton.org/t/paiements-conditions/8292
**Category:** User
**Created:** [February 8, 2025, 11:50pm UTC](https://discuss.tryton.org/t/paiements-conditions/8292 "2025-02-08T23:50:26Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![herve\_02](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@herve\_02](https://discuss.tryton.org/u/herve_02)
#### Post date: [February 8, 2025, 11:50pm UTC](https://discuss.tryton.org/t/paiements-conditions/8292/1 "2025-02-08T23:50:27Z")

</div>

I am trying to understand the payments conditions rules. how do you indicate the last day of the month ?  
if the invoice is in January, it will be the 31th  
in fev 2027 i would be the 28th  
in fev 2028 the 29th  
in april, it would be the 30th.

so how could you indicate +45 days AND the last day of the month (after the 45 days) ?

i can says +45 days but if i says 31th for april it calculates 1st may.

i read here :

> [@Payment Term configuration](https://discuss.tryton.org/t/payment-term-configuration/6649):
>
> If I have a payment term configured with the following values: Number of months: 2 Day of month: 20 Then I try on “Test Payment Term” to see how is the maturity date define, so I fill in the following values: Payment term: “Number of months”: 2 “Day of month”: 20 Date: 31/10/2023 Amount: 500 The maturity date proposed is 20/12/2023 Why does it propose this date? Shouldn’t it be 20/01/2024 having into account the payment term configuration?

> [@Fixed day payment terms](https://discuss.tryton.org/t/fixed-day-payment-terms/2390/25):
>
> And if you will like to apply a delta to the days, you can do it by including it on the +1 months. So for example if you want to apply to pay on 30D + day 5 you should do: -5 days +1 month + 30 D 5 day So we the missing feature is specifing multiple payment days on the same month.

and i did not understood, nor i found the code to read in case it would help me to understood.

---

<div class="post-metadata">

### Author: ![acaubet](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/acaubet/32/1493_2.png) [@acaubet](https://discuss.tryton.org/u/acaubet)
#### Post date: [February 9, 2025, 10:25am UTC](https://discuss.tryton.org/t/paiements-conditions/8292/2 "2025-02-09T10:25:13Z")

</div>

> [@herve\_02](#):
>
> and i did not understood, nor i found the code to read in case it would help me to understood.

Here is the code, in specific you need to understand the `relativedelta`:

> **[modules/account\_invoice/payment\_term.py · branch/default · Tryton / Tryton ·...](https://foss.heptapod.net/tryton/tryton/-/blob/branch/default/modules/account_invoice/payment_term.py?ref_type=heads)**
>
> Business Software Modularity, scalability & security for your business Documentation Contribute

> [@herve\_02](#):
>
> so how could you indicate +45 days AND the last day of the month (after the 45 days) ?

By creating 2 deltas:  
First delta: days: 45  
Second delta: day:31

I did not understand any of the examples of the dates you posted as you did not bring the posted date of the invoice and just talk about days but not months, the only one I can understand is (+45+last day) with the delta configs mentioned and a date posted in 1rst Jan, it will compute 28th Feb. Be aware of the difference between using `days` (Number of days) and `day` (Day of Month)

By using `day` 31 you are indicating last day, it doesn’t matter if the month will have less or more days, `relativedelta` will handle it.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 9, 2025, 11:18am UTC](https://discuss.tryton.org/t/paiements-conditions/8292/3 "2025-02-09T11:18:58Z")

</div>

There is a dedicated article about the topic in the documentation: [Creating payment terms](https://docs.tryton.org/latest/modules-account-invoice/usage/index.html#creating-payment-terms)

---

<div class="post-metadata">

### Author: ![herve\_02](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@herve\_02](https://discuss.tryton.org/u/herve_02)
#### Post date: [February 9, 2025, 11:38am UTC](https://discuss.tryton.org/t/paiements-conditions/8292/4 "2025-02-09T11:38:44Z")

</div>

- I found that code and read it before posting.

- i did not find the topic in the documentation  
but it did not address the case  
if the 9th fev à want to have 30 fays + end of month, i do not know how to do it

i know how to do 30 days ;  
line :  
remainder  
days +30

i know how to do end of month  
line :  
remainder  
months +1  
days -1  
day (of month) 31  
=\> always the last day of the current month

but i do not kow how to do +30 days && end of month  
i have

line :  
remainder  
days +30  
day (of month) 31

if you test with date of invoice 09 fev 25 =\> 30-03-25 (should be 31-03)  
if you test with date of invoice 01 jan 25 =\> 02-03-25 (should be 28-02)

---

<div class="post-metadata">

### Author: ![acaubet](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/acaubet/32/1493_2.png) [@acaubet](https://discuss.tryton.org/u/acaubet)
#### Post date: [February 9, 2025, 6:21pm UTC](https://discuss.tryton.org/t/paiements-conditions/8292/5 "2025-02-09T18:21:18Z")

</div>

I think that you did not see how to create multiple deltas, inside the remainder line, you can create multiple deltas, here is a screenshot, hope it helps:

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/a/a116577f17fa29e184d1ddcc8c5af5cc649ede2c.png)

---

<div class="post-metadata">

### Author: ![herve\_02](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@herve\_02](https://discuss.tryton.org/u/herve_02)
#### Post date: [February 9, 2025, 9:30pm UTC](https://discuss.tryton.org/t/paiements-conditions/8292/6 "2025-02-09T21:30:33Z")

</div>

yes i knew that you could add multi-lines.  
(i work with ant-erp/open-erp/tryton for almost 20 years)

but in my version (6.x) it seems that it is not the same

 ![ecran-20250209-223151](https://discuss-cdn.tryton.org/uploads/default/original/2X/c/c13306ec5e2dc99788304c55de2754aead644a4b.jpeg)

maybe i miss a module ?

ok i am a dumb stupid noobs… i saw… i’ll try

thank you very very much for pointing what i did not saw.

that did the trick

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 9, 2025, 10:58pm UTC](https://discuss.tryton.org/t/paiements-conditions/8292/7 "2025-02-09T22:58:13Z")

</div>

> [@herve\_02](#):
>
> but i do not kow how to do +30 days && end of month

For the record “30 days end of month” does not mean that.  
It means end of the next month.  
See [Add common payment terms (#13863) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/13863)

---

<div class="post-metadata">

### Author: ![herve\_02](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@herve\_02](https://discuss.tryton.org/u/herve_02)
#### Post date: [February 9, 2025, 11:15pm UTC](https://discuss.tryton.org/t/paiements-conditions/8292/8 "2025-02-09T23:15:36Z")

</div>

> For the record “30 days end of month” does not mean that.  
> It means end of the next month.

for the record, nope

“end of the next month” is… “end of the next month”, surely not “30 days end of month”

if you buy the 30th of jan “30 days end of month” means 30 days and go to the last day of the month after thoses 30 days. so with the 30th of january (works with 29 too) you should not pay on the 28(29) of feb but 31st of march. We must be precise when we talk else nobody will understand.

i know that with month with 30 or 31 days, it means end of the next month, but it is not a “rule”

[https://www.economie.gouv.fr/dgccrf/les-fiches-pratiques/delais-de-paiement-les-regles-connaitre](https://www.economie.gouv.fr/dgccrf/les-fiches-pratiques/delais-de-paiement-les-regles-connaitre)

> Le délai de 45 jours fin de mois peut se décompter des deux manières suivantes : date de facture + 45 jours + fin du mois ou _date de facture + fin du mois + 45 jours._

in the second case lets calculate with 30FM

> date de facture + fin du mois + 30 jours.

lets have an invoice of 1st jan  
1st jan \>\> end of month 31 jan\>\> +30 days \>\> 2th of march

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 10, 2025, 12:36am UTC](https://discuss.tryton.org/t/paiements-conditions/8292/9 "2025-02-10T00:36:03Z")

</div>

> [@herve\_02](#):
>
> “end of the next month” is… “end of the next month”, surely not “30 days end of month”

I did not express correctly.  
30 days EOM means that it is 30 days starting from the end of the month of the invoice date.  
But it does not mean 30 days from the invoice date and after take the end of the month as you tried to implement. A standard term is “End of Month Following” which is probably what you are looking for.

---

<div class="post-metadata">

### Author: ![herve\_02](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@herve\_02](https://discuss.tryton.org/u/herve_02)
#### Post date: [February 10, 2025, 8:49am UTC](https://discuss.tryton.org/t/paiements-conditions/8292/10 "2025-02-10T08:49:38Z")

</div>

this is from french gvt :

Le délai de 45 jours fin de mois peut se décompter des deux manières suivantes : date de facture + 45 jours + fin du mois ou _date de facture + fin du mois + 45 jours._

The 45-day month-end period **can be calculated in one of two ways** : **invoice date** + **45 days** + **end of month** or **invoice date** + **end of month** + **45 days**.

i do not know how it is called, i just know that wen in french we says “30 jours fin de mois” is what i was looking for. but i do not know if it is eom or other things.

some times trying to “translate” do not work. it is almost every time the end of the next month except for february

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [February 10, 2025, 9:17am UTC](https://discuss.tryton.org/t/paiements-conditions/8292/11 "2025-02-10T09:17:11Z")

</div>

And “30 jours fin de mois” is not what you describe: [https://www.allianz-trade.fr/blog/paiement-30-jours-fin-de-mois.html](https://www.allianz-trade.fr/blog/paiement-30-jours-fin-de-mois.html), [Calcul des délais de paiement : fins de mois, échéance de paiement](https://www.e-affacturage.fr/questions/facturation-date-de-paiement.html)

But it is a common mistake but when you think about it, it does not make that much sense. And maybe this mistake became an accepted interpretation in France.

**But the world wide usage of the term is the one I describe.**

_And this is probably not by chance that [relativedelta of dateutil](https://dateutil.readthedocs.io/en/stable/relativedelta.html) computes this way._

---

<div class="post-metadata">

### Author: ![herve\_02](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@herve\_02](https://discuss.tryton.org/u/herve_02)
#### Post date: [February 10, 2025, 9:26am UTC](https://discuss.tryton.org/t/paiements-conditions/8292/12 "2025-02-10T09:26:22Z")

</div>

i much prefer the french gvt explication than a lambda

---

<div class="post-metadata">

### Author: ![herve\_02](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@herve\_02](https://discuss.tryton.org/u/herve_02)
#### Post date: [February 10, 2025, 9:39am UTC](https://discuss.tryton.org/t/paiements-conditions/8292/13 "2025-02-10T09:39:42Z")

</div>

I think it says exactly what it was supposed to say.  
some time ago, big company had a invoicing software (or a subcontractor doing reg/accountancy… like for pay slip ) And the invoices/payments was done at the end of the month so _maybe_ end of month was related to that.

In some company pay slip is end of month, in some it is 5th of the next month…

i agree that it would be “logical” end of the next month, but you could face a nitpicker that really, in january, tries to have the invoice the 30th or 31th. to gain one month for the payment. I guess that this way of calculation became a habit. (feb is the exception)

the example in the gvt page is talking about 45 days, that skip the feb exception. Even thought it says it can be calculated in 2 different ways (and that do not arise the same date of payment)

- invoice + end of month + 45 days =\>  
invoice 15th jan. =\> payment 17th march

- invoice + 45 days + end of month =\>  
invoice 15th jan. =\> payment 31st march  
invoice 10th jan =\> payment 28th feb

---

<div class="post-metadata">

### Author: ![herve\_02](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@herve\_02](https://discuss.tryton.org/u/herve_02)
#### Post date: [February 10, 2025, 9:43am UTC](https://discuss.tryton.org/t/paiements-conditions/8292/14 "2025-02-10T09:43:30Z")

</div>

the example can also be pointed out with insurance company. You pay your insurance for 12 month.  
so when you start in june, it should be june =\> june nextYear

BUT it is june=\>31st of march and then 1st april =\>31st of march Y+1 because i guess that there invoicing/assurinf softare is calibrates 1st april =\> 31st march

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [February 11, 2025, 9:43am UTC](https://discuss.tryton.org/t/paiements-conditions/8292/15 "2025-02-11T09:43:34Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
