Non Conformance Management

Release: Non Conformance Management – 27.0.9579.48970

Description

This release delivers major improvements to the Non Conformance Management application focused on user experience, reporting, and partner extensibility. Key highlights include a redesigned source document line resolution driven by Item No. instead of manual line number entry, enriched user task information for action plan workflows, a completely new Non-Conformance report compliant with latest Business Central Word Add-in requirements, full Report Selection support for printing Non-Conformance reports per source type, and critical bug fixes for tracking line base quantity conversion and report selection page initialization. Two new integration events have been added to the user task creation process to support partner extensibility. Language Code and Format Region fields are now populated automatically on the Non-Conformance Header for localized report output.

User Stories

Title Description Setup Instructions Impact on previous version
[23661] – Redesigned Source Document Line Resolution When entering an Item No. on a non-conformance line linked to a posted document, the system now automatically resolves the Source Document Line No. If exactly one line matches, it is auto-assigned; if multiple lines match, a lookup page opens for the user to choose. This applies to all supported document types: Posted Sales Invoice, Posted Sales Shipment, Posted Purchase Invoice, Posted Purchase Receipt, and Posted Transport Order. The Source Document Line No. field is now hidden and fully system-managed. Item No. is editable whenever a Source Document Type and Source Document No. are set. No setup required. Behavior change is automatic. Medium risk: Source Document Line No. is no longer user-editable on subform page 8121062. Item No. OnLookup now calls LookupDocumentLineNo instead of showing the Item Lookup page. Procedure GetRelatedDocumentItemNo removed from table 8121051. Impacted objects: Table 8121051, Page 8121062, Interface 8121004, Codeunits 8121008–8121012, 8121043.
[23607] – User task lacking information to be used properly User Tasks generated from Non-Conformance Action Plans now include the Action Plan No. concatenated with the task Description in the User Task Title field (format: “Action Plan No. - Description”), providing users with meaningful context directly from their Role Center tile. No setup required. Low risk. User Task Title format changed from Action Plan No. alone to “Action Plan No. - Description”. Impacted object: Codeunit 8121013.
[23650] – InsertUserTask: Need Information and Event Two new integration events (OnBeforeInsertUserTask and OnAfterInsertUserTask) have been added to the User Task creation process in codeunit 8121013, allowing partners to override or extend the default behavior. The IsHandled pattern is implemented on the OnBeforeInsertUserTask event. No setup required. Partners can subscribe to events in codeunit briNCM_AssignUserTasks (8121013). None. Additive change only.
[23665] – Refactor Non Conformance Report Layout A new Non-Conformance report (Report 8121001 – briNCM_NonConformancev200) has been created with a comprehensive dataset including header information, line items with quantities and amounts, calculated totals (Source Amount, Source Amount LCY, Source Quantity, Non-Conformance Quantity, Non-Conformance Amount), source address formatting based on Language Code and Format Region, company information, and optional comments. The report uses Word layout rendering compliant with latest BC Word Add-in requirements. The previous report (8121000) is marked as Obsolete (Pending) with tag 27.0. No setup required for new installations (default report selection is auto-populated). Existing installations should update Report Selection entries to use the new report 8121001. Medium risk: Report 8121000 (briNCM_NonConformance) is now Obsolete (Pending). Its Word layout caption changed to “(Obsolete)". Partners referencing report 8121000 directly should migrate to 8121001. Impacted objects: Report 8121000, Report 8121001.
[23667] – Use Non Conformance Report Selection when printing from Non Conformance Card The Print action on the Non-Conformance Card now uses the Report Selection mechanism instead of calling Report.RunModal directly. Report Selection Usage is mapped per Source Type: briNCM_Customer, briNCM_Vendor, briNCM_Internal, briNCM_Transport. Enum captions updated to “Non Conformance - Customer/Vendor/Internal/Transport” for clarity. Configure Report Selections via the Non-Conformance Report Selection page (8121028) for each usage type. Low risk. Print behavior now depends on Report Selection configuration. If no Report Selection entries exist, no report will print. Impacted objects: Codeunit 8121031, EnumExt 8121000, Page 8121028.
[23691] – Populate Default Non Conformance Report Selection The Install codeunit (8121001) now automatically creates default Report Selection entries for all four Non-Conformance usage types (Customer, Vendor, Internal, Transport), each pointing to the new report 8121001 (briNCM_NonConformancev200). This runs on fresh installation only if no entries already exist for each usage type. Automatic on fresh install. For existing installations, manually create Report Selection entries or reinstall the extension. None. Only applies to fresh installations. Impacted object: Codeunit 8121001 (briNCM_Install).

Bugs

Title Description Impact on previous version
[23664] – Tracking lines not properly fulfilled When creating a Sales Return or Purchase Return from a Non-Conformance, tracking lines were incorrectly populated using the Unit of Measure quantity instead of the Base Unit quantity. For example, 5 boxes (with 6 units per box) resulted in a tracking quantity of 5 instead of the expected 30. A new CalcBaseQtyFromNonConformanceLine procedure now converts quantities using the Item Unit of Measure “Qty. per Unit of Measure” factor. This fix applies to both Sales and Purchase return document creation. Low risk. Quantity values in tracking lines will now be correctly calculated in base unit of measure. Impacted object: Codeunit 8121021 (briNCM_CreateDocumentsMnlSubsc).
[23673] – Report Selection not applied when printing Non Conformance report from Non Conformance Card The Report Selection page (8121028) displayed an error when Transport type was selected during page initialization and TMS was not installed. The fix now shows the error only when the user actively selects Transport usage, and silently falls back to Customer usage during page initialization to prevent errors on page load. Low risk. Impacted object: Page 8121028 (briNCM_RprtSelctnNonConformnce).

Events

Status Type Object Name Event Name Description
New IntegrationEvent briNCM_AssignUserTasks (Codeunit 8121013) OnBeforeInsertUserTask Allows subscribers to override or extend User Task creation logic before inserting the User Task record. Provides UserTask, ActionPlanLine, ResponsibleUser, and IsHandled parameters for complete control over the insertion process.
New IntegrationEvent briNCM_AssignUserTasks (Codeunit 8121013) OnAfterInsertUserTask Allows subscribers to extend functionality after a User Task has been inserted. Provides UserTask, ActionPlanLine, and ResponsibleUser parameters for post-insertion customization.
Next