infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Community News
Infor News
Migrated Forums
Home
Groups
Pegasus - Partner Community
Expression for VAT on Invoice
john-bottomley
My customer wants to see 0.00 rather than VAT being left blank if it is zero for example on Foreign Invoices.
The standard expression just leaves a blank :
iif(SQG_lastrec_L('sname.sn_account+ihead.ih_doc'),p_oCallingObject.dispvalu(.f., p_oCallingObject.w_fcrate, p_oCallingObject.p_tvat,"",.t.,.f.,13),"")
My attempt shows the zero but has changed what normally appears - on my Demodata it's fine shows 27.30 as VAT but on customer data shows 27.3000
iif(SQG_lastrec_L('sname.sn_account+ihead.ih_doc'),(p_oCallingObject.p_tvat)/100,"")
Please can someone advise how to format this correctly?
Thanks
John
Find more posts tagged with
Comments
john-bottomley
Finally got a sort of solution - used this
iif(empty(iif(SQG_lastrec_L('sname.sn_account+ihead.ih_doc'),p_oCallingObject.dispvalu(.f., p_oCallingObject.w_fcrate, p_oCallingObject.p_tvat,"",.t.,.f.,13),"")),'0.00', "")
basically iif(Empty(expression),0.00,(expression) was too long so used just the above and send to back so if std field is blank shows this filed which will be 0.00 if blank!
Seems to work
Child Item