Sales Invoice

Snoopyc
Member Posts: 45
Hi expert, I have lines of code for the sales invoice printing form. In the printout, I want to show the items which are charged for TAX as YES, but even though there are taxes charged, it still shows as NO. Below is the code. Thank you!
If ("Sales Invoice Line"."Amount Including VAT" - "Sales Invoice Line".Amount) <> 0 THEN
Tax := 'Y'
ELSE
Tax := 'N';
If ("Sales Invoice Line"."Amount Including VAT" - "Sales Invoice Line".Amount) <> 0 THEN
Tax := 'Y'
ELSE
Tax := 'N';
0
Comments
-
What's TAX a text field you created?
What trigger is your code & your sourceexp of a textbox is tax correct?
did you check if every line that has tax also has a tax% value?
then you could use that... if Tax% <> 0 the tax := 'y' else tax := 'n';0 -
Thank you expert! It still does not work.0
-
The report I am using comes from the system, which is report 10074. Then I deleted the code and added only the tax % value to the table, but the numbers showing are all zero even though it has tax values. So that is why the code doesn't work. How to fix it? Thank you!0
-
Are you saying you only want Taxed item to appear on your report or are you asking to pirnt a "y" or "n" on the line?
Do you want to skip the the untaxed lines in your report?
then use CURRREPORT.SKIP;
http://msdn.microsoft.com/en-us/library/dd339042.aspx0 -
Thank you, expert! I want to print Y for the tax and N for Non-tax. I tried to add the tax % field to the report and all of them are showing as zero even thought some of them have values.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
- 320 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