[patch] rateProductTaxCalc expecting a value for orderShippingAmount but marked
optional in servicedef
------------------------------------------------------------------------------------------------------
Key: OFBIZ-1548
URL: https://issues.apache.org/jira/browse/OFBIZ-1548
Project: OFBiz
Issue Type: Bug
Components: accounting
Affects Versions: SVN trunk
Reporter: Wickersheimer Jeremy
Priority: Trivial
Fix For: SVN trunk
The service calcTax is declared as implemeting the calcTaxInterface but the
orderShippingAmount which is declared optional is expecting to have a Double
value in the java method.
I came accross this small bug while writing unit tests, an easy fix is to also
test the value to be not null instead of just checking
orderShippingAmount.doubleValue() > 0
Patch attached.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.