Symptômes
Après l’installation de KB3036701 dans la version espagnole de Microsoft Dynamics NAV 2009, la clé d’opération pour la ligne de correction est toujours exportée en tant que « E », lorsqu’elle doit dépendre de l’opération précédente qui est la correction. Suivez les étapes décrites dans la section modifications du code pour résoudre ce problème. Ce problème se produit dans les produits suivants :
-
La version espagnole de Microsoft Dynamics NAV 2009 R2
-
La version espagnole de Microsoft Dynamics NAV 2009 SP1
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 9015objet.
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 :
-
Modifiez le code de données élément numéro 5 dans l’état de faire une déclaration de 349 (10710) comme suit :Code existant 1
... // SETFILTER(Customer."Country/Region Code",'<>%1',CountryCode); // es0014.begin PreVATRegNo := ''; // es0013.end // es0014.end END; OnAfterGetRecord=VAR VATEntry@1100001 : Record 254; Amount@1100000 : ARRAY [3] OF Decimal;...
Code de substitution 1
... // SETFILTER(Customer."Country/Region Code",'<>%1',CountryCode); // es0014.begin PreVATRegNo := ''; // es0013.end // es0014.end// Add the following line.OperationKey := 'E';// End of the added line. END; OnAfterGetRecord=VAR VATEntry@1100001 : Record 254; Amount@1100000 : ARRAY [3] OF Decimal;...
Code existant 2
...CustVendCountry.GET(Customer2."Country/Region Code"); // es0033.begin IF CustVendWarning349."EU Service" THEN BEGIN TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmountEUService),3,13); TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmountEUService),3,13); Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +...
Code de substitution 2
... CustVendCountry.GET(Customer2."Country/Region Code"); // es0033.begin IF CustVendWarning349."EU Service" THEN BEGIN TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmountEUService),3,13); TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmountEUService),3,13);// Add the following line.OperationKey := 'S';// End of the added line. Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +...
Code existant 3
...Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +// Delete the following line.'S' + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +// End of the deleted line. CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount + PADSTR('',322,' '); OutFile.WRITE(Txt); END ELSE IF CustVendWarning349."EU 3-Party Trade" THEN BEGIN...
Code de substitution 3
...Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +// Add the following line.OperationKey + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +// End of the added line. CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount + PADSTR('',322,' '); OutFile.WRITE(Txt); END ELSE IF CustVendWarning349."EU 3-Party Trade" THEN BEGIN...
4 le code existant
...OutFile.WRITE(Txt); END ELSE IF CustVendWarning349."EU 3-Party Trade" THEN BEGIN TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmountTri),3,13); TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmountTri),3,13); Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +...
Code de remplacement 4
... OutFile.WRITE(Txt); END ELSE IF CustVendWarning349."EU 3-Party Trade" THEN BEGIN TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmountTri),3,13); TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmountTri),3,13);// Add the following line.OperationKey := 'T';// End of the added line. Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +...
Code existant 5
... Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +// Delete the following line.'T' + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +// End of the deleted line. CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount + PADSTR('',322,' '); OutFile.WRITE(Txt); END ELSE BEGIN FOR i := 1 TO 3 DO...
Code de remplacement 5
...Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +// Add the following line.OperationKey + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +// End of the added line. CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount + PADSTR('',322,' '); OutFile.WRITE(Txt); END ELSE BEGIN FOR i := 1 TO 3 DO...
6 le code existant
...END ELSE BEGIN FOR i := 1 TO 3 DO IF (AccPrevDeclAmount[i] <> 0) AND (AccOrigDeclAmount[i] <> 0) THEN BEGIN TextAmount := COPYSTR(FormatTextAmt(AccPrevDeclAmount[i]),3,13); TextAmount2 := COPYSTR(FormatTextAmt(AccOrigDeclAmount[i]),3,13); Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +...
Code de remplacement 6
... END ELSE BEGIN FOR i := 1 TO 3 DO IF (AccPrevDeclAmount[i] <> 0) AND (AccOrigDeclAmount[i] <> 0) THEN BEGIN TextAmount := COPYSTR(FormatTextAmt(AccPrevDeclAmount[i]),3,13); TextAmount2 := COPYSTR(FormatTextAmt(AccOrigDeclAmount[i]),3,13);// Add the following line.OperationKey := OperationCode[i];// End of the added line. Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +...
Code existant 7
...Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +// Delete the following line.OperationCode[i] + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +// End of the deleted line. CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount + //PADSTR('',72,' '); PADSTR('',322,' '); OutFile.WRITE(Txt); END;...
Code de remplacement 7
... Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +// Add the following line.OperationKey + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +// End of the added line. CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount + //PADSTR('',72,' '); PADSTR('',322,' '); OutFile.WRITE(Txt); END;...
Code existant 8
... IF Amount[i] <> 0 THEN BEGIN IF Amount[i] < 0 THEN Amount[i] := -Amount[i]; TextAmount := COPYSTR(FormatTextAmt(Amount[i]),3,13); CustVendCountry.GET(Customer2."Country/Region Code");// Delete the following lines.Txt :='2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +OperationCode[i] + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');// End of the deleted lines.NoOperations := NoOperations + 1; TotalAmtShip := TotalAmtShip + Amount[i]; OutFile.WRITE(Txt); END; IF AmountOpTri < 0 THEN...
Code de remplacement 8
...IF Amount[i] <> 0 THEN BEGIN IF Amount[i] < 0 THEN Amount[i] := -Amount[i]; TextAmount := COPYSTR(FormatTextAmt(Amount[i]),3,13); CustVendCountry.GET(Customer2."Country/Region Code");// Add the following lines.OperationKey := OperationCode[i];Txt :='2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +OperationKey + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');// End of the added lines.NoOperations := NoOperations + 1; TotalAmtShip := TotalAmtShip + Amount[i]; OutFile.WRITE(Txt); END; IF AmountOpTri < 0 THEN...
Code existant 9
... // FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + // PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') + // 'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' '); // // es0019.end CustVendCountry.GET(Customer2."Country/Region Code"); Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') + // es0033.begin...
Code de remplacement 9
... // FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + // PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') + // 'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' '); // // es0019.end CustVendCountry.GET(Customer2."Country/Region Code");// Add the following line.OperationKey := 'T';// End of the added line. Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') + // es0033.begin...
Code existant 10
... '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') + // es0033.begin //'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' ');// Delete the following line.'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');// End of the deleted line. // es0033.end // es0020.end NoOperations := NoOperations + 1; TotalAmtShip := TotalAmtShip + AmountOpTri; OutFile.WRITE(Txt);...Code de remplacement 10
...'2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') + // es0033.begin //'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' ');// Add the following line.OperationKey + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');// End of the added line. // es0033.end // es0020.end NoOperations := NoOperations + 1; TotalAmtShip := TotalAmtShip + AmountOpTri; OutFile.WRITE(Txt);...Code existant 11
...IF AmountEUService < 0 THEN AmountEUService := -AmountEUService; IF CorrIncludedForEUServiceAmount OR (AmountEUService <> 0) THEN BEGIN TextAmount := COPYSTR(FormatTextAmt(AmountEUService),3,13); CustVendCountry.GET(Customer2."Country/Region Code");// Delete the following lines.Txt :='2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +'S' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');// End of the deleted lines.NoOperations := NoOperations + 1; TotalAmtShip := TotalAmtShip + AmountEUService; OutFile.WRITE(Txt); END; IF IsCreditMomoPrinted THEN BEGIN...
Code de remplacement 11
...IF AmountEUService < 0 THEN AmountEUService := -AmountEUService; IF CorrIncludedForEUServiceAmount OR (AmountEUService <> 0) THEN BEGIN TextAmount := COPYSTR(FormatTextAmt(AmountEUService),3,13); CustVendCountry.GET(Customer2."Country/Region Code");// Add the following lines.OperationKey := 'S';Txt :='2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +OperationKey + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');// End of the added lines.NoOperations := NoOperations + 1; TotalAmtShip := TotalAmtShip + AmountEUService; OutFile.WRITE(Txt); END; IF IsCreditMomoPrinted THEN BEGIN...
Code existant 12
...CustVendCountry.GET(Customer2."Country/Region Code"); Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +// Delete the following line.'E' + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +// End of the deleted line. CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount + PADSTR('',322,' '); NoOperations += 1; TotalAmtShip += AmountEUService; OutFile.WRITE(Txt);...
Code de remplacement 12
...CustVendCountry.GET(Customer2."Country/Region Code"); Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Customer2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +// Add the folloiwng line.OperationKey + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +// End of the added line. CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount + PADSTR('',322,' '); NoOperations += 1; TotalAmtShip += AmountEUService; OutFile.WRITE(Txt);...
-
Modifiez le code de 6 de numéro d’élément de données dans le rapport de Make349Declaration (10710) comme suit :Code existant 1
... // SETFILTER(Vendor."Country/Region Code",'<>%1',CountryCode); // es0014.begin PreVATRegNo := ''; // es0014.end // es0013.end END; OnAfterGetRecord=VAR AppliedAmt@1100000 : Decimal; PurchCreditMemoOrgDeclaredAmt@1100001 : Decimal;...
Code de substitution 1
... // SETFILTER(Vendor."Country/Region Code",'<>%1',CountryCode); // es0014.begin PreVATRegNo := ''; // es0014.end // es0013.end// Add the following line.OperationKey := 'A';// End of the added line. END; OnAfterGetRecord=VAR AppliedAmt@1100000 : Decimal; PurchCreditMemoOrgDeclaredAmt@1100001 : Decimal;...
Code existant 2
...// es0033.begin IF CustVendWarning349."EU Service" THEN BEGIN TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmountEUService),3,13); TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmountEUService),3,13); Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +...
Code de substitution 2
... // es0033.begin IF CustVendWarning349."EU Service" THEN BEGIN TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmountEUService),3,13); TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmountEUService),3,13);// Add the following line.OperationKey := 'I';// End of the added line. Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +...
Code existant 3
... Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +// Delete the following line.'I' + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +// End of the deleted line. CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount + PADSTR('',322,' '); OutFile.WRITE(Txt); END ELSE IF CustVendWarning349."EU 3-Party Trade" THEN BEGIN...
Code de substitution 3
...Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +// Add the following line.OperationKey + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +// End of the added line. CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount + PADSTR('',322,' '); OutFile.WRITE(Txt); END ELSE IF CustVendWarning349."EU 3-Party Trade" THEN BEGIN...
4 le code existant
... OutFile.WRITE(Txt); END ELSE IF CustVendWarning349."EU 3-Party Trade" THEN BEGIN TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmountTri),3,13); TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmountTri),3,13); Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +...
Code de remplacement 4
... OutFile.WRITE(Txt); END ELSE IF CustVendWarning349."EU 3-Party Trade" THEN BEGIN TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmountTri),3,13); TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmountTri),3,13);// Add the following line.OperationKey := 'T';// End of the added line. Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +...
Code existant 5
...Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +// Delete the following line.'T' + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +// End of the deleted line. CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount + PADSTR('',322,' '); OutFile.WRITE(Txt); END ELSE BEGIN TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmount),3,13);...
Code de remplacement 5
...Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +// Add the following line.OperationKey + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +// End of the added line. CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount + PADSTR('',322,' '); OutFile.WRITE(Txt); END ELSE BEGIN TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmount),3,13);...
6 le code existant
... PADSTR('',322,' '); OutFile.WRITE(Txt); END ELSE BEGIN TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmount),3,13); TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmount),3,13); // es0033.end Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +...Code de remplacement 6
...PADSTR('',322,' '); OutFile.WRITE(Txt); END ELSE BEGIN TextAmount := COPYSTR(FormatTextAmt(AccumPrevDeclAmount),3,13); TextAmount2 := COPYSTR(FormatTextAmt(AccumOrigDeclAmount),3,13);// Add the following line.OperationKey := 'A';// End of the added line. // es0033.end Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +...Code existant 7
... // es0033.end Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +// Delete the following line.'A' + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +// End of the deleted line. CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount + // es0033.begin //PADSTR('',72,' '); PADSTR('',322,' '); // es0033.end...
Code de remplacement 7
...// es0033.end Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +// Add the following line.OperationKey + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +// End of the added line. CustVendWarning349."Original Declaration Period" + TextAmount2 + TextAmount + // es0033.begin //PADSTR('',72,' '); PADSTR('',322,' '); // es0033.end...
Code existant 8
... // FORMAT(CustVendVatRegNo,15) + // PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') + // 'A' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' '); // // es0016.end CustVendCountry.GET(Vendor2."Country/Region Code"); Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') + // es0033.begin...
Code de remplacement 8
... // FORMAT(CustVendVatRegNo,15) + // PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') + // 'A' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' '); // // es0016.end CustVendCountry.GET(Vendor2."Country/Region Code");// Add the following line.OperationKey := 'A';// End of the added line. Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') + // es0033.begin...
Code existant 9
... '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') + // es0033.begin //'A' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' ');// Delete the following line.'A' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');// End of the deleted line. // es0033.end // es0019.end NoOperations := NoOperations + 1; TotalAmtReciv := TotalAmtReciv + NormalAmount; OutFile.WRITE(Txt);...Code de remplacement 9
... '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') + // es0033.begin //'A' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' ');// Add the following line.OperationKey + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');// End of the added line. // es0033.end // es0019.end NoOperations := NoOperations + 1; TotalAmtReciv := TotalAmtReciv + NormalAmount; OutFile.WRITE(Txt);...Code existant 10
... // FORMAT(CustVendVatRegNo,15) + // PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') + // 'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' '); // // es0016.end CustVendCountry.GET(Vendor2."Country/Region Code"); Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') + // es0033.begin...
Code de remplacement 10
... // FORMAT(CustVendVatRegNo,15) + // PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') + // 'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' '); // // es0016.end CustVendCountry.GET(Vendor2."Country/Region Code");// Add the following line.OperationKey := 'T';// End of the added line. Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') + // es0033.begin...
Code existant 11
... '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') + // es0033.begin //'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' ');// Delete the following line.'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');// End of the deleted line. // es0033.end // es0019.end NoOperations := NoOperations + 1; TotalAmtReciv := TotalAmtReciv + AmountOpTri; OutFile.WRITE(Txt);...Code de remplacement 11
... '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') + // es0033.begin //'T' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',104,' ');// Add the following line.OperationKey + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');// End of the added line. // es0033.end // es0019.end NoOperations := NoOperations + 1; TotalAmtReciv := TotalAmtReciv + AmountOpTri; OutFile.WRITE(Txt);...Code existant 12
...IF AmountEUService < 0 THEN AmountEUService := -AmountEUService; IF CorrIncludedForEUServiceAmount OR (AmountEUService <> 0) THEN BEGIN TextAmount := COPYSTR(FormatTextAmt(AmountEUService),3,13); CustVendCountry.GET(Vendor2."Country/Region Code");// Delete the following lines.Txt :='2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +'I' + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');// End of the deleted lines.NoOperations := NoOperations + 1; TotalAmtReciv := TotalAmtReciv + AmountEUService; OutFile.WRITE(Txt); END; // es0033.end...
Code de remplacement 12
...IF AmountEUService < 0 THEN AmountEUService := -AmountEUService; IF CorrIncludedForEUServiceAmount OR (AmountEUService <> 0) THEN BEGIN TextAmount := COPYSTR(FormatTextAmt(AmountEUService),3,13); CustVendCountry.GET(Vendor2."Country/Region Code");// Add the following lines.OperationKey := 'I';Txt :='2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') +FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) +PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +OperationKey + CONVERTSTR(TextAmount,' ','0') + PADSTR('',354,' ');// End of the added lines.NoOperations := NoOperations + 1; TotalAmtReciv := TotalAmtReciv + AmountEUService; OutFile.WRITE(Txt); END; // es0033.end...
Code existant 13
... CustVendCountry.GET(Customer2."Country/Region Code"); Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +// Delete the following line.'E' + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +// End of the deleted line. CustVendWarning349."Original Declaration Period" + TextAmount + PADSTR('',322,' '); NoOperations += 1; TotalAmtShip += AmountEUService; OutFile.WRITE(Txt);...
Code de remplacement 13
...CustVendCountry.GET(Customer2."Country/Region Code"); Txt := '2' + '349' + FiscalYear + PADSTR(VatRegNo,9,' ') + PADSTR('',58,' ') + FORMAT(CustVendCountry."EU Country/Region Code",2) + FORMAT(CustVendVatRegNo,15) + PADSTR(CONVERTSTR(UPPERCASE(Vendor2.Name),'µ·ÔÖÞàãé륚€()"&ï','AAEEIIOOUUÑUÇ '),40,' ') +// Add the following line.OperationKey + PADSTR('',13,' ') + CustVendWarning349."Original Declaration FY" +// End of the added line. CustVendWarning349."Original Declaration Period" + TextAmount + PADSTR('',322,' '); NoOperations += 1; TotalAmtShip += AmountEUService; OutFile.WRITE(Txt);...
-
Modifiez le code dans les Variables globales dans le rapport de faire une déclaration de 349 (10710) comme suit :Code existant
...EUServiceAlreadyExported@1100077 : Boolean; ThirdPartyAlreadyExported@1100078 : Boolean; FileNameControlVisible@19024830 : Boolean INDATASET; PeriodFrequencyChangeEnable@19073723 : Boolean INDATASET; Idx@1100080 : ',E,M,H'; PROCEDURE FormatTextAmt@1100101(Amount@1100100 : Decimal) : Text[15]; VAR TextAmt@1100101 : Text[15]; BEGIN...
Code de remplacement
...EUServiceAlreadyExported@1100077 : Boolean; ThirdPartyAlreadyExported@1100078 : Boolean; FileNameControlVisible@19024830 : Boolean INDATASET; PeriodFrequencyChangeEnable@19073723 : Boolean INDATASET; Idx@1100080 : ',E,M,H';// Add the following line.OperationKey@1100026 : Text[1];// End of the added line. PROCEDURE FormatTextAmt@1100101(Amount@1100100 : Decimal) : Text[15]; VAR TextAmt@1100101 : Text[15]; BEGIN...
-
Modifiez le code dans la fonction GetPostedCountryLocCode dans le rapport de faire une déclaration de 349 (10710) comme suit :Code existant 1
...IF Location.GET(SalesInvLines."Location Code") THEN EUCountryLinesLocationCode := FindEUCountryRegionCode(Location."Country/Region Code"); IF EUCountryLinesLocationCode THEN BEGIN AmountToIncludeIn349 += GetExportedAmountIn349(SalesInvHeader."Currency Code",// Delete the following line.SalesInvHeader."Currency Factor",SalesInvLines."Line Amount" - SalesInvLines."Inv. Discount Amount");// End of the deleted line. IF GetCountryfromLocation(SalesInvLines."Location Code") <> CountryCode THEN LocationDifferentCountryCode := TRUE; TempSalesInvLines := SalesInvLines; TempSalesInvLines.INSERT; END;...
Code de substitution 1
...IF Location.GET(SalesInvLines."Location Code") THEN EUCountryLinesLocationCode := FindEUCountryRegionCode(Location."Country/Region Code"); IF EUCountryLinesLocationCode THEN BEGIN AmountToIncludeIn349 += GetExportedAmountIn349(SalesInvHeader."Currency Code",// Add the following lines.SalesInvHeader."Currency Factor",SalesInvLines."Line Amount" - SalesInvLines."Inv. Discount Amount");// End of the added lines. IF GetCountryfromLocation(SalesInvLines."Location Code") <> CountryCode THEN LocationDifferentCountryCode := TRUE; TempSalesInvLines := SalesInvLines; TempSalesInvLines.INSERT; END;...
Code existant 2
... END ELSE IF CompInforShipToCountryCode THEN BEGIN EUCountryLinesLocationCode := TRUE; AmountToIncludeIn349 += GetExportedAmountIn349(SalesInvHeader."Currency Code",// Delete the following line.SalesInvHeader."Currency Factor",SalesInvLines."Line Amount" - SalesInvLines."Inv. Discount Amount");// End of the deleted line. TempSalesInvLines := SalesInvLines; TempSalesInvLines.INSERT; END; UNTIL SalesInvLines.NEXT = 0; END;...
Code de substitution 2
...END ELSE IF CompInforShipToCountryCode THEN BEGIN EUCountryLinesLocationCode := TRUE; AmountToIncludeIn349 += GetExportedAmountIn349(SalesInvHeader."Currency Code",// Add the following lines.SalesInvHeader."Currency Factor",SalesInvLines."Line Amount" - SalesInvLines."Inv. Discount Amount");// End of the added lines.TempSalesInvLines := SalesInvLines; TempSalesInvLines.INSERT; END; UNTIL SalesInvLines.NEXT = 0; END;...
Conditions préalables
Vous devez disposer d’un des produits suivants est installé pour appliquer ce correctif :
-
La version espagnole de Microsoft Dynamics NAV 2009 R2
-
La version espagnole de Microsoft Dynamics NAV 2009 SP1
En outre, vous devez avoir KB3036701 installé.
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.