I have a Sales Order that went through approval process and is now Released.
It has a Warehouse Shipment attached. Now that the user is trying to post the shipment, the system is trying to reopen the sales order and kick off the approval process again - preventing the user from posting because approval is required.
The reopening and releasing comes in when the Posting Date on the Sales Order and the Warehouse Shipment is different. (Codeunit 5763)
However, the user is able to change the posting date on the Sales Order without needing to reopen the document.
Surely, reopen and release is then not needed?
Or the user will have to set the Sales Order Posting Date to the same as the Warehouse Shipment before posting - voiding the purpose of the code in the first place.
Answers
In your case it works if you use CU 22 or newer.