Auto charges don't seem be able to pickup changes from edits to orders. I created a sales order with a mode of delivery "10" which has an $88 charge. Any other mode of delivery does not have a charge associated with it. I can change the mode of delivery as many times as I want before I click "Save" or "Totals" and it will get the correct charge amount. (I think it is because that is the first time initFromMarkupAutoLine(markupAutoLine) is called). However, if I go back to a sales order after I save it, or after I click "totals" then edit the order, the charge will be wrong.
My example:
I created a sales order with mode of delivery: "10" and I clicked totals. I got charged $88
Then I clicked edit and changed the mode of delivery to something else. Clicked totals and still got charged $88.
Is there a way for these changes to get picked up? Is there a method that I can modify to do this?