Applies ToDynamics NAV 2009

This article applies to Microsoft Dynamics NAV for the Spain (es) region.

Introduction

This hotfix rollup corrects the following problems for Model 347 in the Spanish version of Microsoft Dynamics NAV 2009:

  • When severalvendors use the same value-added tax (VAT) registration number, the quarterly amount is calculated incorrectly in a Model 347 file . For more information about hotfix 2710207, click the following article number to view the article in the Microsoft Knowledge Base:

    2710207 The quarterly amount is calculated incorrectly in a Model 347 file when several vendors use the same VAT registration number in the Spanish version of Microsoft Dynamics NAV

  • You export a Model 347 file after you posted several invoices that have no VAT, these invoices are included in a Model 347 file unexpectedly.  For more information about hotfix 2710218, click the following article number to view the article in the Microsoft Knowledge Base:

    2710218 Invoices that have no taxable VAT are included in a Model 347 file unexpectedly in the Spanish version of Microsoft Dynamics NAV 2009

  • The system uses document date instead of posting date incorrectly when you run the Make 347 Declaration report for posted invoices. For more information about hotfix 2710305, click the following article number to view the article in the Microsoft Knowledge Base:

    2710305 The system uses document date instead of posting date incorrectly when you run the Make 347 Declaration report for posted invoices in the Spanish version of Microsoft Dynamics NAV

  • The 347 Declaration file does not display credit memos for a vendor or a customer who only has credit memos created. For more information about hotfix 2710320, click the following article number to view the article in the Microsoft Knowledge Base:

    2710320 The 347 Declaration file does not display credit memos for a vendor or a customer who only has credit memos created in the Spanish version of Dynamics NAV

  • When you export a Model 347 file if no taxable VAT and shipment addresses are involved, error occurs. For more information about hotfix 2710467, click the following article number to view the article in the Microsoft Knowledge Base:

    2710467 "The Ship-to Address does not exist" error message when you export a Model 347 file if no taxable VAT and shipment addresses are involved in the Spanish version of Microsoft Dynamics NAV

These problems occur in the following products:

  • The Spanish version of Microsoft Dynamics NAV 2009 R2

  • The Spanish version of Microsoft Dynamics NAV 2009 Service Pack 1

Resolution

Hotfix information

A supported hotfix is now available from Microsoft. However, it is only intended to correct the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next Microsoft Dynamics NAV 2009 service pack or the next Microsoft Dynamics NAV version that contains this hotfix. Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Technical Support Professional for Microsoft Dynamics and related products determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Installation information

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.Note Before you install this hotfix, verify that all Microsoft Navision client users are logged off the system. This includes Microsoft Navision Application Services (NAS) client users. You should be the only client user who is logged on when you implement this hotfix.To implement this hotfix, you must have a developer license.We recommend that the user account in the Windows Logins window or in the Database Logins window be assigned the "SUPER" role ID. If the user account cannot be assigned the "SUPER" role ID, you must verify that the user account has the following permissions:

  • The Modify permission for the object that you will be changing.

  • The Execute permission for the System Object ID 5210 object and for the System Object ID 9015 object.

Note You do not have to have rights to the data stores unless you have to perform data repair.

Code changes

Note Always test code fixes in a controlled environment before you apply the fixes to your production computers. To install this hotfix rollup, follow these steps:

  1. Change the code in the Data Item Number 2in the Make 347 Declaration report (10707) as follows:Existing code

    ...NotIn347Amt := 0;...

    Replacement code

    ...NotIn347Amt := 0;// Add the following line.CustomerMaxAmount := 0;...
  2. Change the code in the Data Item Number 3in the Make 347 Declaration report (10707) as follows:Existing code 1

    ...// Delete the following lines.VATEntry.RESET;VATEntry.SETCURRENTKEY(Type,"Posting Date","Document No.","Country/Region Code");VATEntry.SETRANGE(Type,VATEntry.Type::Sale);VATEntry.SETRANGE("Posting Date","Posting Date");VATEntry.SETRANGE("Document Type","Document Type");VATEntry.SETRANGE("Document No.","Document No.");VATEntry.SETRANGE("Country/Region Code",CountryCode);// End of the lines....

    Replacement code 1

    ...// Add the following line.FilterVATEntry(VATEntry,"Posting Date","Document Type","Document No.",TRUE);...

    Existing code 2

    ..."Document Type"::Invoice:// Delete the following lines.BEGINSalesInvHeader.RESET;IF SalesInvHeader.GET("Document No.") THEN BEGINIF SalesInvHeader."Ship-to Code" <> '' THEN BEGINShipToAddress.GET("Customer No.",SalesInvHeader."Ship-to Code");IF ShipToAddress."Country/Region Code" <> CountryCode THENCurrReport.SKIP;END;IF SalesInvHeader."Ship-to Code" <> '' THENIF SalesInvHeader."Ship-to Country/Region Code" <> CountryCode THENCurrReport.SKIP;SalesinvLine.RESET;SalesinvLine.SETRANGE("Document No.","Document No.");IF SalesinvLine.FINDSET THENREPEATIF (SalesinvLine."VAT Calculation Type" = SalesinvLine."VAT Calculation Type"::"No Taxable VAT") AND(Customer."Country/Region Code" = CountryCode) THENNoTaxVATFound := TRUE;UNTIL SalesinvLine.NEXT = 0;END ELSE BEGINIF Customer."Country/Region Code" = CountryCode THENFromJournal := TRUE;END;END;"Document Type"::"Credit Memo":BEGINSalesCrMemoHeader.RESET;IF SalesCrMemoHeader.GET("Document No.") THEN BEGINIF SalesCrMemoHeader."Ship-to Code" <> '' THEN BEGINShipToAddress.GET("Customer No.",SalesCrMemoHeader."Ship-to Code");IF ShipToAddress."Country/Region Code" <> CountryCode THENCurrReport.SKIP;END;SalesCrMemoLine.RESET;SalesCrMemoLine.SETRANGE("Document No.","Document No.");IF SalesCrMemoLine.FINDSET THENREPEATIF (SalesCrMemoLine."VAT Calculation Type" = SalesCrMemoLine."VAT Calculation Type"::"No Taxable VAT") AND(Customer."Country/Region Code" = CountryCode) THENNoTaxVATFound := TRUE;UNTIL SalesCrMemoLine.NEXT = 0;END ELSE BEGINIF Customer."Country/Region Code" = CountryCode THENFromJournal := TRUE;END;END;// End of the lines.END;...

    Replacement code 2

    ..."Document Type"::Invoice:// Add the following lines.CheckCustDocTypeInvoice(SalesInvHeader,"Cust. Ledger Entry",Customer);"Document Type"::"Credit Memo":CheckCustDocTypeCrMemo(SalesCrMemoHeader,"Cust. Ledger Entry",Customer);// End of the lines.END;...

    Existing code 3

    ...SalesAmt := SalesAmt + "Amount (LCY)";...

    Replacement code 3

    ...SalesAmt := SalesAmt + "Amount (LCY)";// Add the following line.CustomerMaxAmount := SalesAmt;...
  3. Change the code in the Data Item Number 5in the Make 347 Declaration report (10707) as follows:Existing code

    ...NotIn347Amt := 0;...

    Replacement code

    ...NotIn347Amt := 0;// Add the following line.VendorMaxAmount := 0;...
  4. Change the code in the Data Item Number 6in the Make 347 Declaration report (10707) as follows:Existing code 1

    ...// Delete the following lines.VATEntry.RESET;VATEntry.SETCURRENTKEY(Type,"Posting Date","Document No.","Country/Region Code");VATEntry.SETRANGE(Type,VATEntry.Type::Purchase);VATEntry.SETRANGE("Posting Date","Posting Date");VATEntry.SETRANGE("Document Type","Document Type");VATEntry.SETRANGE("Document No.","Document No.");VATEntry.SETRANGE("Country/Region Code",CountryCode);// End of the lines....

    Replacement code 1

    ...// Add the following line.FilterVATEntry(VATEntry,"Posting Date","Document Type","Document No.",FALSE);...

    Existing code 2

    ..."Document Type"::Invoice:// Delete the following lines.BEGINPurchInvHeader.RESET;IF PurchInvHeader.GET("Document No.") THEN BEGINIF PurchInvHeader."Order Address Code" <> '' THEN BEGINOrderAddress.GET("Vendor No.",PurchInvHeader."Order Address Code");IF OrderAddress."Country/Region Code" <> CountryCode THENCurrReport.SKIP;END;PurchInvLine.RESET;PurchInvLine.SETRANGE("Document No.","Document No.");IF PurchInvLine.FINDSET THENREPEATIF (PurchInvLine."VAT Calculation Type" = PurchInvLine."VAT Calculation Type"::"No Taxable VAT") AND(Vendor."Country/Region Code" = CountryCode) THENNoTaxVATFound := TRUE;UNTIL PurchInvLine.NEXT = 0;END ELSE BEGINIF Vendor."Country/Region Code" = CountryCode THENFromJournal := TRUE;END;END;"Document Type"::"Credit Memo":BEGINPurchCrMemoHeader.RESET;IF PurchCrMemoHeader.GET("Document No.") THEN BEGINIF PurchCrMemoHeader."Order Address Code" <> '' THEN BEGINOrderAddress.GET("Vendor No.",PurchCrMemoHeader."Order Address Code");IF OrderAddress."Country/Region Code" <> CountryCode THENCurrReport.SKIP;END;PurchCrMemoLine.RESET;PurchCrMemoLine.SETRANGE("Document No.","Document No.");IF PurchCrMemoLine.FINDSET THENREPEATIF (PurchCrMemoLine."VAT Calculation Type" = PurchCrMemoLine."VAT Calculation Type"::"No Taxable VAT") AND(Vendor."Country/Region Code" = CountryCode) THENNoTaxVATFound := TRUE;UNTIL PurchCrMemoLine.NEXT = 0;END ELSE BEGINIF Vendor."Country/Region Code" = CountryCode THENFromJournal := TRUE;END;END;// End of the lines.END;...

    Replacement code 2

    ..."Document Type"::Invoice:// Add the following lines.CheckVendDocTypeInvoice(PurchInvHeader,"Vendor Ledger Entry",Vendor);"Document Type"::"Credit Memo":CheckVendDocTypeCrMemo(PurchCrMemoHeader,"Vendor Ledger Entry",Vendor);// End of the lines.END;...

    Existing code 3

    ...PurchasesAmt := PurchasesAmt - "Amount (LCY)";...

    Replacement code 3

    ...PurchasesAmt := PurchasesAmt - "Amount (LCY)";// Add the following line.VendorMaxAmount := PurchasesAmt;...
  5. Change the code in the Global Variables in the Make 347 Declaration report (10707) as follows:Existing code

    ...AmountType@1100095 : 'Sales,Purchase,SameVATNo,NotIn347Report';...

    Replacement code

    ...AmountType@1100095 : 'Sales,Purchase,SameVATNo,NotIn347Report';// Add the following lines.VendorMaxAmount@1100096 : Decimal;CustomerMaxAmount@1100101 : Decimal;// End of the lines....

  6. Change the code in the CheckSameVATRegNo function in the Make 347 Declaration report (10707) as follows:Existing code

    ...VAR// Delete the following lines.VATEntry3@1100000 : Record 254;GLEntry@1100002 : Record 17;GLAccount@1100003 : Record 15;TempVATEntry@1100004 : TEMPORARY Record 254;BEGINVATEntry3.SETCURRENTKEY(Type,"Country/Region Code","VAT Registration No.");VATEntry3.SETRANGE("Country/Region Code",CountryCode);IF IsCustomer THEN BEGINVATEntry3.SETRANGE(Type,VATEntry3.Type::Sale); // ES0001VATEntry3.SETRANGE("VAT Registration No.",Customer."VAT Registration No.");VATEntry3.SETFILTER("Bill-to/Pay-to No.",'<>%1', Customer."No.");END ELSE BEGINVATEntry3.SETRANGE(Type,VATEntry3.Type::Purchase); // ES0001VATEntry3.SETRANGE("VAT Registration No.",Vendor."VAT Registration No.");VATEntry3.SETFILTER("Bill-to/Pay-to No.",'<>%1', Vendor."No.");END;VATEntry3.SETRANGE("Posting Date",FromDate,ToDate); // ES0001IF VATEntry3.FINDFIRST THENREPEATIF IsCustomer THEN BEGINAmt := Amt - VATEntry3.Base - VATEntry3.Amount;UpdateQuarterAmount(AmountType::Sales,-VATEntry3.Base - VATEntry3.Amount,VATEntry3."Posting Date");END ELSE BEGINAmt := Amt + VATEntry3.Base + VATEntry3.Amount;UpdateQuarterAmount(AmountType::Purchase,VATEntry3.Base + VATEntry3.Amount,VATEntry3."Posting Date");END;TempVATEntry.SETRANGE("Transaction No.",VATEntry3."Transaction No.");IF NOT TempVATEntry.FINDFIRST THEN BEGINGLEntry.SETRANGE("Transaction No.",VATEntry3."Transaction No.");IF GLEntry.FINDSET THENREPEATUpdateNotIn347Amount(GLEntry);UNTIL GLEntry.NEXT = 0;TempVATEntry := VATEntry3;TempVATEntry.INSERT;END;UNTIL VATEntry3.NEXT = 0;// End of the lines.EXIT(Amt);...

    Replacement code

    ...VAR// Add the following lines.VATEntry3@1100002 : Record 254;GLEntry@1100003 : Record 17;Customer2@110000022 : Record 18;CustLedgEntry@1100007 : Record 21;SalesInvHeader@1100008 : Record 112;SalesCrMemoHeader@1100011 : Record 114;Vendor2@1100013 : Record 23;VendorLedgerEntry@1100014 : Record 25;PurchInvHeader@1100015 : Record 122;OrderAdress@1100017 : Record 224;PurchCrMemoHeader@1100018 : Record 124;VendorAmount@1100020 : Decimal;CustomerAmount@1100021 : Decimal;BEGINIF IsCustomer THEN BEGINCustomer2.SETCURRENTKEY("VAT Registration No.");Customer2.SETFILTER("No.",'<>%1',Customer."No.");Customer2.SETRANGE("VAT Registration No.",Customer."VAT Registration No.");IF Customer2.FINDFIRST THENREPEATCustomerAmount := 0;CustLedgEntry.SETCURRENTKEY("Customer No.","Document Type");CustLedgEntry.SETRANGE("Customer No.", Customer2."No.");CustLedgEntry.SETRANGE("Posting Date",FromDate,ToDate);CustLedgEntry.SETRANGE("Document Type",CustLedgEntry."Document Type"::Invoice,CustLedgEntry."Document Type"::"Credit Memo");IF CustLedgEntry.FINDFIRST THENREPEATFilterVATEntry(VATEntry3,CustLedgEntry."Posting Date",CustLedgEntry."Document Type",CustLedgEntry."Document No.",IsCustomer);IF NOT VATEntry3.FINDFIRST THEN BEGINCASE CustLedgEntry."Document Type" OFCustLedgEntry."Document Type"::Invoice:CheckCustDocTypeInvoice(SalesInvHeader,CustLedgEntry,Customer2);CustLedgEntry."Document Type"::"Credit Memo" :CheckCustDocTypeCrMemo(SalesCrMemoHeader,CustLedgEntry,Customer2);END;END ELSECheckVatEntryNotIn347(VATEntry3,GLEntry);IF (VATEntry3."VAT Registration No." <> '') OR NoTaxVATFound OR FromJournal THEN BEGINCustLedgEntry.CALCFIELDS(CustLedgEntry."Amount (LCY)");Amt := Amt + CustLedgEntry."Amount (LCY)";CustomerAmount := CustomerAmount + CustLedgEntry."Amount (LCY)";UpdateQuarterAmount(AmountType::SameVATNo,CustLedgEntry."Amount (LCY)",CustLedgEntry."Posting Date");END;UNTIL CustLedgEntry.NEXT = 0;IF CustomerMaxAmount < CustomerAmount THEN BEGINCustomerMaxAmount := CustomerAmount;Name347 := Customer2.Name;END;UNTIL Customer2.NEXT = 0;Name347 := PADSTR(FormatTextName(Name347),40,' ');END ELSE BEGINVendor2.SETCURRENTKEY("VAT Registration No.");Vendor2.SETFILTER("No.",'<>%1',Vendor."No.");Vendor2.SETRANGE("VAT Registration No.",Vendor."VAT Registration No.");IF Vendor2.FINDFIRST THENREPEATVendorAmount := 0;VendorLedgerEntry.SETCURRENTKEY("Vendor No.","Document Type");VendorLedgerEntry.SETRANGE("Vendor No.", Vendor2."No.");VendorLedgerEntry.SETRANGE("Posting Date",FromDate,ToDate);VendorLedgerEntry.SETRANGE("Document Type",VendorLedgerEntry."Document Type"::Invoice,VendorLedgerEntry."Document Type"::"Credit Memo");IF VendorLedgerEntry.FINDFIRST THENREPEATFilterVATEntry(VATEntry3,VendorLedgerEntry."Posting Date",VendorLedgerEntry."Document Type",VendorLedgerEntry."Document No.",IsCustomer);IF NOT VATEntry3.FINDFIRST THEN BEGINCASE VendorLedgerEntry."Document Type" OFVendorLedgerEntry."Document Type"::Invoice:CheckVendDocTypeInvoice(PurchInvHeader,VendorLedgerEntry,Vendor2);VendorLedgerEntry."Document Type"::"Credit Memo":CheckVendDocTypeCrMemo(PurchCrMemoHeader,VendorLedgerEntry,Vendor2);END;END ELSECheckVatEntryNotIn347(VATEntry3,GLEntry);IF (VATEntry3."VAT Registration No." <> '') OR NoTaxVATFound OR FromJournal THEN BEGINVendorLedgerEntry.CALCFIELDS(VendorLedgerEntry."Amount (LCY)");Amt := Amt - VendorLedgerEntry."Amount (LCY)";VendorAmount := VendorAmount - VendorLedgerEntry."Amount (LCY)";UpdateQuarterAmount(AmountType::SameVATNo,-VendorLedgerEntry."Amount (LCY)",VendorLedgerEntry."Posting Date");END;UNTIL VendorLedgerEntry.NEXT = 0;IF VendorMaxAmount < VendorAmount THEN BEGINVendorMaxAmount := VendorAmount;Name347 := Vendor2.Name;END;UNTIL Vendor2.NEXT = 0;Name347 := PADSTR(FormatTextName(Name347),40,' ');END;// End of the lines.EXIT(Amt);...
  7. Change the code in the CheckVatEntryNotIn347 function in the Make 347 Declaration report (10707) as follows:Existing code

    ...BEGIN...

    Replacement code

    ...// Add the following lines.LOCAL PROCEDURE CheckVatEntryNotIn347@1100098(VATEntry@1100000 : Record 254;GLEntry@1100001 : Record 17);VARTempVATEntry@1100002 : Record 254;BEGINREPEATTempVATEntry.SETRANGE("Transaction No.",VATEntry."Transaction No.");IF NOT TempVATEntry.FINDFIRST THEN BEGINGLEntry.SETRANGE("Transaction No.",VATEntry."Transaction No.");IF GLEntry.FINDSET THENREPEATUpdateNotIn347Amount(GLEntry);UNTIL GLEntry.NEXT = 0;TempVATEntry := VATEntry;TempVATEntry.INSERT;END;UNTIL VATEntry.NEXT = 0;END;LOCAL PROCEDURE FilterVATEntry@1100099(VAR VATEntry@1100000 : Record 254;PostingDate@1100001 : Date;DocumentType@1100002 : Integer;DocumentNo@1100003 : Code[20];IsCustomer@1100004 : Boolean);BEGINVATEntry.RESET;VATEntry.SETCURRENTKEY(Type,"Posting Date","Document No.","Country/Region Code");IF IsCustomer THENVATEntry.SETRANGE(Type,VATEntry.Type::Sale)ELSEVATEntry.SETRANGE(Type,VATEntry.Type::Purchase);VATEntry.SETRANGE("Posting Date",PostingDate);VATEntry.SETRANGE("Document Type",DocumentType);VATEntry.SETRANGE("Document No.",DocumentNo);VATEntry.SETRANGE("Country/Region Code",CountryCode);END;LOCAL PROCEDURE CheckCustDocTypeInvoice@1100101(SalesInvHeader@1100000 : Record 112;CustLedgEntry@1100001 : Record 21;Customer@1100002 : Record 18);VARSalesInvLine@1100003 : Record 113;BEGINSalesInvHeader.RESET;IF SalesInvHeader.GET(CustLedgEntry."Document No.") THEN BEGINIF SalesInvHeader."Ship-to Code" <> '' THENIF SalesInvHeader."Ship-to Country/Region Code" = CountryCode THEN BEGINSalesInvLine.RESET;SalesInvLine.SETRANGE("Document No.",CustLedgEntry."Document No.");IF SalesInvLine.FINDSET THENREPEATIF (SalesInvLine."VAT Calculation Type" = SalesInvLine."VAT Calculation Type"::"No Taxable VAT") AND(Customer."Country/Region Code" = CountryCode) THENNoTaxVATFound := TRUE;UNTIL SalesInvLine.NEXT = 0;END;END;IF Customer."Country/Region Code" = CountryCode THENFromJournal := TRUE;END;PROCEDURE CheckCustDocTypeCrMemo@1100102(SalesCrMemoHeader@1100000 : Record 114;CustLedgEntry@1100001 : Record 21;Customer@1100002 : Record 18);VARSalesCrMemoLine@1100003 : Record 115;BEGINSalesCrMemoHeader.RESET;IF SalesCrMemoHeader.GET(CustLedgEntry."Document No.") THEN BEGINIF SalesCrMemoHeader."Ship-to Code" <> '' THENIF SalesCrMemoHeader."Ship-to Country/Region Code" = CountryCode THEN BEGINSalesCrMemoLine.RESET;SalesCrMemoLine.SETRANGE("Document No.",CustLedgEntry."Document No.");IF SalesCrMemoLine.FINDSET THENREPEATIF (SalesCrMemoLine."VAT Calculation Type" = SalesCrMemoLine."VAT Calculation Type"::"No Taxable VAT") AND(Customer."Country/Region Code" = CountryCode) THENNoTaxVATFound := TRUE;UNTIL SalesCrMemoLine.NEXT = 0;END;END;IF Customer."Country/Region Code" = CountryCode THENFromJournal := TRUE;END;PROCEDURE CheckVendDocTypeInvoice@1100103(PurchInvHeader@1100000 : Record 122;VendorLedgerEntry@1100001 : Record 25;Vendor@1100002 : Record 23);VARPurchInvLine@1100003 : Record 123;BEGINPurchInvHeader.RESET;IF PurchInvHeader.GET(VendorLedgerEntry."Document No.") THEN BEGINIF PurchInvHeader."Ship-to Code" <> '' THENIF PurchInvHeader."Ship-to Country/Region Code" = CountryCode THEN BEGINPurchInvLine.RESET;PurchInvLine.SETRANGE("Document No.",VendorLedgerEntry."Document No.");IF PurchInvLine.FINDSET THENREPEATIF (PurchInvLine."VAT Calculation Type" = PurchInvLine."VAT Calculation Type"::"No Taxable VAT") AND(Vendor."Country/Region Code" = CountryCode) THENNoTaxVATFound := TRUE;UNTIL PurchInvLine.NEXT = 0;END;END;IF Vendor."Country/Region Code" = CountryCode THENFromJournal := TRUE;END;PROCEDURE CheckVendDocTypeCrMemo@1100104(PurchCrMemoHeader@1100000 : Record 124;VendorLedgerEntry@1100001 : Record 25;Vendor@1100002 : Record 23);VARPurchCrMemoLine@1100003 : Record 125;BEGINPurchCrMemoHeader.RESET;IF PurchCrMemoHeader.GET(VendorLedgerEntry."Document No.") THEN BEGINIF PurchCrMemoHeader."Ship-to Code" <> '' THENIF PurchCrMemoHeader."Ship-to Country/Region Code" = CountryCode THEN BEGINPurchCrMemoLine.RESET;PurchCrMemoLine.SETRANGE("Document No.",VendorLedgerEntry."Document No.");IF PurchCrMemoLine.FINDSET THENREPEATIF (PurchCrMemoLine."VAT Calculation Type" = PurchCrMemoLine."VAT Calculation Type"::"No Taxable VAT") AND(Vendor."Country/Region Code" = CountryCode) THENNoTaxVATFound := TRUE;UNTIL PurchCrMemoLine.NEXT = 0;END;END;IF Vendor."Country/Region Code" = CountryCode THENFromJournal := TRUE;END;// End of the lines.BEGIN...

Prerequisites

You must have one of the following products installed to apply this hotfix rollup:

  • The Spanish version of Microsoft Dynamics NAV 2009 R2

  • The Spanish version of Microsoft Dynamics NAV 2009 Service Pack 1

Removal information

You cannot remove this hotfix.

Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.