Skip to content

[Event Request] table 83 "Item Journal Line" procedure CheckTrackingIfRequired() #30349

Description

@kmistrytnp

Why do you need this change?

I need to provide better error messages for the user, the current error messages make references to the "Item Journal Line" record - which is a temporary record for document postings (such as a Sales Order or Purchase Invoice) - so the user cannot tell from the error message which document line or which specific Item is missing the Item Tracking (Serial/Lot).

I therefore want to do the check myself and error with a better error message BEFORE the standard code by having an OnBeforCheckTrackingIfRequired(Rec, ItemTrackingSetup) event at the start.

Describe the request

The following to be added at the start

OnBeforCheckTrackingIfRequired(Rec, ItemTrackingSetup);

Event procedure created as follows

    [IntegrationEvent(false, false)]
    local procedure OnBeforeCheckTrackingIfRequired(ItemJournalLine: Record "Item Journal Line"; ItemTrackingSetup: Record "Item Tracking Setup");
    begin
    end;

Internal work item: AB#642241

Metadata

Metadata

Assignees

No one assigned

    Labels

    SCMGitHub request for SCM areaevent-requestRequest for adding an eventext-ready-to-implementReviewed and ready to implement and create PR

    Type

    Fields

    No fields configured for Task.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions