Print Out VAT % in Sales Invoice Lines
elTorito
Member Posts: 191
Hi,
i have a Little Problem with Printing out Vat in % in Sales Invoice Lines.
If all Sales Invoice Lines have the same VAT% (MWst %) it must not print anything.
But if they are Different VAT% i would print out in the sales line the VAT what have the Item, and at the footer of the incoide i would print out the VAT Info (VAT AMount Line for each VAT%
Momentanly in the Sales Invoice Line if have follow code:
It Give me out the VAT% for each Item when VAT% is not 0
Curiosly i have intend extend this IF Expection, but then the aplication print out wrong VAT% for an Item.
Perhaps i ask for wrong way in follow Expection:
With this Last Code (in my sales invoice line footer) i ask if they are more than one VAT%, i don't know if is this a good way for ask this.
Perhaps anybody understand what i meane and have a tipp for me.
Thanks
i have a Little Problem with Printing out Vat in % in Sales Invoice Lines.
If all Sales Invoice Lines have the same VAT% (MWst %) it must not print anything.
But if they are Different VAT% i would print out in the sales line the VAT what have the Item, and at the footer of the incoide i would print out the VAT Info (VAT AMount Line for each VAT%
Momentanly in the Sales Invoice Line if have follow code:
IF ROUND(VATAmountLine."VAT %") <> 0 THEN BEGIN
MWSTPOS := FORMAT(ROUND(VATAmountLine."VAT %")) + ' % '
END ELSE BEGIN
MWSTPOS := '';
END;
It Give me out the VAT% for each Item when VAT% is not 0
Curiosly i have intend extend this IF Expection, but then the aplication print out wrong VAT% for an Item.
Perhaps i ask for wrong way in follow Expection:
IF (VATAmountLine.VATAmountText = 'MwSt.-Betrag') THEN CHECKMWST := TRUE;
With this Last Code (in my sales invoice line footer) i ask if they are more than one VAT%, i don't know if is this a good way for ask this.
Perhaps anybody understand what i meane and have a tipp for me.
Thanks
(Oo)=*=(oO)
0
Comments
-
Did you have a look at the standaard Navision report?
This report does something very smart. It prints the vat % at the end with the totals if it's the same for every line. But if you have different vat % per line it prints a vat overview at the bottum of the page.
Maybe you could do something like that."Real programmers don't comment their code.
If it was hard to write, it should be hard to understand."0 -
Yes i have seen the standard report, and did make it so at the bottom of the page, but i would not print the VAT Text or VAT Identifier if alle the items have the same VAT , only i want them print out only when there are items with different VAT.(Oo)=*=(oO)0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 322 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions