En este artículo se aplica a Microsoft Dynamics NAV para todos los países y todas las configuraciones regionales.
Síntomas
Cuando se crea un contrato de servicio (no prepagado) y cambiar la factura antes de la contabilización en Microsoft Dynamics NAV 2009, hay datos incoherentes entre movimientos de servicio y contabilidad general. Este problema se produce en los siguientes productos:
-
Microsoft Dynamics NAV 2009 R2
-
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 Microsoft Navision han salido del sistema. Esto incluye a los usuarios del cliente Microsoft Navision Application Services (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 de ejecución para el objeto System Object ID 5210 y System Object ID 9015 del 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:
-
Cambie el código en la tabla dimensión del documento (357) como sigue:Código existente 1
... Text005@1009 : TextConst 'ENU=Canceled.'; Text006@1010 : TextConst 'ENU=You may have changed a dimension. Some lines are already shipped. When you post the line with the changed dimension to the general ledger, amounts on the Inventory Interim account will be out of balance when reported per dimension.\\Do you want to update the lines?'; PROCEDURE UpdateGlobalDimCode@25(GlobalDimCodeNo@1000 : Integer;"Table ID"@1001 : Integer;"Document Type"@1002 : Option;"Document No."@1003 : Code[20];"Line No."@1004 : Integer;NewDimValue@1005 : Code[20]);...
Código nuevo 1
... Text005@1009 : TextConst 'ENU=Canceled.'; Text006@1010 : TextConst 'ENU=You may have changed a dimension. Some lines are already shipped. When you post the line with the changed dimension to the general ledger, amounts on the Inventory Interim account will be out of balance when reported per dimension.\\Do you want to update the lines?'; Text007@1011 : TextConst 'ENU=You cannot change the dimension because the document is based on a service contract.'; PROCEDURE UpdateGlobalDimCode@25(GlobalDimCodeNo@1000 : Integer;"Table ID"@1001 : Integer;"Document Type"@1002 : Option;"Document No."@1003 : Code[20];"Line No."@1004 : Integer;NewDimValue@1005 : Code[20]);...
Código existente 2
... PROCEDURE VerifyLineDim@5(VAR DocDim@1000 : Record 357); VAR SalesLine@1001 : Record 37; PurchaseLine@1002 : Record 39; BEGIN CASE "Table ID" OF DATABASE::"Sales Line": BEGIN IF SalesLine.GET(DocDim."Document Type",DocDim."Document No.",DocDim."Line No.") THEN IF (SalesLine."Qty. Shipped Not Invoiced" <> 0) OR (SalesLine."Return Rcd. Not Invd." <> 0) THEN IF NOT CONFIRM(Text004,TRUE,SalesLine.TABLECAPTION) THEN ERROR(Text005) END; DATABASE::"Purchase Line": BEGIN IF PurchaseLine.GET(DocDim."Document Type",DocDim."Document No.",DocDim."Line No.") THEN IF (PurchaseLine."Qty. Rcd. Not Invoiced" <> 0) OR (PurchaseLine."Return Qty. Shipped Not Invd." <> 0) THEN IF NOT CONFIRM(Text004,TRUE,PurchaseLine.TABLECAPTION) THEN ERROR(Text005) END; END; END;...
Código nuevo 2
... PROCEDURE VerifyLineDim@5(VAR DocDim@1000 : Record 357); VAR SalesLine@1001 : Record 37; PurchaseLine@1002 : Record 39; ServiceHeader@1003 : Record 5900; ServiceLine@1004 : Record 5902; BEGIN CASE "Table ID" OF DATABASE::"Sales Line": BEGIN IF SalesLine.GET(DocDim."Document Type",DocDim."Document No.",DocDim."Line No.") THEN IF (SalesLine."Qty. Shipped Not Invoiced" <> 0) OR (SalesLine."Return Rcd. Not Invd." <> 0) THEN IF NOT CONFIRM(Text004,TRUE,SalesLine.TABLECAPTION) THEN ERROR(Text005) END; DATABASE::"Purchase Line": BEGIN IF PurchaseLine.GET(DocDim."Document Type",DocDim."Document No.",DocDim."Line No.") THEN IF (PurchaseLine."Qty. Rcd. Not Invoiced" <> 0) OR (PurchaseLine."Return Qty. Shipped Not Invd." <> 0) THEN IF NOT CONFIRM(Text004,TRUE,PurchaseLine.TABLECAPTION) THEN ERROR(Text005) END; DATABASE::"Service Header": IF ServiceHeader.GET(DocDim."Document Type",DocDim."Document No.") AND (ServiceHeader."Contract No." <> '') THEN ERROR(Text007); DATABASE::"Service Line": IF ServiceLine.GET(DocDim."Document Type",DocDim."Document No.",DocDim."Line No.") THEN IF (ServiceLine."Contract No." <> '') THEN ERROR(Text007); END; END;...
-
Cambie el código de la tabla línea servicio (5902) como sigue:Código existente 1
... IF (Quantity <> 0) AND ItemExists(xRec."No.") AND (("Spare Part Action" = "Spare Part Action"::"Component Replaced") OR ("Spare Part Action" = "Spare Part Action"::"Component Installed") OR ("Spare Part Action" = "Spare Part Action"::" ")) THEN ReserveServLine.VerifyChange(Rec,xRec); END; OnDelete=VAR...
Código nuevo 1
... IF (Quantity <> 0) AND ItemExists(xRec."No.") AND (("Spare Part Action" = "Spare Part Action"::"Component Replaced") OR ("Spare Part Action" = "Spare Part Action"::"Component Installed") OR ("Spare Part Action" = "Spare Part Action"::" ")) THEN ReserveServLine.VerifyChange(Rec,xRec); IF "Document Type" = ServiceLine."Document Type"::Invoice THEN IF ("Appl.-to Service Entry" <> 0) AND ("Contract No." <> '') THEN ERROR(Text046); END; OnDelete=VAR...
Código existente 2
... { 5 ; ;Type ;Option ;OnValidate=BEGIN GetServHeader; TESTFIELD("Qty. Shipped Not Invoiced",0);...Código nuevo 2
... { 5 ; ;Type ;Option ;OnValidate=BEGIN IF ("Appl.-to Service Entry" <> 0) AND ("Contract No." <> '') THEN ERROR(Text046); GetServHeader;...Código existente 3
... { 6 ; ;No. ;Code20 ;TableRelation=IF (Type=CONST(" ")) "Standard Text" ELSE IF (Type=CONST(G/L Account)) "G/L Account" ELSE IF (Type=CONST(Item)) Item ELSE IF (Type=CONST(Resource)) Resource ELSE IF (Type=CONST(Cost)) "Service Cost"; OnValidate=VAR ShowLocMessage@1000 : Boolean; BEGIN TESTFIELD("Qty. Shipped Not Invoiced",0);...Código nuevo 3
... { 6 ; ;No. ;Code20 ;TableRelation=IF (Type=CONST(" ")) "Standard Text" ELSE IF (Type=CONST(G/L Account)) "G/L Account" ELSE IF (Type=CONST(Item)) Item ELSE IF (Type=CONST(Resource)) Resource ELSE IF (Type=CONST(Cost)) "Service Cost"; OnValidate=VAR ShowLocMessage@1000 : Boolean; BEGIN IF ("Appl.-to Service Entry" <> 0) AND ("Contract No." <> '') THEN ERROR(Text046); TESTFIELD("Qty. Shipped Not Invoiced",0);...Código existente 4
... { 22 ; ;Unit Price ;Decimal ;OnValidate=BEGIN GetServHeader; IF ("Unit Price" > ServHeader."Max. Labor Unit Price") AND...Código nuevo 4
... { 22 ; ;Unit Price ;Decimal ;OnValidate=BEGIN GetServHeader; IF ("Appl.-to Service Entry" > 0) AND (CurrFieldNo <> 0) THEN ERROR(Text046,FIELDCAPTION("Unit Price")); IF ("Unit Price" > ServHeader."Max. Labor Unit Price") AND...5 el código existente
... Text043@1097 : TextConst 'ENU=You cannot change the value of the %1 field manually if %2 for this line is %3'; Text044@1012 : TextConst 'ENU=Do you want to split the resource line and use it to create resource lines\for the other service items with divided amounts?'; Text045@1099 : TextConst 'ENU=You cannot delete this service line because one or more service entries exist for this line.';...
Código de reemplazo 5
... Text043@1097 : TextConst 'ENU=You cannot change the value of the %1 field manually if %2 for this line is %3'; Text044@1012 : TextConst 'ENU=Do you want to split the resource line and use it to create resource lines\for the other service items with divided amounts?'; Text045@1099 : TextConst 'ENU=You cannot delete this service line because one or more service entries exist for this line.'; Text046@1100 : TextConst 'ENU=You cannot modify the document because it is based on a service contract.';...
Requisitos previos
Debe tener uno de los siguientes productos instalados para aplicar esta revisión:
-
Microsoft Dynamics NAV 2009 R2
-
Microsoft Dynamics NAV 2009 Service Pack 1
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.