Packaging Management

Release: Packaging Management – 25.0.9694.34135

Description

This release fixes a Divided by zero error that occurred when creating an inventory put-away on a sales return order after manually updating a packaging line quantity. The fix ensures that packaging quantity calculations in warehouse activity lines are correctly bounded, preventing over-posting and division errors across Sales, Purchase, and Transfer document flows. Additionally, minor syntactic alignment was applied to a page extension object name.

User Stories

No User Story developed in this release.

Bugs

Title Description Impact on previous version
[24217] – Error when we change packaging quantity before create put-away When a user manually modified a packaging quantity on a sales return order and then created an inventory put-away, a “Divided by zero” error was thrown. The root cause was in codeunit briPCK_WhseActivityPkgLineMgt (ID 71925811): the procedure CreatePackagingLineOnInsertWhseActivityLine could compute a proportional packaging quantity that exceeded the line’s total packaging quantity, and the procedure GetRelatedSourceLineQtyToPost did not account for certain warehouse activity types (Invt. Put-away for Sales Lines, Invt. Pick for Purchase Lines). Corrections applied: (1) Quantity to Ship/Receive values are now capped using Math.Min(Round(...), Packaging Quantity) to prevent over-posting. (2) The Sales Line branch in GetRelatedSourceLineQtyToPost now includes Invt. Put-away activity type, and the Purchase Line branch now includes Invt. Pick activity type, ensuring the correct total quantity is used for proportional calculation. Impacted objects: Codeunit 71925811 (briPCK_WhseActivityPkgLineMgt). Medium risk – The quantity calculation logic has changed for warehouse activity packaging lines. Existing processes that relied on the previous (incorrect) proportional calculation may produce slightly different packaging quantities. No data migration required. Regression testing recommended on Inventory Put-away and Inventory Pick flows for Sales Return Orders and Purchase Return Orders.

Events

No event added or updated in this release.

Previous