El informe de remesa muestra información incorrecta cuando se contabilizan pagos parciales en facturas de un banco EFT y un proveedor en la versión de Norteamérica de Microsoft Dynamics NAV 2009 Service Pack 1

Se aplica a
Dynamics NAV 2009 Service Pack 1

Este artículo se aplica a Microsoft Dynamics NAV para la configuración regional del idioma de Norteamérica (no).

Síntomas

Suponga que habilita el parámetro Resumir por proveedor en el formulario Sugerir proveedor Pagos en la versión de Norteamérica de Microsoft Dynamics NAV 2009 Service Pack 1. Al registrar pagos parciales en facturas de un banco y proveedor de EFT, observa que el informe de remesa relacionado muestra información incorrecta.

Resolución

Información de revisiones

Una revisión compatible ya está disponible en Microsoft. Sin embargo, solo está pensado para corregir el problema que se describe en este artículo. Aplicarlo solo a los sistemas que experimentan este problema específico. Esta revisión puede recibir pruebas adicionales. Por lo tanto, si no se ve afectado gravemente por este problema, le recomendamos que espere al siguiente Service Pack de Microsoft Dynamics NAV 2009 o a la siguiente versión de Microsoft Dynamics NAV que contenga esta revisión.

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

            
          

Información de instalación

Microsoft proporciona ejemplos de programación solo para ilustración, sin garantía expresa o implícita. Esto incluye, entre otras, las garantías implícitas de comerciabilidad o idoneidad para un propósito determinado. En este artículo se supone que está familiarizado con el lenguaje de programación que se muestra y con las herramientas que se usan para crear y depurar procedimientos. Los ingenieros de soporte técnico de Microsoft pueden explicarle la funcionalidad de un determinado procedimiento, pero no modificarán estos ejemplos para ofrecer mayor funcionalidad ni crearán procedimientos adaptados a sus necesidades específicas.

Nota Antes de instalar esta revisión, verifique que todos los usuarios cliente de Microsoft Navision hayan cerrado sesión en el sistema. Esto incluye a los usuarios cliente de Microsoft Navision Application Services (NAS). Usted debe ser el único usuario del cliente que ha iniciado sesión al implementar esta revisión.

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

Le recomendamos que la cuenta de usuario en la ventana Inicios de sesión de Windows o en la ventana Inicios de sesión de base de datos tenga asignado el id. de rol "SUPER". Si no se puede asignar a la cuenta de usuario el id. de rol "SUPER", debe comprobar que la cuenta de usuario tiene los permisos siguientes:

  • El permiso Modificar para el objeto que va a cambiar.
  • El permiso Execute para el objeto System Object ID 5210 y para el objeto System Object ID 9015.

                
Nota No es necesario tener derechos sobre los almacenes de datos a menos que tenga que realizar una reparación de datos.

Cambios de código

Nota Pruebe siempre las correcciones de código en un entorno controlado antes de aplicar las correcciones a los equipos de producción.
Para resolver este problema, siga estos pasos:

  1. Cambie el código en el desencadenador OnAfterGetRecord de la generación. Elemento de datos Línea del Diario en el informe de Pagos electrónico de exportación (10083) como se indica a continuación:
    Código de exsiting

    ...
          VendLedgEntry.CALCFIELDS("Remaining Amt. (LCY)");
        IF (VendLedgEntry."Pmt. Discount Date" >= SettleDate) AND
      (VendLedgEntry."Remaining Pmt. Disc. Possible" <>0) AND
    
           (-(ExportAmount + VendLedgEntry."Remaining Pmt. Disc. Possible") >= -VendLedgEntry."Remaining Amt. (LCY)")
    
        THEN BEGIN
          DiscountTaken := -VendLedgEntry."Remaining Pmt. Disc. Possible";
    
          AmountPaid := -(VendLedgEntry."Remaining Amt. (LCY)" - VendLedgEntry."Remaining Pmt. Disc. Possible");
        END ELSE IF -ExportAmount > -VendLedgEntry."Remaining Amt. (LCY)" THEN
          AmountPaid := -VendLedgEntry."Remaining Amt. (LCY)"
    
        ELSE
          AmountPaid := -ExportAmount;
      END;
    ...
        CustLedgEntry.CALCFIELDS("Remaining Amt. (LCY)");
        IF (CustLedgEntry."Pmt. Discount Date" >= SettleDate) AND
           (CustLedgEntry."Remaining Pmt. Disc. Possible" <>0) AND
    
           (-(ExportAmount - CustLedgEntry."Remaining Pmt. Disc. Possible") >= -CustLedgEntry."Remaining Amt. (LCY)")
    
        THEN BEGIN
          DiscountTaken := -CustLedgEntry."Remaining Pmt. Disc. Possible";
    
          AmountPaid := -(CustLedgEntry."Remaining Amt. (LCY)" - CustLedgEntry."Remaining Pmt. Disc. Possible");
        END ELSE IF -ExportAmount > -CustLedgEntry."Remaining Amt. (LCY)" THEN
          AmountPaid := -CustLedgEntry."Remaining Amt. (LCY)"
    
        ELSE
          AmountPaid := -ExportAmount;
      END;    
    ...
    
    

    Código de reemplazo

    ...
          VendLedgEntry.CALCFIELDS("Remaining Amt. (LCY)");
        IF (VendLedgEntry."Pmt. Discount Date" >= SettleDate) AND
           (VendLedgEntry."Remaining Pmt. Disc. Possible"  <> 0) AND
    
    //Add the following line.
           (-(ExportAmount + VendLedgEntry."Remaining Pmt. Disc. Possible") >= -VendLedgEntry."Amount to Apply")
    //End of the added line.
    
        THEN BEGIN
          DiscountTaken := -VendLedgEntry."Remaining Pmt. Disc. Possible";
    
    //Add the following lines.
          AmountPaid := -(VendLedgEntry."Amount to Apply" - VendLedgEntry."Remaining Pmt. Disc. Possible");
        END ELSE IF -ExportAmount > -VendLedgEntry."Amount to Apply" THEN
          AmountPaid := -VendLedgEntry."Amount to Apply"
    //End of added lines.
    
        ELSE
          AmountPaid := -ExportAmount;
      END;
    ...
        CustLedgEntry.CALCFIELDS("Remaining Amt. (LCY)");
        IF (CustLedgEntry."Pmt. Discount Date" >= SettleDate) AND
           (CustLedgEntry."Remaining Pmt. Disc. Possible"  <> 0) AND
    
    //Add the following line.
           (-(ExportAmount - CustLedgEntry."Remaining Pmt. Disc. Possible") >= -CustLedgEntry."Amount to Apply")
    //End of the added line.
    
        THEN BEGIN
          DiscountTaken := -CustLedgEntry."Remaining Pmt. Disc. Possible";
    
    //Add the following lines.
          AmountPaid := -(CustLedgEntry."Amount to Apply" - CustLedgEntry."Remaining Pmt. Disc. Possible");
        END ELSE IF -ExportAmount > -CustLedgEntry."Amount to Apply" THEN
          AmountPaid := -CustLedgEntry."Amount to Apply"
    //End of the added lines.
    
        ELSE
          AmountPaid := -ExportAmount;
      END;        
    ...
    
    
  2. Cambie el código del desencadenador OnAfterGetRecord del elemento de datos Entrada de contabilidad en el informe Pagos electrónico de exportación (10083) de la siguiente manera:
    Código de exsiting

    ...
        CALCFIELDS("Remaining Amt. (LCY)");
    IF ("Pmt. Discount Date" >= SettleDate) AND
       ("Remaining Pmt. Disc. Possible" <>0) AND
    
       ((-ExportAmount - TotalAmountPaid) - "Remaining Pmt. Disc. Possible" >= -"Remaining Amt. (LCY)")
    
    THEN BEGIN
      DiscountTaken := -"Remaining Pmt. Disc. Possible";
    
      AmountPaid := -("Remaining Amt. (LCY)" - "Remaining Pmt. Disc. Possible");
    
    END ELSE BEGIN
      DiscountTaken := 0;
    
      IF (-ExportAmount - TotalAmountPaid) > -"Remaining Amt. (LCY)" THEN
        AmountPaid := -"Remaining Amt. (LCY)"
    
      ELSE
        AmountPaid := -ExportAmount - TotalAmountPaid;
    END;
    
    TotalAmountPaid := TotalAmountPaid + AmountPaid;
    ...
    
    

    Código de reemplazo

    ...
     CALCFIELDS("Remaining Amt. (LCY)");
    IF ("Pmt. Discount Date" >= SettleDate) AND
       ("Remaining Pmt. Disc. Possible" <> 0) AND
    
    //Add the following line.
       ((-ExportAmount - TotalAmountPaid) - "Remaining Pmt. Disc. Possible" >= -"Amount to Apply")
    //End of added line.
    
    THEN BEGIN
      DiscountTaken := -"Remaining Pmt. Disc. Possible";
    
    //Add the following line.
      AmountPaid := -("Amount to Apply" - "Remaining Pmt. Disc. Possible");
    //End of added line.
    
    END ELSE BEGIN
      DiscountTaken := 0;
    
    //Add the following lines.
      IF (-ExportAmount - TotalAmountPaid) > -"Amount to Apply" THEN
                                     AmountPaid := -"Amount to Apply"
    //End of added lines.
    
      ELSE
        AmountPaid := -ExportAmount - TotalAmountPaid;
    END;
    
    TotalAmountPaid := TotalAmountPaid + AmountPaid;      
    ...
    
    
  3. Cambie el código en el desencadenador OnAfterGetRecord del elemento de datos Entrada de libro mayor del informe Exportar Pagos electrónico (10083) de la siguiente manera:
    Código de exsiting

    ...
        CALCFIELDS("Remaining Amt. (LCY)");
    IF ("Pmt. Discount Date" >= SettleDate) AND
       ("Remaining Pmt. Disc. Possible" <>0) AND
       ((-ExportAmount - TotalAmountPaid) - "Remaining Pmt. Disc. Possible" >= -"Remaining Amt. (LCY)")
    
    THEN BEGIN
      DiscountTaken := -"Remaining Pmt. Disc. Possible";
      AmountPaid := -("Remaining Amt. (LCY)" - "Remaining Pmt. Disc. Possible");
    
    END ELSE BEGIN
      DiscountTaken := 0;
      IF (-ExportAmount - TotalAmountPaid) > -"Remaining Amt. (LCY)" THEN
        AmountPaid := -"Remaining Amt. (LCY)"
    
      ELSE
        AmountPaid := -ExportAmount - TotalAmountPaid;
    END;
    
    TotalAmountPaid := TotalAmountPaid + AmountPaid;
    
    ...
    
    

    Código de reemplazo

    ...
     CALCFIELDS("Remaining Amt. (LCY)");
    IF ("Pmt. Discount Date" >= SettleDate) AND
       ("Remaining Pmt. Disc. Possible" <> 0) AND
    
       ((-ExportAmount - TotalAmountPaid) - "Remaining Pmt. Disc. Possible" >= -"Amount to Apply")
    
    THEN BEGIN
      DiscountTaken := -"Remaining Pmt. Disc. Possible";
    
      AmountPaid := -("Amount to Apply" - "Remaining Pmt. Disc. Possible");
    
    END ELSE BEGIN
      DiscountTaken := 0;
    
      IF (-ExportAmount - TotalAmountPaid) > -"Amount to Apply" THEN
        AmountPaid := -"Amount to Apply"
    
      ELSE
        AmountPaid := -ExportAmount - TotalAmountPaid;
    END;
    
    TotalAmountPaid := TotalAmountPaid + AmountPaid;
    ...
    
    
  4. Cambie el código del desencadenador OnAfterGetRecord del dataitemed noapplied en el informe de Pagos electrónico de exportación (10083) de la siguiente manera:
    Código de exsiting

    ...
     AmountPaid := ExportAmount - TotalAmountPaid;
    ...
    
    

    Código de reemplazo

    ...
     AmountPaid := -ExportAmount - TotalAmountPaid;
    ...
    
    

          

Requisitos previos

Debe tener la versión de Norteamérica de Microsoft Dynamics NAV 2009 Service Pack 1 instalada para aplicar esta revisión.

Información sobre la eliminación

No puede quitar esta revisión.

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 Esto es un artículo "PUBLICACIÓN RÁPIDA" creado directamente desde la organización de soporte técnico de Microsoft. La información contenida se proporciona tal cual en respuesta a nuevos problemas. Como resultado de la rapidez en la publicación, es posible que los materiales incluyan errores tipográficos. Además, se pueden revisar en cualquier momento sin previo aviso. Consulte los Términos de uso para otras consideraciones.