infor.com
concierge
infor u
developer portal
Posts
Categories
Groups
Hubs
Developer
Healthcare
Hospitality
Public Sector
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
Your Groups
User Groups
Migrated Forums
FSM/HCM/S3 - Infor Lawson 10.x
HCM/S3 - Learning and Development
HCM/S3 - Global HR
HCM/S3 - Talent Acquisition
HR Service Delivery
Human Capital Management (HCM) - EMEA
Infor Configuration Management for Service Industries
Lawson - Business Intelligence
Lawson - Financials
Lawson - Human Resources
Lawson - Supply Chain
Lawson - Supply Chain Management
Lawson - Technology
MSCM on Landmark
About
Community News
Email Community Support
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
Important Links
Community Hubs
Discussion Forums
Groups
Community News
Popular Tags
CPQ: Ask a Colleague
FAQs, How-To, and Best Practices
Idea
Infor OS Portal
UI Design
CPQ: Tips and Tricks
Infor Homepages
Widget Development
Infor EPM Migration
Infor Ming.le