Payment Term not recalculated when Doc Type has override date on complete

Description

Hi,
i discovered that payment schedule is not recalculate when you have doctype with override date on complete.

Scenario : Payment term schedule : 30 days
Order : date 15/10/2018 Today is 10/11/ 2018
DocType : override date on complete YES
Create Invoice : Date invoice 15/10/2018 payment schedule: 15/11/2018
When complete invoice you will have
Invoice date 10/11/2018 OK payment schedule remain 15/11/2018 should be 10/12/2018

thank you

Marco Longo
iDempiere Consulting

Environment

None

Activity

Show:
Andres Lopez Andrade
May 9, 2020, 6:18 PM

Triaged by Andres Lopez

Steps

  1. Change AR invoice DocType with Overwrite Date on Complete Checked

     

  2. Create AR Invoice with Date Invoiced = 05/01/2020, Payment Rule = On Credit and Payment Term = 50% inmediate 50% in 30 days

     

  3. Document Completed, dateinvoiced changed to 05/09/2020, due date on Payment Schedule aren’t change

     

Still reproduced on 7.1z

Andres Lopez Andrade
June 25, 2020, 4:02 AM

Triaged by Andres Lopez

Still same behavior

Carlos Ruiz
June 25, 2020, 5:26 PM

It sounds dangerous to recalculate a payment schedule on complete - it's possible that the user has modified the payment schedule to some specific needs.

Andres Lopez Andrade
June 25, 2020, 5:42 PM

Agree with your point of view, could be that the Invoice has a special negotiation for payment and will be overwrite on Complete, but you could put a checkbox on Document Type something like isPaymentSchedule, if mark recalculate the schedule, if no, payment schedule remains

Assignee

Unassigned

Reporter

MarcoL

Labels

Tested By

None

Components

Affects versions

Priority

Minor
Configure