Advanced Price Management

Release: Advanced Price Management – 26.0.9790.36362

Description

This release delivers a critical bug fix for the Advanced Price Management extension. The correction addresses an issue where Discount Fee amounts were incorrectly squared when a user manually updated the unit price on a sales line. This fix ensures that discount calculations based on quantity or quantity (base) application bases are computed correctly in a single pass, preventing the downstream multiplication from being applied twice.

User Stories

No User Story developed in this release.

Bugs

Title Description Impact on previous version
[24628] – Discounts fees are incorrectly calculated when using a manual price When a Discount Fee line had an Application Base of Quantity or Quantity (Base), the Result Value was first set to just the QtyPerUnitOfMeasure factor in the UpdateSalesLineDetailResultValue procedure, and then multiplied again by Application Value in CalculateSalesDiscountLineDetailResultValue. This double multiplication caused the discount amount to be squared. The fix now computes the full amount (QtyPerUnitOfMeasure * Application Value) upstream in UpdateSalesLineDetailResultValue and exits early in CalculateSalesDiscountLineDetailResultValue to prevent the redundant multiplication. Impacted objects: Codeunit 8120268 “isaAPM_PriceCalc. - isatech” (procedures UpdateSalesLineDetailResultValue and CalculateSalesDiscountLineDetailResultValue). Breaking risk: Medium. Any customization or extension that subscribes to or overrides the discount fee calculation logic in Codeunit 8120268 should be reviewed to ensure compatibility. The calculation flow has fundamentally changed: the full discount amount is now resolved in a single upstream step instead of two sequential multiplications.

Events

No event added or updated in this release.

Next
Previous