D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

[LUG] Ireports jasper and java

 

Does anyone have experience with irepotrs?

I have been trying migrate  my VAT reports from OOCalc. to Jasper Ireports  and so far all is good!
But I can't seem to get a report to multiply two  variables
the error is this

Errors compiling ./SplitInvoices.jasper. net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
1. The method multiply(BigDecimal) in the type BigDecimal is not applicable for the arguments (double, int)
                value = (java.math.BigDecimal)(((java.math.BigDecimal)variable_SumConfect.getValue()).multiply(0.175, 2 ));//$JR_EXPR_ID=15$

with the problem being

$V{SumConfect}.multiply(0.175, 2 )

which is (I hope) multiplying the Var SumConfect by the old Vat of 0.175 with a Math context for 2 dec points.

I have changed all the fields from the DB from BigDecimial to Doubles and even int but I still come to the same error

Can anyone see where I am going wrong?


Regards

Kevin Lucas
Minions Post Master(Sub) reprieved (possibly!)
Po House, Minions,
Liskeard Cornwall
PL14 5LE
01579363386
-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html