Hi guys,
I created a custom plugin that calculates the VAT %, Tax and some Discount % in the Quote Product & Order Product entities, and they both work just fine.
When I try to create an Order from a Quote though, I get the error "The product and the unit cannot be updated while the entity is locked." What I get from this error is that because of the built-in workflow that gets the data from the quote and sets it to the "Order", I cannot use my plugin.
What I tried so far is to change the step for execution of the plugin from Post to Pre (Didn't calculate though)Event.
I tried to change the execution mode to "Asynchronous" - This way I was able to create an Order from the Quote, but my plugin in the Quote Product didn't work at all, or calculated wrong values.
I tried the steps in this article too, but without success. - http://nzcrmguy.blogspot.dk/2011/05/c-plugin-update-error-product-and-unit.html
Please, help!
*This post is locked for comments
I have the same question (0)