Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5927

Issue reported while performing Refund & Void (java.lang.ClassCastException: java.lang.String cannot be cast to java.math.BigDecimal)

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 12.04.05, 13.07.01, Trunk
    • 14.12.01, 12.04.06, 13.07.03, 16.11.01
    • None
    • None
    • Bug Crush Event - 21/2/2015, Community Day 3 - 2015

    Description

      Issue reported while performing Refund & Void (java.lang.ClassCastException: java.lang.String cannot be cast to java.math.BigDecimal)

      Change needs to be done in AIMPaymentServices.java. Please look at the following small patch:-

      //BigDecimal amount = (BigDecimal) request.get("x_Amount");
      String newAmt = request.get("x_Amount").toString();
      BigDecimal amount = new BigDecimal(newAmt);

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            arunpati Arun Patidar
            prateek111 Prateek
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Agile

                Completed Sprints:
                Bug Crush Event - 21/2/2015 ended 26/Feb/15
                Community Day 3 - 2015 ended 22/Sep/15
                View on Board

                Slack

                  Issue deployment