On 2017-07-05 12:34, [email protected] wrote: > I created a PaymentTerm thirty days + end of month > with the line > Remainder, days=30, day=31 > > Testing in 4.2 with the wizard TestPaymentTermView > I get March 2 for a date of January 2 > where I expect to get February 28. > > Is it a bug or did I misuse?
A misuse. The order of operations is important when using absolute and relative in the same line. See http://labix.org/python-dateutil#head-72c4689ec5608067d118b9143cef6bdffb6dad4e So in your case what happens is: January 2nd -> day=31 -> January 31 -> days=30 -> March 2nd You must have 2 lines: 1) days=30 2) day=31 January 2nd -> days=30 -> February 1st -> day=31 -> February 28th -- Cédric Krier - B2CK SPRL Email/Jabber: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/20170705105741.GL3534%40kei.
