Packaging Management
Release: Packaging Management – 25.0.9676.49198
Description
This release addresses a data integrity issue in the Packaging Management extension. Previously, when an Item was deleted in Business Central, its associated Item Packaging records were not removed, leading to orphaned data in the system. This fix ensures automatic cleanup of packaging records upon item deletion, and includes an upgrade step to purge any previously orphaned records.
User Stories
No User Story developed in this release.
Bugs
| Title | Description | Impact on previous version |
|---|---|---|
| [24191] – When we delete an item, it doesn’t delete its associated packaging | Error behavior: Deleting an Item record did not remove the related briPCK_ItemPackaging records, resulting in orphaned packaging data referencing non-existent items. Expected result: All Item Packaging records linked to the deleted item should be automatically removed. What was corrected: A new event subscriber codeunit briPCK_ItemPackaging Subscr (ID 71925831) was added, subscribing to Item.OnAfterDeleteEvent. When an Item is deleted, all briPCK_ItemPackaging records matching the same “Item No.” are now deleted via DeleteAll(false). Additionally, an upgrade codeunit (briPCK_UpgradePckgMgt, ID 71925821) was updated with a new upgrade step Upgrade24191 that removes any previously orphaned briPCK_ItemPackaging records whose “Item No.” no longer exists in the Item table. The Install codeunit (briPCK_Install, ID 71925775) was also updated to register the upgrade tag on fresh installations to prevent redundant execution. Impacted objects: Codeunit 71925831 (new), Codeunit 71925775 (edited), Codeunit 71925821 (edited). |
Orphaned briPCK_ItemPackaging records from prior versions will be cleaned up automatically during upgrade. The fix for the missing SetUpgradeTag in UpgradeTag21952 has a medium breaking risk: previously, rounding precisions and rounded quantities were being recalculated on every upgrade; after this fix, they will only be processed once. Verify that rounding precision values are correct after upgrading. |
Events
No event added or updated in this release.