Fehlermeldung "Die Transaktion kann nicht abgeschlossen werden, da sie zu Inkonsistenzen in der G/L-Eintragstabelle führt", wenn Sie eine Kaufrechnung in der nordamerikanischen Version von Microsoft Dynamics NAV 2009 buchen

Gilt für
Dynamics NAV 2009

Dieser Artikel gilt für Microsoft für die folgenden Länder und Gebietsschemas.

  • Englisch (Kanada) (en-ca)
  • Englisch (USA) (en-us)
  • Spanisch (Mexiko) (es-mx)
  • Französisch (Kanada) (fr-ca)

Symptome

Angenommen, Sie legen CAD als Wert für zusätzliche Berichtswährung im Dialogfeld Hauptbucheinrichtung in der nordamerikanischen Version von Microsoft Dynamics NAV 2009 fest. Wenn Sie eine Kaufrechnung veröffentlichen, die Steuern enthält, erhalten Sie die folgende Fehlermeldung:

Hinweis

Die Transaktion kann nicht abgeschlossen werden, da sie zu Inkonsistenzen in der G/L-Eintragstabelle führt. Überprüfen Sie, wo und wie die CONSISTENT-Funktion in der Transaktion verwendet wird, um die Ursache für den Fehler zu finden.

Dieses Problem tritt in den folgenden Produkten auf:

  • Die nordamerikanische Version von Microsoft Dynamics NAV 2009 R2
  • Die nordamerikanische Version von Microsoft Dynamics NAV 2009 Service Pack 1

      

Lösung

Hotfixinformationen

Ein unterstützter Hotfix ist jetzt bei Microsoft verfügbar. Es dient jedoch nur zur Behebung des problems, das in diesem Artikel beschrieben wird. Wenden Sie sie nur auf Systeme an, bei denen dieses spezifische Problem auftritt. Dieser Hotfix erhält möglicherweise zusätzliche Tests. Wenn Sie von diesem Problem nicht stark betroffen sind, empfiehlt es sich daher, auf das nächste Microsoft Dynamics NAV 2009 Service Pack oder die nächste Microsoft Dynamics NAV-Version zu warten, die diesen Hotfix enthält.

Hinweis In besonderen Fällen können Gebühren, die normalerweise für Supportanrufe anfallen, storniert werden, wenn ein Technischer Supportmitarbeiter für Microsoft Dynamics und zugehörige Produkte feststellt, dass ihr Problem durch ein bestimmtes Update behoben wird. PLEASE DO NOT TRANSLATE. DOES NOT APPLY TO GERMAN.

            
          

Informationen zur Installation

Microsoft stellt Programmierbeispiele nur zur Veranschaulichung zur Verfügung, ohne ausdrückliche oder stillschweigende Garantie. Dies schließt die stillschweigende Gewährleistung der Marktgängigkeit oder der Eignung für einen bestimmten Zweck ein, ist aber nicht darauf beschränkt. In diesem Artikel wird davon ausgegangen, dass Sie mit der vorgestellten Programmiersprache und den Werkzeugen zum Erstellen und Debuggen von Prozeduren vertraut sind. Die Microsoft Support-Spezialisten können bei der Erläuterung der Funktionalität bestimmter Prozeduren helfen, jedoch werden sie diese Beispiele nicht in Bezug auf eine erweiterte Funktionalität verändern, noch werden sie Prozeduren entwickeln, die auf Ihre besonderen Bedürfnisse zugeschnitten sind.

Hinweis Überprüfen Sie vor der Installation dieses Hotfixs, ob alle Microsoft Navision-Clientbenutzer vom System abgemeldet sind. Dies schließt Microsoft Navision Application Services (NAS)-Clientbenutzer ein. Sie sollten der einzige Clientbenutzer sein, der angemeldet ist, wenn Sie diesen Hotfix implementieren.

Um diesen Hotfix implementieren zu können, benötigen Sie eine Entwicklerlizenz.

Es wird empfohlen, dem Benutzerkonto im Fenster Windows-Anmeldungen oder im Fenster Datenbankanmeldungen die Rollen-ID "SUPER" zuzuweisen. Wenn dem Benutzerkonto die Rollen-ID "SUPER" nicht zugewiesen werden kann, müssen Sie überprüfen, ob das Benutzerkonto über die folgenden Berechtigungen verfügt:

  • Die Berechtigung Ändern für das Objekt, das Sie ändern.
  • Die Execute-Berechtigung für das Systemobjekt-ID 5210-Objekt und für das Systemobjekt-ID 9015-Objekt.

                
Hinweis Sie benötigen keine Rechte für die Datenspeicher, es sei denn, Sie müssen eine Datenreparatur durchführen.

Codeänderungen

Hinweis Testen Sie Codekorrekturen immer in einer kontrollierten Umgebung, bevor Sie die Korrekturen auf Ihre Produktionscomputer anwenden.

Gehen Sie wie folgt vor, um das Problem zu beheben:

  1. Ändern Sie den Code unter Felder in der Tabelle Sales Tax Amount Line (10011) wie folgt:
    Vorhandener Code

    ...
    ESM=Es Informe jurisdicci¢n;
                                                                    FRC=Est une juridiction fiscale;
                                                                    ENC=Is Report-to Jurisdiction];
                                                         Editable=No }
        }
        KEYS
        {
          {    ;Tax Area Code for Key,Tax Jurisdiction Code,Tax %,Tax Group Code,Expense/Capitalize,Tax Type,Use Tax;
    ...
    

    Ersetzungscode

    ...
    
    ESM=Es Informe jurisdicci¢n;
                                                                    FRC=Est une juridiction fiscale;
                                                                    ENC=Is Report-to Jurisdiction];
                                                         Editable=No }
    
    // Add the following line.
    { 10044;  ;Tax Base Amount FCY ;Decimal        }
    // End of the added line.
    
        }
        KEYS
        {
          {    ;Tax Area Code for Key,Tax Jurisdiction Code,Tax %,Tax Group Code,Expense/Capitalize,Tax Type,Use Tax;
    ...
    
  2. Ändern Sie den Code in der PostSalesTaxToGL-Funktion in der Sales-Post Codeunit (80) wie folgt:
    Vorhandener Code

    ...
    END;
                  GenJnlLine."Tax Jurisdiction Code" := TempSalesTaxAmtLine."Tax Jurisdiction Code";
                  IF TempSalesTaxAmtLine."Tax Amount" <> 0 THEN BEGIN
                    RemSalesTaxSrcAmt := RemSalesTaxSrcAmt +
    
    // Delete the following lines.
                      CurrExchRate.ExchangeAmtLCYToFCY(
                        UseDate,SalesHeader."Currency Code",TempSalesTaxAmtLine."Tax Amount",SalesHeader."Currency Factor");
    // End of the deleted lines.
    
                    GenJnlLine."Source Curr. VAT Amount" :=
                      SalesTaxCalculate.ArithmeticRound(RemSalesTaxSrcAmt,Currency."Amount Rounding Precision");
                    RemSalesTaxSrcAmt := RemSalesTaxSrcAmt - GenJnlLine."Source Curr. VAT Amount";
                    RemSalesTaxAmt := RemSalesTaxAmt + TempSalesTaxAmtLine."Tax Amount";
    ...
    

    Ersetzungscode

    ...
    END;
                  GenJnlLine."Tax Jurisdiction Code" := TempSalesTaxAmtLine."Tax Jurisdiction Code";
                  IF TempSalesTaxAmtLine."Tax Amount" <> 0 THEN BEGIN
                    RemSalesTaxSrcAmt := RemSalesTaxSrcAmt +
    
    // Add the following lines.
                      TempSalesTaxAmtLine."Tax Base Amount FCY" * TempSalesTaxAmtLine."Tax %" / 100;
    // End of the added lines.
    
                    GenJnlLine."Source Curr. VAT Amount" :=
                      SalesTaxCalculate.ArithmeticRound(RemSalesTaxSrcAmt,Currency."Amount Rounding Precision");
                    RemSalesTaxSrcAmt := RemSalesTaxSrcAmt - GenJnlLine."Source Curr. VAT Amount";
                    RemSalesTaxAmt := RemSalesTaxAmt + TempSalesTaxAmtLine."Tax Amount";
    ...
    
  3. Ändern Sie den Code in der Funktion PostSalesTaxToGL in purch.-Post Codeunit (90) wie folgt:
    Vorhandener Code

    ...
    END;
                  GenJnlLine."Tax Jurisdiction Code" := TempSalesTaxAmtLine."Tax Jurisdiction Code";
                  IF TempSalesTaxAmtLine."Tax Amount" <> 0 THEN BEGIN
                    RemSalesTaxSrcAmt := RemSalesTaxSrcAmt +
    
    // Delete the following lines.
                      CurrExchRate.ExchangeAmtLCYToFCY(
                        Usedate,PurchHeader."Currency Code",TempSalesTaxAmtLine."Tax Amount",PurchHeader."Currency Factor");
    // End of the deleted lines.
    
                    GenJnlLine."Source Curr. VAT Amount" :=
                      SalesTaxCalculate.ArithmeticRound(RemSalesTaxSrcAmt,Currency."Amount Rounding Precision");
                    RemSalesTaxSrcAmt := RemSalesTaxSrcAmt - GenJnlLine."Source Curr. VAT Amount";
                    RemSalesTaxAmt := RemSalesTaxAmt + TempSalesTaxAmtLine."Tax Amount";
    ...
    

    Ersetzungscode

    ...
    END;
                  GenJnlLine."Tax Jurisdiction Code" := TempSalesTaxAmtLine."Tax Jurisdiction Code";
                  IF TempSalesTaxAmtLine."Tax Amount" <> 0 THEN BEGIN
                    RemSalesTaxSrcAmt := RemSalesTaxSrcAmt +
    
    // Add the following line.
                      TempSalesTaxAmtLine."Tax Base Amount FCY" * TempSalesTaxAmtLine."Tax %" / 100;
    // End of the added line.
    
                    GenJnlLine."Source Curr. VAT Amount" :=
                      SalesTaxCalculate.ArithmeticRound(RemSalesTaxSrcAmt,Currency."Amount Rounding Precision");
                    RemSalesTaxSrcAmt := RemSalesTaxSrcAmt - GenJnlLine."Source Curr. VAT Amount";
                    RemSalesTaxAmt := RemSalesTaxAmt + TempSalesTaxAmtLine."Tax Amount";
    ...
    
  4. Ändern Sie den Code in der Funktion PostProvincialSalesTaxToGL in purch.-Post Codeunit (90) wie folgt:
    Vorhandener Code

    ...
    TaxJurisdiction.TESTFIELD("Tax Account (Purchases)");
                      GenJnlLine."Account No." := TaxJurisdiction."Tax Account (Purchases)";
                    END;
                    GenJnlLine.Amount := GenJnlLine."VAT Amount";
    
    // Delete the following lines.
                    GenJnlLine."Source Curr. VAT Base Amount" := 0;
                    GenJnlLine."VAT Base Amount (LCY)" := 0;
                    GenJnlLine."VAT Base Amount" := 0;
                    GenJnlLine."Source Curr. VAT Amount" := 0;
    // End of the deleted lines.
    
                    GenJnlLine."VAT Amount (LCY)" := 0;
                    GenJnlLine."VAT Amount" := 0;
                    GenJnlLine.Quantity := 0;
                    GenJnlLine."VAT Difference" := 0;
    ...
    

    Ersetzungscode

    ...
    TaxJurisdiction.TESTFIELD("Tax Account (Purchases)");
                      GenJnlLine."Account No." := TaxJurisdiction."Tax Account (Purchases)";
                    END;
                    GenJnlLine.Amount := GenJnlLine."VAT Amount";
    
    // Add the following lines.
                    GenJnlLine."Source Currency Amount" := GenJnlLine."Source Curr. VAT Amount";
                    GenJnlLine."Source Curr. VAT Base Amount" := 0;
                    GenJnlLine."VAT Base Amount (LCY)" := 0;
                    GenJnlLine."VAT Base Amount" := 0;
    // End of the added lines.
    
                    GenJnlLine."VAT Amount (LCY)" := 0;
                    GenJnlLine."VAT Amount" := 0;
                    GenJnlLine.Quantity := 0;
                    GenJnlLine."VAT Difference" := 0;
    ...
    
  5. Ändern Sie den Code in der AddSalesLine-Funktion in der Sales Tax Calculate Codeunit (398) wie folgt:
    Vorhandener Code 1

    ...
    "Round Tax" := TaxArea."Round Tax";
                    TaxJurisdiction.GET("Tax Jurisdiction Code");
                    "Is Report-to Jurisdiction" := ("Tax Jurisdiction Code" = TaxJurisdiction."Report-to Jurisdiction");
                  END;
    
    // Delete the following line.
                  "Tax Base Amount" := (SalesLine."Line Amount" - SalesLine."Inv. Discount Amount") / ExchangeFactor;
    // End of the deleted line.
    
                  "Line Amount" := SalesLine."Line Amount" / ExchangeFactor;
                  "Tax Liable" := SalesLine."Tax Liable";
                  Quantity := SalesLine."Quantity (Base)";
                  "Invoice Discount Amount" := SalesLine."Inv. Discount Amount";
    ...
    

    Ersetzungscode 1

    ...
    "Round Tax" := TaxArea."Round Tax";
                    TaxJurisdiction.GET("Tax Jurisdiction Code");
                    "Is Report-to Jurisdiction" := ("Tax Jurisdiction Code" = TaxJurisdiction."Report-to Jurisdiction");
                  END;
    
    // Add the following line.
                  SetTaxBaseAmount(TempSalesTaxLine,SalesLine."Line Amount" - SalesLine."Inv. Discount Amount",ExchangeFactor,FALSE);
    // End of the added line.
    
                  "Line Amount" := SalesLine."Line Amount" / ExchangeFactor;
                  "Tax Liable" := SalesLine."Tax Liable";
                  Quantity := SalesLine."Quantity (Base)";
                  "Invoice Discount Amount" := SalesLine."Inv. Discount Amount";
    ...
    

    Vorhandener Code 2

    ...
    END ELSE BEGIN
                  "Line Amount" := "Line Amount" + (SalesLine."Line Amount" / ExchangeFactor);
                  IF SalesLine."Tax Liable" THEN
                    "Tax Liable" := SalesLine."Tax Liable";
    
    // Delete the following line.
                  "Tax Base Amount" := "Tax Base Amount" + ((SalesLine."Line Amount" - SalesLine."Inv. Discount Amount") / ExchangeFactor);
    // End of the deleted line.
    
                  "Tax Amount" := 0;
                  Quantity := Quantity + SalesLine."Quantity (Base)";
                  "Invoice Discount Amount" := "Invoice Discount Amount" + SalesLine."Inv. Discount Amount";
                  MODIFY;
    ...
    

    Ersetzungscode 2

    ...
    END ELSE BEGIN
                  "Line Amount" := "Line Amount" + (SalesLine."Line Amount" / ExchangeFactor);
                  IF SalesLine."Tax Liable" THEN
                    "Tax Liable" := SalesLine."Tax Liable";
    
    // Add the following line.
                  SetTaxBaseAmount(TempSalesTaxLine,SalesLine."Line Amount" - SalesLine."Inv. Discount Amount",ExchangeFactor,TRUE);
    // End of the added line.
    
                  "Tax Amount" := 0;
                  Quantity := Quantity + SalesLine."Quantity (Base)";
                  "Invoice Discount Amount" := "Invoice Discount Amount" + SalesLine."Inv. Discount Amount";
                  MODIFY;
    ...
    
  6. Ändern Sie den Code in der Funktion AddSalesInvoiceLines in der Sales Tax Calculate Codeunit (398) wie folgt:
    Vorhandener Code 1

    ...
    "Is Report-to Jurisdiction" :=
                             ("Tax Jurisdiction Code" = TaxJurisdiction."Report-to Jurisdiction");
                         END;
                         "Line Amount" := SalesInvoiceLine."Line Amount" / ExchangeFactor;
    
    // Delete the following line.
                         "Tax Base Amount" := SalesInvoiceLine."VAT Base Amount" / ExchangeFactor;
    // End of the deleted line.
    
                         Quantity := SalesInvoiceLine.Quantity;
                         "Tax Liable" := SalesInvoiceLine."Tax Liable";
                         "Calculation Order" :=  TaxAreaLine."Calculation Order";
                         InsertRec := TRUE;
    ...
    

    Ersetzungscode 1

    ...
    "Is Report-to Jurisdiction" :=
                             ("Tax Jurisdiction Code" = TaxJurisdiction."Report-to Jurisdiction");
                         END;
                         "Line Amount" := SalesInvoiceLine."Line Amount" / ExchangeFactor;
    
    // Add the following line.
                         SetTaxBaseAmount(TempSalesTaxLine,SalesInvoiceLine."VAT Base Amount",ExchangeFactor,FALSE);
    // End of the added line.
    
                         Quantity := SalesInvoiceLine.Quantity;
                         "Tax Liable" := SalesInvoiceLine."Tax Liable";
                         "Calculation Order" :=  TaxAreaLine."Calculation Order";
                         InsertRec := TRUE;
    ...
    

    Vorhandener Code 2

    ...
    InsertRec := TRUE;
                         INSERT;
                       END ELSE BEGIN
                         "Line Amount" := "Line Amount" + (SalesInvoiceLine."Line Amount" / ExchangeFactor);
    
    // Delete the following line.
                         "Tax Base Amount" := "Tax Base Amount" + (SalesInvoiceLine."VAT Base Amount" / ExchangeFactor);
    // End of the deleted line.
    
                         Quantity := Quantity + SalesInvoiceLine.Quantity;
                         IF SalesInvoiceLine."Tax Liable" THEN
                           "Tax Liable" := SalesInvoiceLine."Tax Liable";
                         InsertRec := FALSE;
    ...
    

    Ersetzungscode 2

    ...
    InsertRec := TRUE;
                         INSERT;
                       END ELSE BEGIN
                         "Line Amount" := "Line Amount" + (SalesInvoiceLine."Line Amount" / ExchangeFactor);
    
    // Add the following line.
                         SetTaxBaseAmount(TempSalesTaxLine,SalesInvoiceLine."VAT Base Amount",ExchangeFactor,TRUE);
    // End of the added line.
    
                         Quantity := Quantity + SalesInvoiceLine.Quantity;
                         IF SalesInvoiceLine."Tax Liable" THEN
                           "Tax Liable" := SalesInvoiceLine."Tax Liable";
                         InsertRec := FALSE;
    ...
    
  7. Ändern Sie den Code in der Funktion AddSalesCrMemoLines in der Sales Tax Calculate Codeunit (398) wie folgt:
    Vorhandener Code 1

    ...
    "Is Report-to Jurisdiction" :=
                             ("Tax Jurisdiction Code" = TaxJurisdiction."Report-to Jurisdiction");
                         END;
                         "Line Amount" := SalesCrMemoLine."Line Amount" / ExchangeFactor;
    
    // Delete the following line.
                         "Tax Base Amount" := SalesCrMemoLine."VAT Base Amount" / ExchangeFactor;
    // End of the deleted line.
    
                         Quantity := SalesCrMemoLine.Quantity;
                         "Tax Liable" := SalesCrMemoLine."Tax Liable";
                         "Calculation Order" :=  TaxAreaLine."Calculation Order";
                         InsertRec := TRUE;
    ...
    

    Ersetzungscode 1

    ...
    "Is Report-to Jurisdiction" :=
                             ("Tax Jurisdiction Code" = TaxJurisdiction."Report-to Jurisdiction");
                         END;
                         "Line Amount" := SalesCrMemoLine."Line Amount" / ExchangeFactor;
    
    // Add the following line.
                         SetTaxBaseAmount(TempSalesTaxLine,SalesCrMemoLine."VAT Base Amount",ExchangeFactor,FALSE);
    // End of the added line.
    
                         Quantity := SalesCrMemoLine.Quantity;
                         "Tax Liable" := SalesCrMemoLine."Tax Liable";
                         "Calculation Order" :=  TaxAreaLine."Calculation Order";
                         InsertRec := TRUE;
    ...
    

    Vorhandener Code 2

    ...
    InsertRec := TRUE;
                         INSERT;
                       END ELSE BEGIN
                         "Line Amount" := "Line Amount" + (SalesCrMemoLine."Line Amount" / ExchangeFactor);
    
    // Delete the following line.
                         "Tax Base Amount" := "Tax Base Amount" + (SalesCrMemoLine."VAT Base Amount" / ExchangeFactor);
    // End of the deleted line.
    
                         Quantity := Quantity + SalesCrMemoLine.Quantity;
                         IF SalesCrMemoLine."Tax Liable" THEN
                           "Tax Liable" := SalesCrMemoLine."Tax Liable";
                         InsertRec := FALSE;
    ...
    

    Ersetzungscode 2

    ...
    InsertRec := TRUE;
                         INSERT;
                       END ELSE BEGIN
                         "Line Amount" := "Line Amount" + (SalesCrMemoLine."Line Amount" / ExchangeFactor);
    
    // Add the following line.
                         SetTaxBaseAmount(TempSalesTaxLine,SalesCrMemoLine."VAT Base Amount",ExchangeFactor,TRUE);
    // End of the added line.
    
                         Quantity := Quantity + SalesCrMemoLine.Quantity;
                         IF SalesCrMemoLine."Tax Liable" THEN
                           "Tax Liable" := SalesCrMemoLine."Tax Liable";
                         InsertRec := FALSE;
    ...
    
  8. Ändern Sie den Code in der AddPurchLine-Funktion in der Sales Tax Calculate Codeunit (398) wie folgt:
    Vorhandener Code 1

    ...
    "Round Tax" := TaxArea."Round Tax";
                    TaxJurisdiction.GET("Tax Jurisdiction Code");
                    "Is Report-to Jurisdiction" := ("Tax Jurisdiction Code" = TaxJurisdiction."Report-to Jurisdiction");
                  END;
    
    // Delete the following line.
                  "Tax Base Amount" := (PurchLine."Line Amount" - PurchLine."Inv. Discount Amount") / ExchangeFactor;
    // End of the deleted line.
    
                  "Line Amount" := PurchLine."Line Amount" / ExchangeFactor;
                  "Tax Liable" := PurchLine."Tax Liable";
                  "Use Tax" := PurchLine."Use Tax";
    ...
    

    Ersetzungscode 1

    ...
    "Round Tax" := TaxArea."Round Tax";
                    TaxJurisdiction.GET("Tax Jurisdiction Code");
                    "Is Report-to Jurisdiction" := ("Tax Jurisdiction Code" = TaxJurisdiction."Report-to Jurisdiction");
                  END;
    
    // Add the following line.
                  SetTaxBaseAmount(TempSalesTaxLine,PurchLine."Line Amount" - PurchLine."Inv. Discount Amount",ExchangeFactor,FALSE);
    // End of the added line.
    
              "Line Amount" := PurchLine."Line Amount" / ExchangeFactor;
                  "Tax Liable" := PurchLine."Tax Liable";
                  "Use Tax" := PurchLine."Use Tax";
    ...
    

    Vorhandener Code 2

    ...
    END ELSE BEGIN
                  "Line Amount" := "Line Amount" + (PurchLine."Line Amount" / ExchangeFactor);
                  IF PurchLine."Tax Liable" THEN
                    "Tax Liable" := PurchLine."Tax Liable";
    
    // Delete the following line.
                  "Tax Base Amount" := "Tax Base Amount" + ((PurchLine."Line Amount" - PurchLine."Inv. Discount Amount") / ExchangeFactor);
    // End of the deleted line.
    
                  "Tax Amount" := 0;
                  Quantity := Quantity + PurchLine."Quantity (Base)";
                  "Invoice Discount Amount" := "Invoice Discount Amount" + PurchLine."Inv. Discount Amount";
                  MODIFY;
    ...
    

    Ersetzungscode 2

    ...
    END ELSE BEGIN
                  "Line Amount" := "Line Amount" + (PurchLine."Line Amount" / ExchangeFactor);
                  IF PurchLine."Tax Liable" THEN
                    "Tax Liable" := PurchLine."Tax Liable";
    
    // Add the following line.
                  SetTaxBaseAmount(TempSalesTaxLine,PurchLine."Line Amount" - PurchLine."Inv. Discount Amount",ExchangeFactor,TRUE);
    // End of the added line.
    
                  "Tax Amount" := 0;
                  Quantity := Quantity + PurchLine."Quantity (Base)";
                  "Invoice Discount Amount" := "Invoice Discount Amount" + PurchLine."Inv. Discount Amount";
                  MODIFY;
    ...
    
  9. Ändern Sie den Code in der Funktion AddPurchInvoiceLines in der Sales Tax Calculate Codeunit (398) wie folgt:
    Vorhandener Code 1

    ...
    "Is Report-to Jurisdiction" :=
                             ("Tax Jurisdiction Code" = TaxJurisdiction."Report-to Jurisdiction");
                         END;
                         "Line Amount" := PurchInvLine."Line Amount" / ExchangeFactor;
    
    // Delete the following line.
                         "Tax Base Amount" := PurchInvLine."VAT Base Amount" / ExchangeFactor;
    // End of the deleted line.
    
                         Quantity := PurchInvLine.Quantity;
                         "Tax Liable" := PurchInvLine."Tax Liable";
                         "Use Tax" := PurchInvLine."Use Tax";
    ...
    

    Ersetzungscode 1

    ...
    "Is Report-to Jurisdiction" :=
                             ("Tax Jurisdiction Code" = TaxJurisdiction."Report-to Jurisdiction");
                         END;
                         "Line Amount" := PurchInvLine."Line Amount" / ExchangeFactor;
    
    // Add the following line.
                         SetTaxBaseAmount(TempSalesTaxLine,PurchInvLine."VAT Base Amount",ExchangeFactor,FALSE);
    // End of the added line.
    
                         Quantity := PurchInvLine.Quantity;
                         "Tax Liable" := PurchInvLine."Tax Liable";
                         "Use Tax" := PurchInvLine."Use Tax";
    ...
    

    Vorhandener Code 2

    ...
    InsertRec := TRUE;
                         INSERT;
                       END ELSE BEGIN
                         "Line Amount" := "Line Amount" + (PurchInvLine."Line Amount" / ExchangeFactor);
    
    // Delete the following line.
                         "Tax Base Amount" := "Tax Base Amount" + (PurchInvLine."VAT Base Amount" / ExchangeFactor);
    // End of the deleted line.
    
                         Quantity := Quantity + PurchInvLine.Quantity;
                         IF PurchInvLine."Tax Liable" THEN
                           "Tax Liable" := PurchInvLine."Tax Liable";
                         InsertRec := FALSE;
    ...
    

    Ersetzungscode 2

    ...
    InsertRec := TRUE;
                         INSERT;
                       END ELSE BEGIN
                         "Line Amount" := "Line Amount" + (PurchInvLine."Line Amount" / ExchangeFactor);
    
    // Add the following line.
                         SetTaxBaseAmount(TempSalesTaxLine,PurchInvLine."VAT Base Amount",ExchangeFactor,TRUE);
    // End of the added line.
    
                         Quantity := Quantity + PurchInvLine.Quantity;
                         IF PurchInvLine."Tax Liable" THEN
                           "Tax Liable" := PurchInvLine."Tax Liable";
                         InsertRec := FALSE;
    ...
    
  10. Ändern Sie den Code in der Funktion AddPurchCrMemoLines in der Sales Tax Calculate Codeunit (398) wie folgt:
    Vorhandener Code 1

    ...
    "Is Report-to Jurisdiction" :=
                             ("Tax Jurisdiction Code" = TaxJurisdiction."Report-to Jurisdiction");
                         END;
                         "Line Amount" := PurchCrMemoLine."Line Amount" / ExchangeFactor;
    
    // Delete the following line.
                         "Tax Base Amount" := PurchCrMemoLine."VAT Base Amount" / ExchangeFactor;
    // End of the deleted line.
    
                         Quantity := PurchCrMemoLine.Quantity;
                         "Tax Liable" := PurchCrMemoLine."Tax Liable";
                         "Use Tax" := PurchCrMemoLine."Use Tax";
    ...
    

    Ersetzungscode 1

    ...
    "Is Report-to Jurisdiction" :=
                             ("Tax Jurisdiction Code" = TaxJurisdiction."Report-to Jurisdiction");
                         END;
                         "Line Amount" := PurchCrMemoLine."Line Amount" / ExchangeFactor;
    
    // Add the following line.
                         SetTaxBaseAmount(TempSalesTaxLine,PurchCrMemoLine."VAT Base Amount",ExchangeFactor,FALSE);
    // End of the added line.
    
                         Quantity := PurchCrMemoLine.Quantity;
                         "Tax Liable" := PurchCrMemoLine."Tax Liable";
                         "Use Tax" := PurchCrMemoLine."Use Tax";
    ...
    

    Vorhandener Code 2

    ...
    InsertRec := TRUE;
                         INSERT;
                       END ELSE BEGIN
                         "Line Amount" := "Line Amount" + (PurchCrMemoLine."Line Amount" / ExchangeFactor);
    
    // Delete the following line.
                         "Tax Base Amount" := "Tax Base Amount" + (PurchCrMemoLine."VAT Base Amount" / ExchangeFactor);
    // End of the deleted line.
    
                         Quantity := Quantity + PurchCrMemoLine.Quantity;
                         IF PurchCrMemoLine."Tax Liable" THEN
                           "Tax Liable" := PurchCrMemoLine."Tax Liable";
                         InsertRec := FALSE;
    ...
    

    Ersetzungscode 2

    ...
    InsertRec := TRUE;
                         INSERT;
                       END ELSE BEGIN
                         "Line Amount" := "Line Amount" + (PurchCrMemoLine."Line Amount" / ExchangeFactor);
    
    // Add the following line.
                         SetTaxBaseAmount(TempSalesTaxLine,PurchCrMemoLine."VAT Base Amount",ExchangeFactor,TRUE);
    // End of the added line.
    
                         Quantity := Quantity + PurchCrMemoLine.Quantity;
                         IF PurchCrMemoLine."Tax Liable" THEN
                           "Tax Liable" := PurchCrMemoLine."Tax Liable";
                         InsertRec := FALSE;
    ...
    
  11. Ändern Sie den Code in der AddServiceLine-Funktion in der Sales Tax Calculate Codeunit (398) wie folgt:
    Vorhandener Code 1

    ...
    "Round Tax" := TaxArea."Round Tax";
                    TaxJurisdiction.GET("Tax Jurisdiction Code");
                    "Is Report-to Jurisdiction" := ("Tax Jurisdiction Code" = TaxJurisdiction."Report-to Jurisdiction");
                  END;
    
    // Delete the following line.
                  "Tax Base Amount" := (ServiceLine."Line Amount" - ServiceLine."Inv. Discount Amount") / ExchangeFactor;
    // End of the deleted line.
    
                  "Line Amount" := ServiceLine."Line Amount" / ExchangeFactor;
                  "Tax Liable" := ServiceLine."Tax Liable";
                  Quantity := ServiceLine."Quantity (Base)";
                  "Invoice Discount Amount" := ServiceLine."Inv. Discount Amount";
    ...
    

    Ersetzungscode 1

    ...
    "Round Tax" := TaxArea."Round Tax";
                    TaxJurisdiction.GET("Tax Jurisdiction Code");
                    "Is Report-to Jurisdiction" := ("Tax Jurisdiction Code" = TaxJurisdiction."Report-to Jurisdiction");
                  END;
    
    // Add the following line.
                  SetTaxBaseAmount(TempSalesTaxLine,ServiceLine."Line Amount" - ServiceLine."Inv. Discount Amount",ExchangeFactor,FALSE);
    // End of the added line.
    
                  "Line Amount" := ServiceLine."Line Amount" / ExchangeFactor;
                  "Tax Liable" := ServiceLine."Tax Liable";
                  Quantity := ServiceLine."Quantity (Base)";
                  "Invoice Discount Amount" := ServiceLine."Inv. Discount Amount";
    ...
    

    Vorhandener Code 2

    ...
    END ELSE BEGIN
                  "Line Amount" := "Line Amount" + (ServiceLine."Line Amount" / ExchangeFactor);
                  IF ServiceLine."Tax Liable" THEN
                    "Tax Liable" := ServiceLine."Tax Liable";
    
    // Delete the following line.
                  "Tax Base Amount" :=
                    "Tax Base Amount" + ((ServiceLine."Line Amount" - ServiceLine."Inv. Discount Amount") / ExchangeFactor);
    // End of the deleted line.
    
              "Tax Amount" := 0;
                  Quantity := Quantity + ServiceLine."Quantity (Base)";
                  "Invoice Discount Amount" := "Invoice Discount Amount" + ServiceLine."Inv. Discount Amount";
                  MODIFY;
    ...
    

    Ersetzungscode 2

    ...
    END ELSE BEGIN
                  "Line Amount" := "Line Amount" + (ServiceLine."Line Amount" / ExchangeFactor);
                  IF ServiceLine."Tax Liable" THEN
                    "Tax Liable" := ServiceLine."Tax Liable";
    
    // Add the following line.
                  SetTaxBaseAmount(TempSalesTaxLine,ServiceLine."Line Amount" - ServiceLine."Inv. Discount Amount",ExchangeFactor,TRUE);
    // End of the added line.
    
                  "Tax Amount" := 0;
                  Quantity := Quantity + ServiceLine."Quantity (Base)";
                  "Invoice Discount Amount" := "Invoice Discount Amount" + ServiceLine."Inv. Discount Amount";
                  MODIFY;
    ...
    
  12. Ändern Sie den Code in der Funktion AddServInvoiceLines in der Sales Tax Calculate Codeunit (398) wie folgt:
    Vorhandener Code 1

    ...
    "Is Report-to Jurisdiction" :=
                             ("Tax Jurisdiction Code" = TaxJurisdiction."Report-to Jurisdiction");
                         END;
                         "Line Amount" := ServInvLine."Line Amount" / ExchangeFactor;
    
    // Delete the following lines.
                         "Tax Base Amount" := ServInvLine."VAT Base Amount" / ExchangeFactor;
                         Quantity := ServInvLine.Quantity;
                         "Tax Liable" := ServInvLine."Tax Liable";
    
    // End of the deleted line.
    
                         "Calculation Order" :=  TaxAreaLine."Calculation Order";
                         InsertRec := TRUE;
                         INSERT;
    ...
    

    Ersetzungscode 1

    ...
    "Is Report-to Jurisdiction" :=
                             ("Tax Jurisdiction Code" = TaxJurisdiction."Report-to Jurisdiction");
                         END;
                         "Line Amount" := ServInvLine."Line Amount" / ExchangeFactor;
    
    // Add the following lines.
                         SetTaxBaseAmount(TempSalesTaxLine,ServInvLine."VAT Base Amount",ExchangeFactor,FALSE);
                         Quantity := ServInvLine.Quantity;
                         "Tax Liable" := ServInvLine."Tax Liable";
    // End of the added lines.
    
                         "Calculation Order" :=  TaxAreaLine."Calculation Order";
                         InsertRec := TRUE;
                         INSERT;
    ...
    

    Vorhandener Code 2

    ...
    InsertRec := TRUE;
                         INSERT;
                       END ELSE BEGIN
                         "Line Amount" := "Line Amount" + (ServInvLine."Line Amount" / ExchangeFactor);
    
    // Delete the following line.
                         "Tax Base Amount" := "Tax Base Amount" + (ServInvLine."VAT Base Amount" / ExchangeFactor);
    // End of the deleted line.
    
                         Quantity := Quantity + ServInvLine.Quantity;
                         IF ServInvLine."Tax Liable" THEN
                           "Tax Liable" := ServInvLine."Tax Liable";
                         InsertRec := FALSE;
    ...
    

    Ersetzungscode 2

    ...
    InsertRec := TRUE;
                         INSERT;
                       END ELSE BEGIN
                         "Line Amount" := "Line Amount" + (ServInvLine."Line Amount" / ExchangeFactor);
    
    // Add the following line.
                         SetTaxBaseAmount(TempSalesTaxLine,ServInvLine."VAT Base Amount",ExchangeFactor,TRUE);
    // End of the added line.
    
                         Quantity := Quantity + ServInvLine.Quantity;
                         IF ServInvLine."Tax Liable" THEN
                           "Tax Liable" := ServInvLine."Tax Liable";
                         InsertRec := FALSE;
    ...
    
  13. Ändern Sie den Code in der Funktion AddServCrMemoLines in der Sales Tax Calculate Codeunit (398) wie folgt:
    Vorhandener Code 1

    ...
    "Is Report-to Jurisdiction" :=
                             ("Tax Jurisdiction Code" = TaxJurisdiction."Report-to Jurisdiction");
                         END;
                         "Line Amount" := ServCrMemoLine."Line Amount" / ExchangeFactor;
    
    // Delete the following line.
                         "Tax Base Amount" := ServCrMemoLine."VAT Base Amount" / ExchangeFactor;
    // End of the deleted line.
    
                         Quantity := ServCrMemoLine.Quantity;
                         "Tax Liable" := ServCrMemoLine."Tax Liable";
    
                         "Calculation Order" :=  TaxAreaLine."Calculation Order";
    ...
    

    Ersetzungscode 1

    ...
    "Is Report-to Jurisdiction" :=
                             ("Tax Jurisdiction Code" = TaxJurisdiction."Report-to Jurisdiction");
                         END;
                         "Line Amount" := ServCrMemoLine."Line Amount" / ExchangeFactor;
    
    // Add the following line.
                         SetTaxBaseAmount(TempSalesTaxLine,ServCrMemoLine."VAT Base Amount",ExchangeFactor,FALSE);
    // End of the added line.
    
                         Quantity := ServCrMemoLine.Quantity;
                         "Tax Liable" := ServCrMemoLine."Tax Liable";
    
                         "Calculation Order" :=  TaxAreaLine."Calculation Order";
    ...
    

    Vorhandener Code 2

    ...
    InsertRec := TRUE;
                         INSERT;
                       END ELSE BEGIN
                         "Line Amount" := "Line Amount" + (ServCrMemoLine."Line Amount" / ExchangeFactor);
    
    // Delete the following line.
                         "Tax Base Amount" := "Tax Base Amount" + (ServCrMemoLine."VAT Base Amount" / ExchangeFactor);
    // End of the deleted line.
    
                         Quantity := Quantity + ServCrMemoLine.Quantity;
                         IF ServCrMemoLine."Tax Liable" THEN
                           "Tax Liable" := ServCrMemoLine."Tax Liable";
                         InsertRec := FALSE;
    ...
    

    Ersetzungscode 2

    ...
    InsertRec := TRUE;
                         INSERT;
                       END ELSE BEGIN
                         "Line Amount" := "Line Amount" + (ServCrMemoLine."Line Amount" / ExchangeFactor);
    
    // Add the following line.
                         SetTaxBaseAmount(TempSalesTaxLine,ServCrMemoLine."VAT Base Amount",ExchangeFactor,TRUE);
    // End of the added line.
    
                         Quantity := Quantity + ServCrMemoLine.Quantity;
                         IF ServCrMemoLine."Tax Liable" THEN
                           "Tax Liable" := ServCrMemoLine."Tax Liable";
                         InsertRec := FALSE;
    ...
    
  14. Fügen Sie in der Sales Tax Calculate Codeunit (398) wie folgt die Funktion SetTaxBaseAmount hinzu:

    LOCAL PROCEDURE SetTaxBaseAmount@1020031(VAR SalesTaxAmountLine@1020001 : Record 10011;Value@1020000 : Decimal;ExchangeFactor@1020002 : Decimal;Increment@1020003 : Boolean);
          BEGIN
            WITH SalesTaxAmountLine DO BEGIN
              IF Increment THEN
                "Tax Base Amount FCY" += Value
              ELSE
                "Tax Base Amount FCY" := Value;
              "Tax Base Amount" := "Tax Base Amount FCY" / ExchangeFactor;
            END;
          END;
    

            
          

Voraussetzungen

Sie müssen eines der folgenden Produkte installiert haben, um diesen Hotfix anwenden zu können:

  • Die nordamerikanische Version von Microsoft Dynamics NAV 2009 R2
  • Die nordamerikanische Version von Microsoft Dynamics NAV 2009 Service Pack 1

Informationen zur Deinstallation

Sie können diesen Hotfix nicht entfernen.

Status

Microsoft hat bestätigt, dass dies ein Problem bei den Microsoft-Produkten ist, die im Abschnitt „Gilt für“ aufgeführt sind.

Hinweis: Dies ist ein Artikel vom Typ "SCHNELL VERÖFFENTLICHEN", der direkt in der Microsoft-Supportorganisation erstellt wurde. Die Informationen in diesem Artikel werden ohne Gewähr als Reaktion auf auftretende Probleme bereitgestellt. Aufgrund ihrer schnellen Bereitstellung können sie typografische Fehler enthalten und jederzeit ohne vorherige Ankündigung geändert werden. Andere Überlegungen finden Sie unter Nutzungsbedingungen.