Open Order Items Report not working on Demo Server
--------------------------------------------------

                 Key: OFBIZ-1905
                 URL: https://issues.apache.org/jira/browse/OFBIZ-1905
             Project: OFBiz
          Issue Type: Bug
          Components: order
            Reporter: Ashish Vijaywargiya
         Attachments: Divide_By_Zero.jpg

Here are the steps to reproduce :-

https://demo.hotwaxmedia.com/ordermgr/control/OrderPurchaseReportOptions

After coming to the above link submit the second section on the left side named 
with heading "Open Order Items Report".

Please take a look on the two images attached :-
Divide_By_Zero.jpg -- Error coming on HotWax Media Demo Server.
Display_Infinity.jpg -- This is the contents of the Current trunk on my local 
machine while clicking on the same report.
It display the Infinity value.

Please take a look at the patch in which we kept the default value of costprice 
= 1 in the dividend section by the help of elvis operator.
The name of the patch is Avoid_Arithmetic_Exception.patch that solve this 
problem but I would like to know the community view on this change before 
committing the changes.

Please let me know your thoughts on this.

--
Ashish


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to