Wrong allocation date stops accounting
Description
Environment
Attachments
is caused by
Activity

Martin Schönbeck October 25, 2021 at 7:55 PM
I didn’t think to visualize it to get at it but to avoid irritation because of taking a date which is nowhere shown.
Carlos Ruiz October 25, 2021 at 7:29 PM
I think you can get the information instantiating the MPayment or MInvoice, no need to visualize the DateAcct - in most cases is the same DateTrx.

Martin Schönbeck October 25, 2021 at 7:25 PM
Hi ,
I agreed that’s no good idea, to use the patch.
I had a look at Allocation.calculatePayment and Allocation.calculateInvoice and the problem is, that both functions don’t have the DateAcct at hand. So it’s a bit more to do and I think the DateAcct should be visualized, too. At the moment I’m out of time but if nobody else does in the meantime I’ll take care of it later.
Carlos Ruiz October 23, 2021 at 12:57 PM
- the patch suggested in the description is precisely changing the date at model level, so the user fills a date in the form and the model saves a different date.
Maybe the change must be done better at Allocation.calculatePayment and Allocation.calculateInvoice where both methods calculate and set the variable allocDate
Regards,
Carlos Ruiz

Martin Schönbeck October 23, 2021 at 12:52 PM
Hi ,
I think the broken link is not really of interest, because:
as you wrote it’s no good idea, to change the allocation date behind the scene
the proposed change can be seen in the description
Details
Details
Assignee

Reporter

When trying to fix bug a very annoying sideeffect occured.
The side effect is that pre payments can't be allocated to invoices without trouble.
MAllocationHdr:442-454.java
Correct code