Iniciar sesión con Microsoft
Iniciar sesión o crear una cuenta
Hola:
Seleccione una cuenta diferente.
Tiene varias cuentas
Elija la cuenta con la que desea iniciar sesión.

Síntomas

Después de instalar la versión en español de Microsoft Dynamics NAV 2009 KB3036701 , la clave de operación de la línea de corrección siempre se exporta como "E", cuando debe depender de la operación anterior que está corrigiendo. Siga los pasos descritos en la sección de cambios de código para resolver este problema. Este problema se produce en los siguientes productos:

  • La versión en español de Microsoft Dynamics NAV 2009 R2

  • La versión en español de Microsoft Dynamics NAV 2009 SP1

Solución

Información de la revisión

Ahora hay una revisión compatible de Microsoft. Sin embargo, sólo se diseñó para corregir el problema que se describe en este artículo. Aplíquela sólo a sistemas que experimenten este problema específico. Esta revisión puede ser sometida a comprobaciones adicionales. Por lo tanto, si no se ve muy afectado por este problema, recomendamos que espere al próximo service pack de Microsoft Dynamics NAV 2009 o la próxima versión de Microsoft Dynamics NAV que contenga esta revisión.

Nota: En casos especiales, los costos derivados normalmente de las llamadas pueden cancelarse si un profesional de soporte técnico de Microsoft Dynamics y productos relacionados de soporte determina que una actualización específica resolverá el problema. Los costos habituales de soporte se aplicarán a las preguntas de soporte técnico adicionales y problemas que no guarden relación con la actualización en cuestión.

Información sobre la instalación

Microsoft proporciona ejemplos de programación únicamente con fines ilustrativos, sin ninguna garantía expresa o implícita. Esto incluye, pero no se limita, a las garantías implícitas de comerciabilidad o idoneidad para un propósito particular. Este artículo asume que está familiarizado con el lenguaje de programación que se muestra y con las herramientas que se utilizan para crear y depurar procedimientos. Los ingenieros de soporte técnico de Microsoft pueden explicarle la funcionalidad de un determinado procedimiento. Sin embargo, no modificarán estos ejemplos para ofrecer mayor funcionalidad ni crearán procedimientos que cumplan sus requisitos específicos.

Nota: Antes de instalar este hotfix, compruebe que todos los usuarios del cliente de Microsoft Dynamics NAV han salido del sistema. Esto incluye los servicios de Microsoft Dynamics NAV Application Server (NAS). Debe ser el único usuario del cliente conectado cuando implemente este hotfix.

Para implementar esta revisión, debe tener una licencia de desarrollador.

Recomendamos que la cuenta de usuario en la ventana Conexiones Windows o en la ventana Conexiones base de datos se asigne el identificador de rol "SUPER". Si la cuenta de usuario no se puede asignar el identificador de rol "SUPER", debe comprobar que la cuenta de usuario tiene los permisos siguientes:

  • El permiso de modificación para el objeto que se va a cambiar.

  • El permiso Execute para el objeto System Object ID 5210 y el System Object ID 9015 .

    objeto.

Nota: No es necesario tener derechos para los almacenes de datos a menos que deba realizar reparaciones de datos.

Cambios de código

Nota: Siempre pruebe correcciones de código en un entorno controlado antes de aplicar las revisiones a los equipos de producción.

Para resolver este problema, siga estos pasos:

  1. Cambie el código en 5 de número de elemento de datos en el informe de hacer declaración de 349 (10710) como sigue:
    Código existente 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;
    ...

    Código nuevo 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;
    ...

    Código existente 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,' ') +
    ...

    Código nuevo 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,' ') +
    ...

    Código existente 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
    ...

    Código nuevo 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
    ...

    Código existente 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);

    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,' ') +
    ...

    Código nuevo 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,' ') +
    ...

    5 el código existente

    ... 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
    ...

    Código de reemplazo 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 el código existente

    ...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,' ') +
    ...

    Código de reemplazo 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,' ') +
    ...

    Código existente 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;
    ...

    Código de sustitución 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;
    ...

    Código existente 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
    ...

    Código de reemplazo 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
    ...

    Código existente 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
    ...

    Código de recambio 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
    ...

    Código existente 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);
    ...

    Código de reemplazo 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);
    ...

    Código existente 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
    ...

    Código de sustitución 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
    ...

    Código existente 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);
    ...

    Código de reemplazo 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);
    ...
  2. Cambie el código de datos elemento número 6 en el informe de Make349Declaration (10710) de la siguiente manera:
    Código existente 1

    ...  // SETFILTER(Vendor."Country/Region Code",'<>%1',CountryCode);
    // es0014.begin
    PreVATRegNo := '';
    // es0014.end
    // es0013.end
    END;

    OnAfterGetRecord=VAR
    AppliedAmt@1100000 : Decimal;
    PurchCreditMemoOrgDeclaredAmt@1100001 : Decimal;
    ...

    Código nuevo 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;
    ...

    Código existente 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,' ') +
    ...

    Código nuevo 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,' ') +
    ...

    Código existente 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
    ...

    Código nuevo 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
    ...

    Código existente 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);

    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,' ') +
    ...

    Código nuevo 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,' ') +
    ...

    5 el código existente

    ...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);
    ...

    Código de reemplazo 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 el código existente

    ... 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,' ') +
    ...

    Código de reemplazo 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,' ') +
    ...

    Código existente 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
    ...

    Código de sustitución 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
    ...

    Código existente 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
    ...

    Código de reemplazo 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
    ...

    Código existente 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);
    ...

    Código de recambio 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);
    ...

    Código existente 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
    ...

    Código de reemplazo 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
    ...

    Código existente 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);
    ...

    Código de sustitución 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);
    ...

    Código existente 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
    ...

    Código de reemplazo 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
    ...

    Código existente 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);
    ...

    Código de sustitución 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);
    ...
  3. Cambie el código en las Variables globales en el informe de hacer declaración de 349 (10710) como sigue:
    Código existente

    ...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
    ...

    Código de sustitución

    ...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
    ...
  4. Cambie el código en la función GetPostedCountryLocCode en el informe de hacer declaración de 349 (10710) como sigue:
    Código existente 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;
    ...

    Código nuevo 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;
    ...

    Código existente 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;
    ...

    Código nuevo 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;
    ...


Requisitos previos

Debe tener uno de los siguientes productos instalados para aplicar esta revisión:

  • La versión en español de Microsoft Dynamics NAV 2009 R2

  • La versión en español de Microsoft Dynamics NAV 2009 SP1

Además, debe tener KB3036701 instalado.

Información de eliminación

No se puede quitar este hotfix.

Estado

Microsoft ha confirmado que se trata de un problema de los productos de Microsoft que se enumeran en la sección "Aplicable a".

Nota: Es un artículo "Publicación rápida" creado directamente desde dentro de la organización de soporte técnico de Microsoft. La información contenida en este documento se proporciona como está en respuesta a nuevos problemas. Como consecuencia de la velocidad en la puesta a disposición, los materiales pueden incluir errores tipográficos y podrán revisarse en cualquier momento sin previo aviso. Para obtener información adicional, consulte Condiciones de uso.

¿Necesita más ayuda?

¿Quiere más opciones?

Explore las ventajas de las suscripciones, examine los cursos de aprendizaje, aprenda a proteger su dispositivo y mucho más.

Las comunidades le ayudan a formular y responder preguntas, enviar comentarios y leer a expertos con conocimientos extensos.

¿Le ha sido útil esta información?

¿Cuál es tu grado de satisfacción con la calidad del lenguaje?
¿Qué ha afectado a su experiencia?
Si presiona Enviar, sus comentarios se usarán para mejorar los productos y servicios de Microsoft. El administrador de TI podrá recopilar estos datos. Declaración de privacidad.

¡Gracias por sus comentarios!

×