Invoicing error in due date calculation for 01/31/2013
This bug report was converted into a question: question #222445: Invoicing error in due date calculation for 01/31/2013.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Medium
|
OpenERP R&D Addons Team 3 |
Bug Description
Hi all,
due date is not calculated correcty only for an invoice date of 01-31-2013 (and 01-31-2014, and so on ...)
invoicing date: 01-31-2013
Payment term: 90 days end of month
due date should be 04-30-2013
I set this payment term in Accounting > Configuration > Payment Term
Valuation: balance
Number of days: 90
Day of the month: -1
With that OpenERP gives me 05-31-2013 for the due date
What is very strange is that OpenERP computes correctly the due date for all the other days of the years...
invoicing date due date
02-28-2013 05-31-2013 OK
03-31-2013 06-30-2013 OK
etc....
You can try this here:
http://
db: Test_Compta
user: admin
pwd: kazacube
Thanks for your help!
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Hello Damien,
: 0 Return net days
:+ ve It gives day of the next month)
I have gone through your suggested bug,
there is no error in calculation of due date. Here you set payment term 90 Days end of month.
If invoice date is: 01-31-2013. so, according to payment term if we calculate 90 days after 31st January it will be 5/1/2013. Because there are 28 days in February.
Now if you set payment term in Accounting > Configuration > Payment Term
Valuation: balance
Number of days: 90
Day of the month: -1 (If you set Day of Month : -1 Return last day of the current month
It will give last date of month(5/31/2013).