
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?
*This post is locked for comments
I have the same question (0)Hello vfrasheri,
today I am facing similar issue of you: I would like to create a charge as following:
- Level: line
- Customer: ALL
- Items: ALL
- Mode of delivery: SAMPLE
- Calculation: % -100
Basically the purpose is to create a particular posting for samples (in Italy we can not use 100% discount).
If I do not setup the mode of delivery it works properly, but when I set the specific mode of delivery D365 does not apply the charge.
I have understood there are issues in the "change" of delivery mode both at line and header level.
Which is the current "state of the art" (I saw your topic is 1y old)?
Thanks for your reply