Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: crystal report Post Reply Post New Topic
Author Message
rafi
Newbie
Newbie


Joined: 19 Jul 2011
Location: India
Online Status: Offline
Posts: 10
Quote rafi Replybullet Topic: crystal report
    Posted: 14 Oct 2011 at 2:12am

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 .

IP IP Logged
lockwelle
Moderator
Moderator


Joined: 21 Dec 2007
Online Status: Offline
Posts: 4372
Quote lockwelle Replybullet Posted: 14 Oct 2011 at 5:28am
if {vat.field}) = 5 then
 
should be {vat.field} = 5 then
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.