Hi,
We have a requirement such that when a purchase order line is cancelled at a legacy application the same Purchase order number line must get cancelled in D365. We tried setting the PurchLine.PurchStatus = PurchStatus::Canceled through Data entity using event handlers at PurchLine onupdating.
But when we go for PO receive and putaway for the same Purchase order line it still allows us to get the line for work creation. While when we perform the Delivery reminder functionality available at PurchTable form it also cancels the line and the line is not available any more for PO Receive and putaway.
Expected behavior: When we cancel the purchase order line through data entity the same purchase order line should not be available for PO receive and putaway and throw error saying "Product cannot be received. Please contact your supervisor."
Actual: We are able to get the line for PO Receive and putaway for work creation.
Please find the screen shot attached with the post showing the behavior of the form when cancellation is done through Delivery reminder functionality.
*This post is locked for comments

Report
All responses (
Answers (