Uploaded image for project: 'VPMS Web Application'
  1. OVPMS-1947

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.8, 1.9, 2.0
    • Fix Version/s: 1.9.3, 2.0
    • Component/s: Financial
    • Labels:
      None
    • Sprint:

      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.

        Attachments

          Activity

            People

            • Assignee:
              tanderson Tim Anderson
              Reporter:
              tgething Tim Gething (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h
                3h

                  Who's Looking?