Topic: Left to allocate is showing wrong.

Here is the screenshot proof.  When we paid partially and and make second payment, the left to allocate didnt consider the previous payment.

Screenshot

Subscription service based on FA
HRM CRM POS batch Themes

2 (edited by notrinos 09/12/2018 04:36:11 pm)

Re: Left to allocate is showing wrong.

Lines 563 and 564 of ui_view.inc need to be reversed.
Good news is that this is just a display issue, not a matter of data.

amount_cell($alloc_row['Total'] - $alloc_row['amt']);
amount_cell($alloc_row['amt']);

must be

amount_cell($alloc_row['amt']);
amount_cell($alloc_row['Total'] - $alloc_row['amt']);
Phuong

Re: Left to allocate is showing wrong.

Thanks @kvvaradha and @notrinos. Will fix this later.

Joe

Re: Left to allocate is showing wrong.

This has been fixed and committed to core.

Joe

Re: Left to allocate is showing wrong.

@notrinos - glad to hear that you found patch for it.  I was bit stuck so couldnt spend time while getting this issue.

@joe - cool

Subscription service based on FA
HRM CRM POS batch Themes

Re: Left to allocate is showing wrong.

Sorry, this fix did not solve the problem, It produces the correct result for the last payment but falsifies the result of the previous payment.

The correct fix must be:

563    amount_cell($alloc_row['Total'] - $alloc_row['alloc']);
564    amount_cell($alloc_row['amt']);
Phuong

Re: Left to allocate is showing wrong.

No problem. Made a rerun. Thanks.

Joe