Cannot invoke add(double) on the primitive type double
value = new Double( (((java.lang.Double)parameter_conversionRate.getValue()).doubleValue()) > 0 ? (((java.lang.String)parameter_currencySymbol.getValue())+" "+ String.format("%.2f",new Double( ((java.math.BigDecimal)field_amount_due.getValue()).doubleValue() .add( ((java.math.BigDecimal)field_balance_due.getValue()).doubleValue()))* ((java.lang.Double)parameter_conversionRate.getValue()).doubleValue())) : ( ((java.lang.String)parameter_currencySymbol.getValue())+" "+String.format("%.2f",((java.math.BigDecimal)field_amount_due.getValue())+((java.math.BigDecimal)field_balance_due.getValue())))); //$JR_EXPR_ID=40$
<----------------------------------------------------------------------------------------------------------------------------------------->
2. The operator + is undefined for the argument type(s) java.math.BigDecimal, java.math.BigDecimal
value = new Double( (((java.lang.Double)parameter_conversionRate.getValue()).doubleValue()) > 0 ? (((java.lang.String)parameter_currencySymbol.getValue())+" "+ String.format("%.2f",new Double( ((java.math.BigDecimal)field_amount_due.getValue()).doubleValue() .add( ((java.math.BigDecimal)field_balance_due.getValue()).doubleValue()))* ((java.lang.Double)parameter_conversionRate.getValue()).doubleValue())) : ( ((java.lang.String)parameter_currencySymbol.getValue())+" "+String.format("%.2f",((java.math.BigDecimal)field_amount_due.getValue())+((java.math.BigDecimal)field_balance_due.getValue())))); //$JR_EXPR_ID=40$
<------------------------------------------------------------------------------------------------------>
3. Cannot invoke add(double) on the primitive type double
value = new Double( (((java.lang.Double)parameter_conversionRate.getValue()).doubleValue()) > 0 ? (((java.lang.String)parameter_currencySymbol.getValue())+" "+ String.format("%.2f",new Double( ((java.math.BigDecimal)field_amount_due.getOldValue()).doubleValue() .add( ((java.math.BigDecimal)field_balance_due.getOldValue()).doubleValue()))* ((java.lang.Double)parameter_conversionRate.getValue()).doubleValue())) : ( ((java.lang.String)parameter_currencySymbol.getValue())+" "+String.format("%.2f",((java.math.BigDecimal)field_amount_due.getOldValue())+((java.math.BigDecimal)field_balance_due.getOldValue())))); //$JR_EXPR_ID=40$
<----------------------------------------------------------------------------------------------------------------------------------------------->
4. The operator + is undefined for the argument type(s) java.math.BigDecimal, java.math.BigDecimal
bro you are using add() on double, not bigdecimal
Обсуждают сегодня