Following code in the "
is invoked when order contents is saved from the "Items" tab during order editing in Admin Console. This code calculates values for following order fields:
What's wrong with this code is that SubTotal is also calculated in the "
ord:OnRecalculateItems" event, which called on any order update (this one included).
- move "ReturnTotal" field calculation to the
- remove above mentioned code from