[Extensibility Request] issue 30349: add OnBeforeCheckTrackingIfRequired event to Item Journal Line#9464
[Extensibility Request] issue 30349: add OnBeforeCheckTrackingIfRequired event to Item Journal Line#9464AleksandricMarko wants to merge 1 commit into
Conversation
…m Journal Line Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot PR ReviewIteration 1 · Outcome: completed Knowledge source: https://github.com/microsoft/BCQuality@186d8a131465475c79244d994acb872cd5c0d4bf Orchestrator pre-filter (2 file(s) excluded)
Findings produced by the AL review agent v1.7.3. Reply 👎 on any inline comment to flag false positives. |
|
qasimikram
left a comment
There was a problem hiding this comment.
The new publisher is raised before both standard tracking validations and exposes the requested item journal line and tracking setup context. The implementation is consistent across all localized table copies and does not alter default behavior.
Summary
The reporter needs clearer, user-facing error messages when item tracking (Serial/Lot No.) is missing during document posting. The standard
CheckTrackingIfRequiredvalidation reports errors against the temporary "Item Journal Line" record, so users cannot tell which document line or item is affected. This PR adds an integration event at the start ofCheckTrackingIfRequiredso extensions can run their own validation and raise a more meaningful error before the standard checks.Source issue repository: microsoft/AlAppExtensions; issue number: 30349
Changes Made
CheckTrackingIfRequired(table 83 "Item Journal Line") - raise a newOnBeforeCheckTrackingIfRequiredintegration event at the start of the procedure so subscribers can perform custom item-tracking validation before the standardTestFieldchecks; the same change is propagated to the country layer counterparts (APAC, CH, ES, FR, GB, IT, RU).Fixes AB#642241