i want to call the javascript calculateTotal(‘lineItems’); on these fields,so that my grand total field shows the updated value.I have searched the line_items.php page but couldn’t find the fields there.How can i call this?
You can call the calculateTotal(‘line_items’) on a custom field in custom/modules/AOS_Quotes/metadata/editviewdefs.php by adding an onblur event. For example for tax_amount you’ll see the following:
On custom/modules/AOS_Quotes/metadata/editviewdefs.php I have called calculateTotal() on multiple fields ,It 's working for the first field but has no effect on other fields.array is like the following.
additional discount field recalculate the total on onblur event,but agent discount field no effect on totals when updated.
How can i make the calculation work on agent discount field as well?.Please guide me on this.