Se connecter avec Microsoft
S'identifier ou créer un compte.
Bonjour,
Sélectionnez un autre compte.
Vous avez plusieurs comptes
Choisissez le compte avec lequel vous voulez vous connecter.

Cet article s’applique à Microsoft Dynamics NAV pour le paramètres régionaux hongrois (hu).

Symptômes

Supposons que vous appliquez le correctif 2664466 dans la version hongroise de Microsoft Dynamics NAV 2009 R2. Lorsque vous calculez les statistiques de la facture pour une facture, le montant des taxes sur la valeur ajoutée (TVA) est arrondi correctement.
Pour plus d’informations sur le correctif 2664466, cliquez sur le numéro ci-dessous pour afficher l’article correspondant dans la Base de connaissances Microsoft :

2664466 montant de la TVA est incorrect lorsque vous validez une facture en devise étrangère dans la version hongroise de Microsoft Dynamics NAV 5.0 Service Pack 1

Résolution

Informations sur le correctif

Un correctif pris en charge est désormais disponible auprès de Microsoft. Toutefois, il est conçu uniquement pour corriger le problème décrit dans cet article. Il s’applique uniquement aux systèmes rencontrant ce problème spécifique. Ce correctif peut subir des tests supplémentaires. Par conséquent, si vous n’êtes pas sérieusement concerné par ce problème, nous vous recommandons d’attendre le prochain service pack Microsoft Dynamics NAV 2009 ou la prochaine version de Microsoft Dynamics NAV qui comprendra ce correctif.

Remarque Dans certains cas, les frais généralement encourus pour la prise en charge des appels peuvent être annulés si un technicien du Support technique pour Microsoft Dynamics et les produits associés détermine qu’une mise à jour spécifique peut résoudre votre problème. Les coûts habituels du support technique s’appliqueront aux autres questions et problèmes qui ne relèvent pas de la mise à jour spécifique en question.

Informations sur l’installation

Microsoft fournit des exemples de programmation à titre d'illustration uniquement, sans garantie expresse ou implicite. Ceci inclut, mais n'est pas limité à, les garanties implicites de qualité marchande ou d'adéquation à un usage particulier. Cet article suppose que vous êtes familiarisé avec le langage de programmation présenté et les outils utilisés pour créer et déboguer des procédures. Les ingénieurs du support technique Microsoft peuvent aider à expliquer la fonctionnalité d'une procédure particulière. Toutefois, ils ne modifieront pas ces exemples pour fournir des fonctionnalités supplémentaires ou créer des procédures répondant à vos besoins spécifiques.

Remarque Avant d’installer ce correctif, vérifiez que tous les utilisateurs du client Microsoft Dynamics NAV sont déconnectés sur le système. Ceci comprend les services de Microsoft Dynamics NAV Application Server (NAS). Vous devez être le seul utilisateur client connecté lors de l’implémentation de ce correctif.

Pour appliquer ce correctif, vous devez posséder une licence développeur.

Il est recommandé que le compte d’utilisateur dans la fenêtre Logins Windows ou dans la fenêtre Logins base de données est affecté à l’ID de rôle « SUPER ». Si le compte d’utilisateur ne peut pas être affecté à l’ID de rôle « SUPER », vous devez vérifier que le compte d’utilisateur dispose des autorisations suivantes :

  • L’autorisation de modification pour l’objet que vous allez modifier.

  • L’autorisation d’exécution pour l’objet ID objet système 5210 et pour l' ID objet système 9015

    objet.

Remarque Vous n’êtes pas obligé de disposer des droits pour les banques de données excepté si vous devez réparer des données.

Modifications du code

Remarque Toujours tester le code des correctifs dans un environnement contrôlé, avant d'appliquer les correctifs à vos ordinateurs de production.

Pour résoudre ce problème, procédez comme suit :

  1. Modifiez le code dans les champs de la table ligne vente (37) comme suit :
    Code existant 1

    ...
    // Delete the following line.
    CalcVATToReport(SalesHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    Code de substitution 1

    ...
    // Add the following line.
    CalcVATToReport(SalesHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    Code existant 2

    ...
    // Delete the following line.
    CalcVATToReport(SalesHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    Code de substitution 2

    ...
    // Add the following line.
    CalcVATToReport(SalesHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...
  2. Modifiez le code dans la fonction UpdateVATAmounts de la table ligne vente (37) comme suit :
    Code existant

    ...
    // Delete the following line.
    CalcVATToReport(SalesHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    Code de remplacement

    ...
    // Add the following line.
    CalcVATToReport(SalesHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...
  3. Modifiez le code dans la fonction UpdateVATOnLines de la table ligne vente (37) comme suit :
    Code existant

    ..."VAT Base Amount" := NewVATBaseAmount;

    // Delete the following line.
    CalcVATToReport(SalesHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    Code de remplacement

    ..."VAT Base Amount" := NewVATBaseAmount;

    // Add the following line.
    CalcVATToReport(SalesHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...
  4. Modifiez le code dans la fonction CalcVATAmountLines de la table ligne vente (37) comme suit :
    Code existant

    ...
    // Delete the following line.CalcVATToReport(SalesHeader,"VAT Base","VAT Amount" - "VAT Difference",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    Code de remplacement

    ...
    // Add the following line.
    CalcVATToReport(SalesHeader,"VAT Base","Amount Including VAT" - "VAT Difference",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...
  5. Modifiez le code dans la CalcVATToReportfonction de la table ligne vente (37), comme suit :
    Code existant 1

    ...
    // Delete the following line.
    PROCEDURE CalcVATToReport@1360001(SalesHeader@1360000 : Record 36;VATBaseAmount@1360001 : Decimal;VATAmount@1360002 : Decimal;VAR VATBaseAmountToReport@1360003 : Decimal;VAR VATAmountToReport@1360004 : Decimal);
    // End of the deleted line.

    BEGIN
    ...

    Code de substitution 1

    ...
    // Add the following lines.
    PROCEDURE CalcVATToReport@1360001(SalesHeader@1360000 : Record 36;VATBaseAmount@1360001 : Decimal;AmtInclVAT@1360005 : Decimal;VAR VATBaseAmountToReport@1360003 : Decimal;VAR VATAmountToReport@1360004 : Decimal);
    VAR
    AmountLCY@1360006 : Decimal;
    AmtInclVATLCY@1360007 : Decimal;
    // End of the added lines.

    BEGIN
    ...

    Code existant 2

    ...ROUND(VATBaseAmount / SalesHeader."VAT Currency Factor");

    // Delete the following lines.
    VATAmountToReport :=
    ROUND(VATAmount / SalesHeader."VAT Currency Factor");
    END ELSE BEGIN
    VATBaseAmountToReport := VATBaseAmount;
    VATAmountToReport := VATAmount;
    // End of the deleted lines.

    END;
    ...

    Code de substitution 2

    ...ROUND(VATBaseAmount / SalesHeader."VAT Currency Factor");

    // Add the following lines.
    AmountLCY :=
    ROUND(VATBaseAmount / SalesHeader."VAT Currency Factor");
    AmtInclVATLCY :=
    ROUND(AmtInclVAT / SalesHeader."VAT Currency Factor");
    VATAmountToReport :=
    AmtInclVATLCY - AmountLCY;
    END ELSE BEGIN
    VATBaseAmountToReport := VATBaseAmount;
    VATAmountToReport := AmtInclVAT - VATBaseAmount;
    // End of the added lines.

    END;
    ...
  6. Modifiez le code dans les champs de la table ligne achat (39) comme suit :
    Code existant 1

    ...
    // Delete the following line.
    CalcVATToReport(PurchHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...

    Code de substitution 1

    ...
    // Add the following line.
    CalcVATToReport(PurchHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...

    Code existant 2

    ...
    // Delete the following line.
    CalcVATToReport(PurchHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...

    Code de substitution 2

    ...
    // Add the following line.
    CalcVATToReport(PurchHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.
    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...
  7. Modifiez le code dans la fonction UpdateVATAmounts dans la table ligne achat (39) comme suit :
    Code existant

    ...
    // Delete the following line.
    CalcVATToReport(PurchHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...

    Code de remplacement

    ...
    // Add the following line.
    CalcVATToReport(PurchHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...
  8. Modifiez le code dans la fonction UpdateVATOnLines dans la table ligne achat (39) comme suit :
    Code existant

    ...END;

    // Delete the following line.
    CalcVATToReport(PurchHeader,"VAT Base Amount","Amount Including VAT",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...

    Code de remplacement

    ...END;

    // Add the following line.
    CalcVATToReport(PurchHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...
  9. Modifiez le code dans la CalcVATAmountLines de la table ligne achat (39) comme suit :
    Code existant

    ...
    // Delete the following line.
    CalcVATToReport(PurchHeader,"VAT Base","VAT Amount" - "VAT Difference",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...

    Code de remplacement

    ...
    // Add the following line.
    CalcVATToReport(PurchHeader,"VAT Base","Amount Including VAT" - "VAT Difference",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)","VAT % (Non Deductible)");
    ...
  10. Modifiez le code dans la fonction CalcVATToReport dans la table ligne achat (39) comme suit :
    Code existant 1

    ...
    // Delete the following lines.
    PROCEDURE CalcVATToReport@1360000(PurchHeader@1360000 : Record 38;VATBaseAmount@1360001 : Decimal;VATAmount@1360002 : Decimal;VAR VATBaseAmountToReport@1360003 : Decimal;VAR VATAmountToReport@1360004 : Decimal;NonDeductableVATPct@1360005 : Decimal);
    VAR
    NonDeductableVATAmount@1360006 : Decimal;
    BEGIN
    NonDeductableVATAmount := VATAmount * NonDeductableVATPct / 100;
    // End of the deleted lines.

    IF PurchHeader."Currency Code" <> '' THEN BEGIN
    ...

    Code de substitution 1

    ...
    // Add the following lines.
    PROCEDURE CalcVATToReport@1360000(PurchHeader@1360000 : Record 38;VATBaseAmount@1360001 : Decimal;AmtInclVAT@1360007 : Decimal;VAR VATBaseAmountToReport@1360003 : Decimal;VAR VATAmountToReport@1360004 : Decimal;NonDeductableVATPct@1360005 : Decimal);
    VAR
    NonDeductableVATAmount@1360006 : Decimal;
    AmountLCY@1360008 : Decimal;
    AmtInclVATLCY@1360009 : Decimal;
    BEGIN
    NonDeductableVATAmount := (AmtInclVAT - VATBaseAmount) * NonDeductableVATPct / 100;
    // End of the added lines.

    IF PurchHeader."Currency Code" <> '' THEN BEGIN
    ...

    Code existant 2

    ...ROUND((VATBaseAmount + NonDeductableVATAmount) / PurchHeader."VAT Currency Factor");

    // Delete the following lines.
    VATAmountToReport :=
    ROUND((VATAmount - NonDeductableVATAmount) / PurchHeader."VAT Currency Factor");
    END ELSE BEGIN
    VATBaseAmountToReport := VATBaseAmount + ROUND(NonDeductableVATAmount);
    VATAmountToReport := VATAmount - ROUND(NonDeductableVATAmount);
    // End of the deleted lines.

    END
    ...

    Code de substitution 2

    ...ROUND((VATBaseAmount + NonDeductableVATAmount) / PurchHeader."VAT Currency Factor");

    // Add the following lines.
    AmountLCY :=
    ROUND(VATBaseAmount / PurchHeader."VAT Currency Factor");
    AmtInclVATLCY :=
    ROUND(AmtInclVAT / PurchHeader."VAT Currency Factor");
    VATAmountToReport :=
    AmtInclVATLCY - AmountLCY - ROUND(NonDeductableVATAmount / PurchHeader."VAT Currency Factor");
    END ELSE BEGIN
    VATBaseAmountToReport := VATBaseAmount + ROUND(NonDeductableVATAmount);
    VATAmountToReport := AmtInclVAT - VATBaseAmount - ROUND(NonDeductableVATAmount);
    // End of the added lines.

    END
    ...
  11. Modifiez le code dans les champs de la table ligne Service (5902) comme suit :
    Code existant 1

    ...
    // Delete the following line.
    CalcVATToReport(ServHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    Code de substitution 1

    ...
    // Add the following line.CalcVATToReport(ServHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    Code existant 2

    ...
    // Delete the following line.
    CalcVATToReport(ServHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    Code de substitution 2

    ...
    // Add the following line.
    CalcVATToReport(ServHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...
  12. Modifiez le code dans la fonction UpdateVATAmounts de la table ligne Service (5902) comme suit :
    Code existant

    ...
    // Delete the following line.
    CalcVATToReport(ServHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    Code de remplacement

    ...
    // Add the following line.
    CalcVATToReport(ServHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...
  13. Modifiez le code dans la fonction CalcVATAmountLines de la table ligne Service (5902) comme suit :
    Code existant

    ...
    // Delete the following line.
    CalcVATToReport(ServHeader,"VAT Base","VAT Amount" - "VAT Difference",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    Code de remplacement

    ...
    // Add the following line.CalcVATToReport(ServHeader,"VAT Base","Amount Including VAT" - "VAT Difference",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...
  14. Modifiez le code dans la fonction UpdateVATOnLines de la table ligne Service (5902) comme suit :
    Code existant

    ..."VAT Base Amount" := NewVATBaseAmount;

    // Delete the following line.
    CalcVATToReport(ServHeader,"VAT Base Amount","Amount Including VAT" - "VAT Base Amount",
    // End of the deleted line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...

    Code de remplacement

    ..."VAT Base Amount" := NewVATBaseAmount;

    // Add the following line.
    CalcVATToReport(ServHeader,"VAT Base Amount","Amount Including VAT",
    // End of the added line.

    "VAT Base Amt. to Report (LCY)","VAT Amount to Report (LCY)");
    ...
  15. Modifiez le code dans la fonction CalcVATToReport de la table ligne Service (5902) comme suit :
    Code existant 1

    ...
    // Delete the following line.
    PROCEDURE CalcVATToReport@1360000(ServHeader@1360004 : Record 5900;VATBaseAmount@1360003 : Decimal;VATAmount@1360002 : Decimal;VAR VATBaseAmountToReport@1360001 : Decimal;VAR VATAmountToReport@1360000 : Decimal);
    // End of the deleted line.

    BEGIN
    ...

    Code de substitution 1

    ...
    // Add the following lines.
    PROCEDURE CalcVATToReport@1360000(ServHeader@1360004 : Record 5900;VATBaseAmount@1360003 : Decimal;AmtInclVAT@1360007 : Decimal;VAR VATBaseAmountToReport@1360001 : Decimal;VAR VATAmountToReport@1360000 : Decimal);
    VAR
    AmountLCY@1360005 : Decimal;
    AmtInclVATLCY@1360006 : Decimal;
    // End of the added lines.

    BEGIN
    ...

    Code existant 2

    ...ROUND(VATBaseAmount / ServHeader."VAT Currency Factor");

    // Delete the following lines.
    VATAmountToReport :=
    ROUND(VATAmount / ServHeader."VAT Currency Factor");
    END ELSE BEGIN
    VATBaseAmountToReport := VATBaseAmount;
    VATAmountToReport := VATAmount;
    // End of the deleted lines.

    END;
    ...

    Code de substitution 2

    ...ROUND(VATBaseAmount / ServHeader."VAT Currency Factor");

    // Add the following lines.
    AmountLCY :=
    ROUND(VATBaseAmount / ServHeader."VAT Currency Factor");
    AmtInclVATLCY :=
    ROUND(AmtInclVAT / ServHeader."VAT Currency Factor");
    VATAmountToReport :=
    AmtInclVATLCY - AmountLCY;
    END ELSE BEGIN
    VATBaseAmountToReport := VATBaseAmount;
    VATAmountToReport := AmtInclVAT - VATBaseAmount;
    // End of the added lines.

    END;
    ...
  16. Modifiez le code dans la fonction DivideAmount dans le Codeunit ventes-valider (80) comme suit :
    Code existant 1

    ...LOCAL PROCEDURE DivideAmount@8(QtyType@1000 : 'General,Invoicing,Shipping';SalesLineQty@1001 : Decimal);

    // Delete the following lines.
    VAR
    TotalVATBaseAmtLCY@1360001 : Decimal;
    TotalVATAmountLCY@1360000 : Decimal;
    // End of the deleted lines.

    BEGIN
    ...

    Code de substitution 1

    ...LOCAL PROCEDURE DivideAmount@8(QtyType@1000 : 'General,Invoicing,Shipping';SalesLineQty@1001 : Decimal);
    BEGIN
    ...

    Code existant 2

    ...END;

    // Delete the following lines.
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report" :=
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report" + "VAT Base Amount";
    TempVATAmountLineRemainder."Calc VAT Amount to Report" :=
    TempVATAmountLineRemainder."Calc VAT Amount to Report" + "Amount Including VAT" - "VAT Base Amount" - "VAT Difference";
    CalcVATToReport(SalesHeader,
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report",
    TempVATAmountLineRemainder."Calc VAT Amount to Report",
    TotalVATBaseAmtLCY,TotalVATAmountLCY);
    "VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY - TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)";
    "VAT Amount to Report (LCY)" := TotalVATAmountLCY - TempVATAmountLineRemainder."VAT Amount to Report (LCY)";
    TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY;
    TempVATAmountLineRemainder."VAT Amount to Report (LCY)" := TotalVATAmountLCY;
    // End of the deleted lines.
    ...

    Code de substitution 2

    ...END;

    // Add the following line.
    CalcRoundedVATToReport(SalesLine,SalesHeader);
    // End of the added line.

    ...
  17. Créez une fonction dans le Codeunit ventes-valider (80) comme suit :

    LOCAL PROCEDURE CalcRoundedVATToReport@1360026(VAR SalesLine@1360002 : Record 37;SalesHeader@1360003 : Record 36);VAR
    TotalVATBaseAmtLCY@1360005 : Decimal;
    TotalVATAmountLCY@1360004 : Decimal;
    BEGIN
    WITH SalesLine DO BEGIN
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report" +=
    "VAT Base Amount";
    TempVATAmountLineRemainder."Calc VAT Amount to Report" +=
    "Amount Including VAT";
    CalcVATToReport(SalesHeader,
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report",
    TempVATAmountLineRemainder."Calc VAT Amount to Report",
    TotalVATBaseAmtLCY,TotalVATAmountLCY);
    "VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY - TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)";
    "VAT Amount to Report (LCY)" := TotalVATAmountLCY - TempVATAmountLineRemainder."VAT Amount to Report (LCY)";
    TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY;
    TempVATAmountLineRemainder."VAT Amount to Report (LCY)" := TotalVATAmountLCY;
    END;
    END;
  18. Modifier le code dans la fonction DivideAmount dans le Purch.-Post Codeunit (90) comme suit :
    Code existant 1

    ...LOCAL PROCEDURE DivideAmount@8(QtyType@1000 : 'General,Invoicing,Shipping';PurchLineQty@1001 : Decimal);

    // Delete the following lines.
    VAR
    TotalVATBaseAmtLCY@1360001 : Decimal;
    TotalVATAmountLCY@1360000 : Decimal;
    // End of the deleted lines.

    BEGIN
    ...

    Code de substitution 1

    ...LOCAL PROCEDURE DivideAmount@8(QtyType@1000 : 'General,Invoicing,Shipping';PurchLineQty@1001 : Decimal);
    BEGIN
    ...

    Code existant 2

    ...END;

    // Delete the following lines.
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report" :=
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report" + "VAT Base Amount";
    TempVATAmountLineRemainder."Calc VAT Amount to Report" :=
    TempVATAmountLineRemainder."Calc VAT Amount to Report" + "Amount Including VAT" - "VAT Base Amount" - "VAT Difference";
    PurchLine.CalcVATToReport(PurchHeader,
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report",
    TempVATAmountLineRemainder."Calc VAT Amount to Report",
    TotalVATBaseAmtLCY,TotalVATAmountLCY,"VAT % (Non Deductible)");
    "VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY - TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)";
    "VAT Amount to Report (LCY)" := TotalVATAmountLCY - TempVATAmountLineRemainder."VAT Amount to Report (LCY)";
    TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY;
    TempVATAmountLineRemainder."VAT Amount to Report (LCY)" := TotalVATAmountLCY;
    // End of the deleted lines.
    ...

    Code de substitution 2

    ...END;

    // Add the following line.
    CalcRoundedVATToReport(PurchLine,PurchHeader);
    // End of the added line.
    ...
  19. Créez une fonction dans le dans le document achat.-le Codeunit Post (90) comme suit :

    LOCAL PROCEDURE CalcRoundedVATToReport@1360026(VAR PurchLine@1360002 : Record 39;PurchHeader@1360003 : Record 38);VAR
    TotalVATBaseAmtLCY@1360005 : Decimal;
    TotalVATAmountLCY@1360004 : Decimal;
    BEGIN
    WITH PurchLine DO BEGIN
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report" +=
    "VAT Base Amount";
    TempVATAmountLineRemainder."Calc VAT Amount to Report" +=
    "Amount Including VAT";
    CalcVATToReport(PurchHeader,
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report",
    TempVATAmountLineRemainder."Calc VAT Amount to Report",
    TotalVATBaseAmtLCY,TotalVATAmountLCY,"VAT % (Non Deductible)");
    "VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY - TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)";
    "VAT Amount to Report (LCY)" := TotalVATAmountLCY - TempVATAmountLineRemainder."VAT Amount to Report (LCY)";
    TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY;
    TempVATAmountLineRemainder."VAT Amount to Report (LCY)" := TotalVATAmountLCY;
    END;
    END;
  20. Modifiez le code dans la fonction DivideAmount dans le Codeunit de gestion des montants-Serv (5986) comme suit :
    Code existant 1

    ...ChargeableQty@1006 : Decimal;

    // Delete the following lines.
    TotalVATBaseAmtLCY@1360001 : Decimal;
    TotalVATAmountLCY@1360000 : Decimal;
    // End of the deleted lines.

    BEGIN
    ...

    Code de substitution 1

    ...ChargeableQty@1006 : Decimal;
    BEGIN
    ...

    Code existant 2

    ...END;

    // Delete the following lines.
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report" :=
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report" + "VAT Base Amount";
    TempVATAmountLineRemainder."Calc VAT Amount to Report" :=
    TempVATAmountLineRemainder."Calc VAT Amount to Report" + "Amount Including VAT" - "VAT Base Amount" - "VAT Difference";
    CalcVATToReport(ServiceHeader,
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report",
    TempVATAmountLineRemainder."Calc VAT Amount to Report",
    TotalVATBaseAmtLCY,TotalVATAmountLCY);
    "VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY - TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)";
    "VAT Amount to Report (LCY)" := TotalVATAmountLCY - TempVATAmountLineRemainder."VAT Amount to Report (LCY)";
    TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY;
    TempVATAmountLineRemainder."VAT Amount to Report (LCY)" := TotalVATAmountLCY;
    // End of the deleted lines.
    ...

    Code de substitution 2

    ...END;

    // Add the following line.
    CalcRoundedVATToReport(ServiceLine,TempVATAmountLineRemainder,ServHeader);
    // End of the added line.
    ...
  21. Créez une fonction dans le dans le Codeunit de gestion des montants-Serv (5986) comme suit :

    LOCAL PROCEDURE CalcRoundedVATToReport@1360001(VAR ServiceLine@1360002 : Record 5902;VAR TempVATAmountLineRemainder@1360004 : Record 290;ServHeader@1360003 : Record 5900);VAR
    TotalVATBaseAmtLCY@1360006 : Decimal;
    TotalVATAmountLCY@1360005 : Decimal;
    BEGIN
    WITH ServiceLine DO BEGIN
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report" +=
    "VAT Base Amount";
    TempVATAmountLineRemainder."Calc VAT Amount to Report" +=
    "Amount Including VAT";
    CalcVATToReport(ServHeader,
    TempVATAmountLineRemainder."Calc VAT Base Amount to Report",
    TempVATAmountLineRemainder."Calc VAT Amount to Report",
    TotalVATBaseAmtLCY,TotalVATAmountLCY);
    "VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY - TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)";
    "VAT Amount to Report (LCY)" := TotalVATAmountLCY - TempVATAmountLineRemainder."VAT Amount to Report (LCY)";
    TempVATAmountLineRemainder."VAT Base Amt. to Report (LCY)" := TotalVATBaseAmtLCY;
    TempVATAmountLineRemainder."VAT Amount to Report (LCY)" := TotalVATAmountLCY;
    END;
    END;


Conditions préalables

Vous devez avoir la version hongroise de Microsoft Dynamics NAV 2009 R2 installé pour appliquer ce correctif.

Informations sur la suppression

Vous ne pouvez pas supprimer ce correctif.

État

Microsoft a confirmé l'existence de ce problème dans les produits Microsoft répertoriés dans la section « S'applique à ».

Remarque Il s’agit d’un article de « Dernière minute » créé directement à partir de l’organisation de support technique de Microsoft. Les informations contenues dans ce document sont fournies en l'état, en réponse à des problèmes nouveaux. En raison de la rapidité de leur mise à disposition, les documents peuvent contenir des erreurs typographiques et peuvent être révisés à tout moment sans préavis. Consultez les Conditions d’utilisationpour d’autres considérations.

Besoin d’aide ?

Vous voulez plus d’options ?

Explorez les avantages de l’abonnement, parcourez les cours de formation, découvrez comment sécuriser votre appareil, etc.

Les communautés vous permettent de poser des questions et d'y répondre, de donner vos commentaires et de bénéficier de l'avis d'experts aux connaissances approfondies.

Ces informations vous ont-elles été utiles ?

Dans quelle mesure êtes-vous satisfait(e) de la qualité de la langue ?
Qu’est-ce qui a affecté votre expérience ?
En cliquant sur Envoyer, vos commentaires seront utilisés pour améliorer les produits et services de Microsoft. Votre administrateur informatique sera en mesure de collecter ces données. Déclaration de confidentialité.

Nous vous remercions de vos commentaires.

×