Skip to content

codeunit 99000813 "Carry Out Action" procedure PurchOrderChgAndReshedule(RequisitionLine: Record "Requisition Line") #29527

@Kotaite

Description

@Kotaite

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:

Image

Suggested extensibility:

Image Image Internal work item: [AB#616629](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/616629)

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an eventships-in-future-updateFix ships in a future update

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions