← Back to team overview

openerp-expert-accounting team mailing list archive

[Bug 560459] Re: Payment term Date computation needs attention!

 

Hello Experts,

We need your views here for payment date calculation.

There are 2 fields that are responsible for counting the date.

1. Number of Days 2. Day of the month.

The scenario is:
A. If I select 0 days as no. of days:
    1. If the day of the month is -1, it has to take the end date of current month.
    2. If the day of the month is positive(say 12), the 12th of this month has to be the final date.

for 2. Currently it takes, next months date + day of that month.

B.  If I select 30(any number >0) days as no. of days:
    1. If the day of the month is -1, it has to count like current date+ 30  days, and the end date of the resulting month.
    2. If the day of the month is positive(say 12),it has to count like current date + 30  days, and the 12th date of the resulting month.

Currently, for positive days (for day of month), it considers the next
to next month.

Please refer the patch and check.

Thanks.


** Patch added: "payment_date_calc.patch"
   http://launchpadlibrarian.net/44256540/payment_date_calc.patch

** Changed in: openobject-addons
       Status: Confirmed => In Progress

-- 
Payment term Date computation needs attention!
https://bugs.launchpad.net/bugs/560459
You received this bug notification because you are a member of OpenERP's
Accounting Experts, which is a direct subscriber.

Status in OpenObject Addons Modules: In Progress

Bug description:
In computing next_date, add 1 month from source code, but you should be configurable, and it is not always well.

These can be configurable since the model: account.payment.term.line
adding a field: months