Hi, I am customising quotes a little - I need to display related collection of extra charges of a Quote line item (product) and let the user to edit it. To make it the most user friendly, I would like to calculate field "extra charges" on QLI immediately after the user changes some value on some extra charge (e.g. the same way, the group total updates when price on QLI is changed). Formula for the extra charges field is:
'formula' => 'rollupCurrencySum($products_ve_valve_extra_charges_1, "total_amount")',
It works when I reload the page, or refetch the QLI, but I would really like to display it right away. I know it is possible, since it works on product bundles from QLI, but I am unable to find out how to do it. I have noticed function "setupSugarLogicForModelOrCollection" but it does not connect related models...
Can anyone help?