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
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
Internal work item: AB#642241