Cannot reverse a cash refund if the cash amount has been rounded

Description

If rounding is in effect (ie in Lookups|Currency the Minimum Cash Denomination is greater that 0.01) then if a refund is created for a cash amount that requires rounding (eg for $9.99 which will get rounded to $10.00) then, an attempt to reverse the refund will fail with the message "Failed to reverse refund: Failed to validate Tendered of Cash: The tendered amount must be >= the amount".

I suspect that the problem is that the cash refund item has a both a rounded amount ($10.00 in the above case) and an amount ($9.99 in the above case), but the reversal code is not generating the correct matching payment transaction (ie amount 9.99, rounded amount 10.00, tendered amount 10.00) - I suspect that the tendered amount is being set to the amount rather than the rounded amount.

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Gething

Labels

None

Components

Fix versions

Affects versions

2.0
1.9
1.8

Priority

Minor
Configure