Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015372Openbravo ERPZ. Otherspublic2010-12-07 17:382010-12-16 22:16
psarobe 
mirurita 
urgentmajoralways
closedno change required 
5
 
 
Advanced Payables and Receivables Mngmt
No
0015372: Wrong Payment date when the payment is created automatically
When the payment is created automatically due to the payment method (is configured for that) the "payment date" for that payment is not the system date or the invoice date (pending to define).

So for example if you create today an invoice with the payment terms: +90 days and the payment method that creates the payment you finally have:

Sales invoice date: 07/12/2010
Payment date: 07/03/2011
Due date: 07/03/2011

In my opinion is that the payment date cannot be the same as the due date but the either the system date or the invoice date

Here the main problem would be if the payment can be posted because from an accounting point of view it is strange
1. Have a payment method that automatically creates the payment
2. Have a payment term: 90 days
3. Create a purchase invoice and complete

The payment date will be created as system date+90 and that's wrong

Expected result: System date or invoice date
No tags attached.
Issue History
2010-12-07 17:38psarobeNew Issue
2010-12-07 17:38psarobeAssigned To => adrianromero
2010-12-07 17:38psarobeModules => Advanced Payables and Receivables Mngmt
2010-12-07 17:38psarobeAssigned Toadrianromero => mirurita
2010-12-07 17:38psarobeStatusnew => scheduled
2010-12-07 17:48psarobeDescription Updatedbug_revision_view_page.php?rev_id=1282#r1282
2010-12-09 17:55miruritaNote Added: 0033101
2010-12-09 17:55miruritaStatusscheduled => closed
2010-12-09 17:55miruritaResolutionopen => no change required
2010-12-16 22:16anonymoussf_bug_id0 => 3138805

Notes
(0033101)
mirurita   
2010-12-09 17:55   
It's the expected behavior of the application.
If you want to use the automations in a payment method for creating a payment with today's date you should use the Immediate payment term.
Otherwise the automation process will use the due date as the payment date.