hi i need to calculate in crystal report which is vat_amt would be calculated based on vat(5,14.5)
i have field eg : invoice_no rate ,vat,vat_amt,total
IF {vat.field}) = 5 THEN // if vat is 5 percentage
vat_amt =(rate * vat ) /100
ELSE
IF {vat.field}) = 14.5 THEN // if vat is 14.5 percentage
vat_amt =(rate * vat ) /100
i am getting error above code please correct and reply me .