Product price rounding should not round prices to $0

Description

If the Minimum Price in the Currency record is set > 0.01, then prices set less than this may be rounded down to $0. For example if the Minimum Price is set to 0.50, a price of less than $0.25 will be rounded to $0. The current rounding algorithm should be modified to set the rounded price to the minimum price in cases where the price is not $0 and less than the minimum. Since we currently support negative prices, the suggested algorithm is:
If abs(price) >0 then
If abs(price) < minimum then
price = signum(price) * minimum
Else
…. Current code
Endif
Endif

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Gething

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure