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

Cuando una entrada es negativa (corrección), el sistema asumirá automáticamente que se trata de una exportación. Sin embargo, las directrices de la CBS declaran es una importación negativa. Por lo tanto, debe haber que una funcionalidad indica el signo de la entrada (positivo o negativo) y el signo no debe influir en el estado de importación o exportación. Este problema se produce en los siguientes productos:

  • La versión holandesa de Microsoft Dynamics NAV 2009 R2

  • La versión holandesa de Microsoft Dynamics NAV 2009 Service Pack 1

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 el crear decl disco reporte Intrastat (11413) como sigue:
    Código existente 1

    ...SpecialUnit@1000002 : Decimal;
    RoundedWeight@1000001 : Integer;
    ItemDirection@1000004 : Integer;
    BEGIN
    TESTFIELD("Item No.");
    TESTFIELD("Tariff No.");
    ...

    Código nuevo 1

    ...SpecialUnit@1000002 : Decimal;
    RoundedWeight@1000001 : Integer;
    ItemDirection@1000004 : Integer;

    // Add the following line
    IsCorrection@1000005 : Boolean;
    // End of the added line.

    BEGIN
    TESTFIELD("Item No.");
    TESTFIELD("Tariff No.");
    ...

    Código existente 2

    ...ZeroShipment := FALSE;
    END;
    END;

    Write(FORMAT(Date, 0, '<Year4><Month,2>'));
    Write(FORMAT(ItemDirection));
    ...

    Código nuevo 2

    ...
    ZeroShipment := FALSE;
    END;
    END;

    // Add the following line.
    IsCorrection := CheckCorrection("Source Entry No.",ItemDirection);
    // End of the added line.

    Write(FORMAT(Date, 0, '<Year4><Month,2>'));
    Write(FORMAT(ItemDirection));
    ...

    Código existente 3

    ...Write(PADSTR2("Transaction Type", 1, '', '>'));
    Write(PADSTR2(DELCHR("Tariff No."), 8, '0', '<'));
    Write('00');
    Write(Sign(RoundedWeight)); // DELETED
    Write(PADSTR2(FORMAT(RoundedWeight, 0, '<Integer>'), 10, ' ', '<'));
    ...

    Código nuevo 3

    ...Write(PADSTR2("Transaction Type", 1, '', '>'));
    Write(PADSTR2(DELCHR("Tariff No."), 8, '0', '<'));
    Write('00');

    // Add the following line.
    Write(Sign(RoundedWeight,IsCorrection));
    // End of the added line.

    Write(PADSTR2(FORMAT(RoundedWeight, 0, '<Integer>'), 10, ' ', '<'));
    ...

    Código existente 4

    ...Write(PADSTR2(FORMAT(RoundedWeight, 0, '<Integer>'), 10, ' ', '<'));

    // Delete the following line.
    Write(Sign(SpecialUnit));
    // End of the deleted line.

    Write(PADSTR2(FORMAT(SpecialUnit, 0, '<Integer>'), 10, ' ', '<'));
    ...

    Código nuevo 4

    ...Write(PADSTR2(FORMAT(RoundedWeight, 0, '<Integer>'), 10, ' ', '<'));

    // Add the following line.
    Write(Sign(SpecialUnit,IsCorrection));
    // End of the added line.

    Write(PADSTR2(FORMAT(SpecialUnit, 0, '<Integer>'), 10, ' ', '<'));
    ...

    5 el código existente

    ...
    Write(PADSTR2(FORMAT(SpecialUnit, 0, '<Integer>'), 10, ' ', '<'));

    // Delete the following line.
    Write(Sign(Amount));
    // End of the deleted line.

    Write(PADSTR2(FORMAT(Amount, 0, '<Integer>'), 10, ' ', '<'));
    ...

    Código de reemplazo 5

    ...
    Write(PADSTR2(FORMAT(SpecialUnit, 0, '<Integer>'), 10, ' ', '<'));

    // Add the following line.
    Write(Sign(Amount,IsCorrection));
    // End of the added line.

    Write(PADSTR2(FORMAT(Amount, 0, '<Integer>'), 10, ' ', '<'));
    ...

    6 el código existente

    ...Write(PADSTR2(FORMAT(Amount, 0, '<Integer>'), 10, ' ', '<'));

    // Delete the following line.
    Write('+');
    // End of the deleted line.

    Write(PADSTR2('0', 10, ' ', '<'));
    Write(PADSTR2("Document No.", 10, ' ', '<'));
    ...

    Código de reemplazo 6

    ...Write(PADSTR2(FORMAT(Amount, 0, '<Integer>'), 10, ' ', '<'));

    // Add the following lines.
    IF IsCorrection THEN
    Write('-')
    ELSE // ADDED
    Write('+');
    // End of the added lines.

    Write(PADSTR2('0', 10, ' ', '<'));
    Write(PADSTR2("Document No.", 10, ' ', '<'));
    ...

    Código existente 7

    ...Write(PADSTR2('0', 10, ' ', '<'));
    Write(PADSTR2("Document No.", 10, ' ', '<'));

    // Delete the following line.
    Write(PADSTR2('', 4, ' ', '>'));
    // End of the deleted line.

    Write('000');
    Write(PADSTR2("Intrastat Jnl. Batch"."Currency Identifier", 1, ' ', '>'));
    Write(PADSTR2('', 6, ' ', '>'));
    ...

    Código de sustitución 7

    ...Write(PADSTR2('0', 10, ' ', '<'));
    Write(PADSTR2("Document No.", 10, ' ', '<'));

    // Add the following lines.
    Write(PADSTR2('', 3, ' ', '>'));
    IF IsCorrection THEN
    Write('C')
    ELSE
    Write(' ');
    // End of the added lines.

    Write('000');
    Write(PADSTR2("Intrastat Jnl. Batch"."Currency Identifier", 1, ' ', '>'));
    Write(PADSTR2('', 6, ' ', '>'));
    ...
  2. Cambie el código en la función de Inicio de sesión en crear decl disco informe Intrastat (11413) como sigue:
    Código existente 1

    ...ExportFile.SEEK(ExportFile.POS - 1);
    END;

    // Delete the following line.
    LOCAL PROCEDURE Sign@1000006(Number@1000000 : Decimal) : Text[1];
    // End of the deleted line.

    BEGIN
    CASE Number < 0 OF
    TRUE:
    ...

    Código nuevo 1

    ... ExportFile.SEEK(ExportFile.POS - 1);
    END;

    // Add the following line.
    LOCAL PROCEDURE Sign@1000006(Number@1000000 : Decimal;IsCorrection@1000001 : Boolean) : Text[1];
    // End of the added line.

    BEGIN
    CASE Number < 0 OF
    TRUE:
    ...

    Código existente 2

    ...BEGIN
    CASE Number < 0 OF
    TRUE:

    // Delete the following line.
    EXIT('-');
    // End of the deleted line.

    FALSE:
    ...

    Código nuevo 2

    ...BEGIN
    CASE Number < 0 OF
    TRUE:

    // Add the following lines.
    IF NOT IsCorrection THEN
    EXIT('-')
    ELSE
    EXIT('+');
    // End of the added lines.

    FALSE:
    ...

    Código existente 3

    ...FALSE:

    // Delete the following line.
    EXIT('+');
    // End of the deleted line.

    END;
    END;
    ...

    Código nuevo 3

    ...FALSE:

    // Add the following lines.
    IF NOT IsCorrection THEN
    EXIT('+')
    ELSE
    EXIT('-');
    // End of the added lines.

    END;
    END;
    ...
  3. Cambie el código en la función CheckCorrection en el crear decl disco reporte Intrastat (11413) como sigue:
    Código existente

    ...CrLf[2] := 10;
    END;

    BEGIN
    ...

    Código de sustitución

    ...CrLf[2] := 10;
    END;

    // Add the following lines.
    PROCEDURE CheckCorrection@1000018(SourceEntryNo@1000000 : Integer;VAR ItemDirection@1000001 : Integer) : Boolean;
    VAR
    ItemLedgerEntry@1000002 : Record 32;
    // End of the added lines.

    BEGIN
    ...
  4. Cambie el código en la función de CrLf en crear decl disco informe Intrastat (11413) como sigue:
    Código existente

    ...BEGIN

    // Delete the following lines.
    {
    // Note: Intrastat Jnl. Batch dataitem has MaxIteration = 1
    }
    END.
    }
    RDLDATA
    {
    }
    }
    // End of the deleted lines.
    ...

    Código de sustitución

    ...BEGIN

    // Add the following lines.
    WITH ItemLedgerEntry DO BEGIN
    GET(SourceEntryNo);
    CASE "Document Type" OF
    "Document Type"::"Purchase Return Shipment":
    BEGIN
    ItemDirection := 6;
    EXIT(TRUE);
    END;
    "Document Type"::"Sales Return Receipt":
    BEGIN
    ItemDirection := 7;
    EXIT(TRUE);
    END;
    END;
    END;
    END;
    // End of the added lines.
    ...
  5. Cambie el código en la función CheckCorrection en el crear decl disco reporte Intrastat (11413) como sigue:
    Código de sustitución

    ...// Add the following lines.
    BEGIN
    {
    // Note: Intrastat Jnl. Batch dataitem has MaxIteration = 1
    }
    END.
    }
    RDLDATA
    {
    }
    }

    // End of the added lines.
    ...

Requisitos previos

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

  • La versión holandesa de Microsoft Dynamics NAV 2009 R2

  • La versión holandesa de Microsoft Dynamics NAV 2009 SP1

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!

×