Skip to content

table 246 "Requisition Line" local procedure CopyFromGLAcc() #29526

@Kotaite

Description

@Kotaite

Why do you need this change?

At 4PS Construct, we have specific business rules for requisition lines related to projects and service orders. In standard Business Central, the CopyFromGLAcc procedure in the Requisition Line table always enforces that the selected G/L Account must have "Direct Posting" enabled. However, for lines associated with projects or service orders, this check can be overly restrictive and conflict with our operational processes. We need to allow bypassing this validation in such cases to ensure flexibility in planning and procurement workflows.

To correctly implement this bypass, we need a new event OnBeforeTestFieldDirectPosting to allow subscribers to control whether the "Direct Posting" test field validation should occur. This enables custom logic to set the validation flag based on context, such as the presence of a project or service order number.

Describe the request

Dear ALAppExtensions team,
On behalf of 4PS, I would like to request a new integration event OnBeforeTestFieldDirectPosting and additional variable ShouldTestFieldDirectPosting in the local procedure CopyFromGLAcc() in table 246 "Requisition Line"

Current code:

Image

Suggested extensibility:

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an event

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions