Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #20994 All Revisions ] Back to Issue ]
Summary 0020994: Add Details (Payment in/out): difference options are not properly calculated
Revision 2012-07-10 17:01 by mirurita
Description If you have more than one record in the grid the difference options are not properly displayed.

Note: if you use the "select all" checkbox the difference options work.

For each record in the grid the updateReadOnly (FIN_Utilities.js) method is called.

expectedAmount = frm.inpExpectedPayment.value;

frm.inpExpectedPayment.value at this point is "" (empty string).
Before, at this point, updateAll method was previously called and it was calculating the expected payment.

and after this statement it takes "NaN.00" value
frm.inpExpectedPayment.value = subtract(expectedAmount, recordAmount);

(see attached screenshot)

for difference options the expected payment value is used. As it has an invalid value the difference options calculation does not work.
Revision 2012-07-10 16:57 by mirurita
Description If you have more than one record in the grid the difference options are not properly displayed.

For each record in the grid the updateReadOnly (FIN_Utilities.js) method is called.

expectedAmount = frm.inpExpectedPayment.value;

frm.inpExpectedPayment.value at this point is "" (empty string)

and after this statement it takes "NaN.00" value
frm.inpExpectedPayment.value = subtract(expectedAmount, recordAmount);

(see attached screenshot)

for difference options the expected payment value is used. As it has an invalid value the difference options calculation does not work.

Before, updateAll method was called and it was calculating the expected payment.


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker