En este artículo se aplica a Microsoft Dynamics NAV de indio (in) de la configuración regional de idioma.
Síntomas
Al ejecutar la función Desliquidar entradas en una factura de compra registrada que tiene un impuesto del servicio para proveedores GTA especificada en la versión de indio de Microsoft Dynamics NAV 2009 R2 y del Service Pack 1 (SP1) de Microsoft Dynamics NAV 2009, recibirá el siguiente mensaje de error:
Documentos no pueden ser no aplicados como crédito de impuesto de servicio ya utilizada.
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, pero 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:
-
Agregue la siguiente variable global en el gen.-línea Post codeunit (12):
-
TempServiceTaxEntry3@1500076: Registro temporal 16473
-
-
Agregue la siguiente variable local en la función UnApplyVendSTEntries en el gen.-línea Post codeunit (12):
-
STEntryDetail2@1500000: Registro 16474
-
-
Cambie el código de la función UnApplyVendSTEntries en el gen.-línea Post codeunit (12) como sigue:
Código existente 1... STaxApplBuffer[1].DELETEALL;
WITH DtldVendLedgEntry2 DO BEGIN
...Código nuevo 1
... STaxApplBuffer[1].DELETEALL;
// Add the following line.
TempServiceTaxEntry3.DELETEALL;
// End of the line.
WITH DtldVendLedgEntry2 DO BEGIN
...Código existente 2
... ServiceTaxMgt.UnApplyVendPmtEntries(STEntryDetail,NextTransactionNo);
// Delete the following line.
Sign := -1;
FillSvcTaxApplication4(STEntryDetail,Sign);
Sign := 1;
FillSvcTaxApplication4(STEntryDetail,Sign);
ServiceTaxEntry.GET(STEntryDetail."Service Tax Entry No.");
IF ServiceTaxEntry."Serv. Tax on Advance Payment" THEN BEGIN
// End of the line.
...Código nuevo 2
... ServiceTaxMgt.UnApplyVendPmtEntries(STEntryDetail,NextTransactionNo);
// Add the following lines.
ServiceTaxEntry.GET(STEntryDetail."Service Tax Entry No.");
ServiceTaxSetup.RESET;
ServiceTaxSetup.SETRANGE(Code,STEntryDetail."Service Tax Group Code");
ServiceTaxSetup.SETRANGE("From Date",0D,STEntryDetail."Posting Date");
TempServiceTaxEntry3.TRANSFERFIELDS(ServiceTaxEntry);
IF NOT STEntryDetail.GTA THEN BEGIN
TempServiceTaxEntry3.INSERT;
Sign := -1;
END ELSE BEGIN
TempServiceTaxEntry3."G/L Account" := STEntryDetail."GL Account";
TempServiceTaxEntry3.INSERT;
Sign := 1;
END;
FillSvcTaxApplication4(STEntryDetail,Sign);
STEntryDetail2 := STEntryDetail;
IF NOT STEntryDetail.GTA THEN
Sign := 1
ELSE BEGIN
IF ServiceTaxSetup.FINDLAST THEN
STEntryDetail2."GL Account" := ServiceTaxSetup."Payables Account (Interim)";
Sign := -1;
END;
FillSvcTaxApplication4(STEntryDetail2,Sign);
IF ServiceTaxEntry."Serv. Tax on Advance Payment" THEN BEGIN
// End of the lines.
...Código existente 3
... ServiceTaxEntry."From Excise" := STEntryDetail."From Excise";
// Delete the following lines.
ServiceTaxSetup.RESET;
ServiceTaxSetup.SETRANGE(Code,STEntryDetail."Service Tax Group Code");
ServiceTaxSetup.SETRANGE("From Date",0D,STEntryDetail."Posting Date");
// End of the lines.
IF ServiceTaxSetup.FINDLAST THEN BEGIN
...Código nuevo 3
... ServiceTaxEntry."From Excise" := STEntryDetail."From Excise";
IF ServiceTaxSetup.FINDLAST THEN BEGIN
... -
Eliminar la variable local siguiente en la función FillSvcTaxApplication4 en el gen.-línea Post codeunit (12):
-
VAR ServiceTaxEntry@1002: Registro 16473
-
-
Cambie el código de la función FillSvcTaxApplication4 en el gen.-línea Post codeunit (12) como sigue:
Código existente... IF Sign < 0 THEN
// Delete the following lines.
STaxApplBuffer[1]."G/L Account" := "GL Account"
ELSE BEGIN
ServiceTaxEntry.GET("Service Tax Entry No.");
STaxApplBuffer[1]."G/L Account" := ServiceTaxEntry."G/L Account";
END;
// End of the lines.
STaxApplBuffer[1]."Amount to Apply (LCY)" := Sign * ("Service Tax Amount" + "Service Tax eCess Amount" +
...Código de sustitución
...IF Sign < 0 THEN
// Add the following lines.
STaxApplBuffer[1]."G/L Account" := "GL Account"
ELSE
STaxApplBuffer[1]."G/L Account" := TempServiceTaxEntry3."G/L Account";
// End of the lines.
STaxApplBuffer[1]."Amount to Apply (LCY)" := Sign * ("Service Tax Amount" + "Service Tax eCess Amount" +
... -
Cambie el código en la función UnApplyVendPmtEntries en el módulo de administración del servicio de impuestos (16471) como sigue:
Código existente 1... WITH STEntryDetail DO BEGIN
// Delete the following lines.
IF ("Service Tax Amount" <> "Remaining Credit") OR ("Service Tax eCess Amount" <> "Remaining Credit (eCess)") OR
("Service Tax SHE Cess Amount" <> "Remaining Credit (SHECess)")
THEN
ERROR(Text16535,"Document No.");
// End of the lines.
STEntryDetail2.RESET;
...Código nuevo 1
... WITH STEntryDetail DO BEGIN
// Add the following lines.
IF GTA THEN BEGIN
IF ("Service Tax Amount" <> "GTA Remaining Credit") OR ("Service Tax eCess Amount" <> "GTA Remaining Credit (eCess)") OR
("Service Tax SHE Cess Amount" <> "GTA Remaining Credit (SHECess)")
THEN
ERROR(Text16535,"Document No.");
END ELSE BEGIN
IF ("Service Tax Amount" <> "Remaining Credit") OR ("Service Tax eCess Amount" <> "Remaining Credit (eCess)") OR
("Service Tax SHE Cess Amount" <> "Remaining Credit (SHECess)")
THEN
ERROR(Text16535,"Document No.");
END;
// End of the lines.
STEntryDetail2.RESET;
...Código existente 2
... STEntryDetail2."Remaining S.T. Base Amount" := - STEntryDetail2."Remaining S.T. Base Amount";
STEntryDetail2.INSERT;
...Código nuevo 2
... STEntryDetail2."Remaining S.T. Base Amount" := - STEntryDetail2."Remaining S.T. Base Amount";
// Add the following lines.
STEntryDetail2."GTA Remaining Credit" := - STEntryDetail2."GTA Remaining Credit";
STEntryDetail2."GTA Remaining Credit (eCess)" := - STEntryDetail2."GTA Remaining Credit (eCess)";
STEntryDetail2."GTA Remaining Credit (SHECess)" := - STEntryDetail2."GTA Remaining Credit (SHECess)";
// End of the lines.
STEntryDetail2.INSERT;
...
Requisitos previos
Debe tener uno de los siguientes productos instalados para aplicar esta revisión:
-
La versión de Microsoft Dynamics NAV 2009 R2 de indio
-
La versión de Service Pack 1 de Microsoft Dynamics NAV 2009 India
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.