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

Allow ShoppingCartHelper.addToCart to be called from simple-method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • Trunk
    • None
    • None

    Description

      To my knowledge a primitive type double cannot be sent from <call-object-method> in minilang. So to allow ShoppingCartHelper.addToCart to be usable from minilang there are three possible solutions.

      1)Change minilang to pass primitive type double (if there is a way to do this already, disregard this issue)
      2)Change addToCart to accept Double quantity instead of double quantity
      3)Create additional method that accepts Double quantity and then passes that to the current addToCart with a quantity.doubleValue()

      Attachments

        1. ShoppingCartHelper.patch
          2 kB
          Chris Howe
        2. CachedClassLoader.patch
          2 kB
          Chris Howe
        3. CachedClassLoader.patch
          2 kB
          Chris Howe

        Issue Links

          Activity

            People

              jonesde David E. Jones
              cjhowe Chris Howe
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: