Nav5.0sp1 when using Purchase Invoice 'Price including GST'

Im
Member Posts: 11
I am using NAV5.0SP1 Australia/NZ version
When using 'Prices including GST', the GST amount is not shown in the purchase statistic and not posted to the GST account.
It works ok in the Nav5.0
Anyone else has this problem?
When using 'Prices including GST', the GST amount is not shown in the purchase statistic and not posted to the GST account.
It works ok in the Nav5.0
Anyone else has this problem?
0
Comments
-
Hi,
I have the same problem. Have you perhaps found a solution?
Cheers.0 -
Hey guys..
We encountered this issue for quite a few of our clients, and have discovered a big bug that was introduced with Version 5 SP1!! [-X
To get rid of the problematic code (which is the issue), you need to go to table 39 Purchase Line, and go to the CalcVATAmountLines() function, and comment out the following code:
"VAT Base" :=0;
"VAT Amount":=0;
"Inv. Discount Amount" := 0;
RecPurchLine.RESET;
RecPurchLine.SETFILTER("Document No.",PurchLine."Document No.");
IF RecPurchLine.FINDFIRST THEN BEGIN
REPEAT
VATBase := ROUND((RecPurchLine."Line Amount" - RecPurchLine."Inv. Discount Amount") /
(1 + RecPurchLine."VAT %" / 100),Currency."Amount Rounding Precision") - RecPurchLine."VAT Difference";
VATAmt := -1 * ROUND((VATBase * RecPurchLine."Prepayment VAT %" / 100),
Currency."Amount Rounding Precision",Currency.VATRoundingDirection);
DiscAmt := ROUND((RecPurchLine."Inv. Discount Amount" * RecPurchLine."Prepayment %" / 100),
Currency."Amount Rounding Precision");
"VAT Base" := "VAT Base" + VATBase;
"VAT Amount" := "VAT Amount" + VATAmt;
"Inv. Discount Amount" := "Inv. Discount Amount" + DiscAmt;
UNTIL RecPurchLine.NEXT=0;
"Amount Including VAT" := "Line Amount"- "Invoice Discount Amount" + "VAT Amount";
END;
The code is sitting inside a CASE block of code that is checking if:
CASE "VAT Calculation Type" OF
"VAT Calculation Type"::"Normal VAT",
"VAT Calculation Type"::"Reverse Charge VAT":
Once you remove this code I mentioned, the Statistics form will work fine.
Please note however, that this is only part of the problem. If any users have created Purchase documents and posted them during this time (during the use of SP1), the related VAT Ledger Entries will be incorrect, and will have an amount on them of 0 too.
This is a very very bad bug by Navision, and has resulted in us needing to reverse hundreds of incorrect Purchase Orders (some of which have already been paid).
The sooner people know of this issue, the better!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