-
Notifications
You must be signed in to change notification settings - Fork 685
Description
Why do you need this change?
At 4PS Construct, our procurement processes involve handling both standard purchase orders and blanket orders in the planning and requisition workflows. The standard PurchOrderChgAndReshedule procedure in the Carry Out Action codeunit assumes that the referenced purchase line is always a standard order and directly retrieves it using a fixed document type. However, this can fail or behave incorrectly when dealing with blanket orders or other document types that may be linked to requisitions. We need to allow custom logic to determine whether a valid purchase line exists, potentially across multiple document types, to ensure accurate changes and rescheduling without errors.
To correctly implement this flexibility, we need a new event OnBeforePurchaseChgAndReshedule to enable subscribers to evaluate and set the existence of the purchase line based on broader criteria, such as including blanket orders in the search.
Describe the request
Dear ALAppExtensions team,
On behalf of 4PS, I would like to request a new integration event OnBeforePurchaseChgAndReshedule and a variable PurchaseLineExists in codeunit 99000813 "Carry Out Action" procedure PurchOrderChgAndReshedule(RequisitionLine: Record "Requisition Line")
Current code:
Suggested extensibility:
Internal work item: [AB#616629](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/616629)