Packaging Management
Release: Packaging Management – 25.0.9645.76897
Description
This release addresses a critical bug in the Packaging Management extension for Business Central. The fix resolves a division by zero error that occurred when creating a warehouse pick when packaging lines were manually updated.
User Stories
No User Story developed in this release.
Bugs
| Title | Description | Impact on previous version |
|---|---|---|
| [23947] – Warehouse Pick Creation Fails with message “Attempted to Divide by Zero” when Packaging lines are manually updated | When a warehouse pick was created for a transfer order for which packaging lines were manually updated, the system attempted to divide by zero in Codeunit 71925811 (briPCK_WhseActivityPkgLineMgt), procedure CreatePackagingLineOnInsertWhseActivityLine. The root cause was that the procedure GetRelatedSourceLineQtyToPost unconditionally retrieved Transfer Line “Qty. to Ship” or “Qty. to Receive” as the divisor, which could be zero after a pick deletion/recreation cycle. The fix adds an early-exit guard: when WhseActivityLine."Qty. to Handle" is non-zero, it is used as the divisor instead, falling back to the Transfer Line lookup only when it is zero. This prevents the division by zero error and allows warehouse picks to be recreated successfully. |
Breaking risk: Low. The behavioral change only affects the edge case where Transfer Line quantities are zero during pick recreation. No regression expected for standard warehouse pick workflows. Users who previously encountered the “Attempted to divide by zero” error will now be able to complete their operations normally. |
Events
No event added or updated in this release.