Se produce lo siguiente:
-
Se redondean los valores base y cantidad.
-
El número total de líneas son incorrecta y genera el error siguiente al intentar enviar el archivo en la página de AT:
60201201 777777777
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 portuguesa de Microsoft Dynamics NAV 2009 R2
-
La versión del Service Pack 1 (SP1) de Microsoft Dynamics NAV 2009
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:
-
Cambie el código en la función InsertECDeclarationTrailer en la tabla de búfer de archivo de informe de IVA (13380) como sigue:
Existente co de...BEGIN
NewLine;
//NAVPTL005.001,o InsertIntegerValue (89, 2);
// Delete the following line.
InsertIntegerValue (98, 2); //NAVPTL005.001,n
InsertIntegerValue (LineNumber, 9);
PadLinetill134Characters(Blank);
END;
...Código de sustitución
...BEGIN
NewLine;
//NAVPTL005.001,o InsertIntegerValue (89, 2);
// Add the following lines.
//PT355807,o InsertIntegerValue (98, 2); //NAVPTL005.001,n
InsertIntegerValue (89, 2); //PT355807,n
// End of the added lines.
InsertIntegerValue (LineNumber, 9);
PadLinetill134Characters(Blank);
END;
... -
Cambie el código en la función InsertAnnex4041CustomerLine en la tabla de búfer de archivo de informe de IVA (13380) como sigue:
Código existente...InsertIntegerValue (pLineNumber, 5);
InsertTextValue (pVATAnnexSetup."Tax Authority Code",2,Blank);
InsertTextValue (pVATRegNo, 9,Blank);
// Delete the following lines.
InsertIntegerValue(ABS(ROUND(pVATEntry.Base,1,'<')*100),12);
InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
// End of the deleted lines.
InsertTextValue (Blank,92,Blank);
END;
...Código de sustitución
...InsertIntegerValue (pLineNumber, 5);
InsertTextValue (pVATAnnexSetup."Tax Authority Code",2,Blank);
InsertTextValue (pVATRegNo, 9,Blank);
// Add the following lines.
//PT355807,o InsertIntegerValue(ABS(ROUND(pVATEntry.Base,1,'<')*100),12);
//PT355807,o InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
InsertIntegerValue(ABS(ROUND(pVATEntry.Base*100,1,'<')),12); //PT355807,n
InsertIntegerValue(ABS(ROUND(pVATEntry.Amount*100,1,'<')),12); //PT355807,n
// End of the added lines.
InsertTextValue (Blank,92,Blank);
END;
... -
Cambie el código en la función InsertAnnex4041DocumentLine en la tabla de búfer de archivo de informe de IVA (13380) como sigue:
Código existente...InsertIntegerValue (pLineNumber, 5);
InsertTextValue (pVATAnnexSetup."Tax Authority Code",2,Blank);
InsertTextValue(pDocNo,13,Blank);
// Delete the following line.
InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
InsertTextValue (Blank,100,Blank);
END;
...Código de sustitución
...InsertIntegerValue (pLineNumber, 5);
InsertTextValue (pVATAnnexSetup."Tax Authority Code",2,Blank);
InsertTextValue(pDocNo,13,Blank);
// Add the following lines.
//PT355807,o InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
InsertIntegerValue(ABS(ROUND(pVATEntry.Amount*100,1,'<')),12); //PT355807,n
// End of the added lines.
InsertTextValue (Blank,100,Blank);
END;
... -
Cambie el código en la función InsertAnnex4041ReasonLine en la tabla de búfer de archivo de informe de IVA (13380) como sigue:
Código existente 1...InsertTextValue (Blank,100,Blank);
END;
// Delete the following lines.
PROCEDURE InsertAnnex4041ReasonLine@1000000003(pVATAnnexSetup@1000000000 : Record 13386;pVATEntry@1000000003 : Record 254);
BEGIN
NewLine;
InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
IF pVATAnnexSetup.Frame = pVATAnnexSetup.Frame::"2" THEN BEGIN
InsertIntegerValue(ABS(ROUND(pVATEntry.Base,1,'<')*100),12);
InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
InsertTextValue (Blank,50,Blank);
// End of the deleted lines.
END;
IF pVATAnnexSetup.Frame = pVATAnnexSetup.Frame::"3" THEN BEGIN
...Código nuevo 1
...InsertTextValue (Blank,100,Blank);
END;
// Add the following lines.
PROCEDURE InsertAnnex4041ReasonLine@1000000003(pVATAnnexSetup@1000000000 : Record 13386;pVATEntry@1000000003 : Record 254;LineNo@1000000001 : Integer);
BEGIN
//PT355807,o NewLine;
//PT355807,o InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
IF pVATAnnexSetup.Frame = pVATAnnexSetup.Frame::"2" THEN BEGIN
//PT355807,o InsertIntegerValue(ABS(ROUND(pVATEntry.Base,1,'<')*100),12);
//PT355807,o InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
//PT355807,o InsertTextValue (Blank,50,Blank);
//PT355807,sn
IF (pVATAnnexSetup.SubSection = 'a') OR (pVATAnnexSetup.SubSection = '') THEN BEGIN
NewLine;
InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
END;
IF (pVATAnnexSetup.SubSection = 'b') AND (LineNo=1) THEN BEGIN
NewLine;
InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
InsertIntegerValue(0,24);
END;
InsertIntegerValue(ABS(ROUND(pVATEntry.Base*100,1,'<')),12);
InsertIntegerValue(ABS(ROUND(pVATEntry.Amount*100,1,'<')),12);
//PT355807,en
// End of the added lines.
END;
IF pVATAnnexSetup.Frame = pVATAnnexSetup.Frame::"3" THEN BEGIN
...Código existente 2
...IF pVATAnnexSetup.Frame = pVATAnnexSetup.Frame::"3" THEN BEGIN
IF (pVATAnnexSetup.SubSection = 'a') OR (pVATAnnexSetup.SubSection = 'A') THEN BEGIN
// Delete the following lines.
InsertIntegerValue(ABS(ROUND(pVATEntry.Base,1,'<')*100),12);
InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
END;
IF (pVATAnnexSetup.SubSection = 'b') OR (pVATAnnexSetup.SubSection = 'B') THEN BEGIN
InsertIntegerValue(ABS(ROUND(pVATEntry.Base,1,'<')*100),12);
InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
// End of the deleted lines.
END;
END;
...Código nuevo 2
...IF pVATAnnexSetup.Frame = pVATAnnexSetup.Frame::"3" THEN BEGIN
IF (pVATAnnexSetup.SubSection = 'a') OR (pVATAnnexSetup.SubSection = 'A') THEN BEGIN
// Add the following lines.
//PT355807,o InsertIntegerValue(ABS(ROUND(pVATEntry.Base,1,'<')*100),12);
//PT355807,o InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
//PT355807,sn
IF (LineNo=1) THEN BEGIN
NewLine;
InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
InsertIntegerValue(0,24);
END;
InsertIntegerValue(ABS(ROUND(pVATEntry.Base*100,1,'<')),12);
InsertIntegerValue(ABS(ROUND(pVATEntry.Amount*100,1,'<')),12);
//PT355807,en
END;
IF (pVATAnnexSetup.SubSection = 'b') OR (pVATAnnexSetup.SubSection = 'B') THEN BEGIN
//PT355807,o InsertIntegerValue(ABS(ROUND(pVATEntry.Base,1,'<')*100),12);
//PT355807,o InsertIntegerValue(ABS(ROUND(pVATEntry.Amount,1,'<')*100),12);
//PT355807,sn
IF (LineNo=1) THEN BEGIN
NewLine;
InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
InsertIntegerValue(0,48);
END;
InsertIntegerValue(ABS(ROUND(pVATEntry.Base*100,1,'<')),12);
InsertIntegerValue(ABS(ROUND(pVATEntry.Amount*100,1,'<')),12);
//PT355807,en
// End of the added lines.
END;
END;
...Código existente 3
...END;
END;
// Delete the following lines.
InsertTextValue (Blank,48,Blank);;
END;
PROCEDURE LastVATAnnex40Line@1000000006(pVATregNo@1000000000 : Text[9];pResumes@1000000001 : ARRAY [10] OF Integer);
BEGIN
// End of the deleted lines.
NewLine;
InsertTextValue ('96',2,Blank);
InsertIntegerValue (1, 5);
...Código nuevo 3
...END;
END;
// Add the following lines.
//PT355807,o InsertTextValue (Blank,48,Blank);
END;
PROCEDURE LastVATAnnex40Line@1000000006(pTotalAmount@1000000002 : Decimal;pVATregNo@1000000000 : Text[9];pResumes@1000000001 : ARRAY [10] OF Integer);
BEGIN
//PT355807,o NewLine;
InsertIntegerValue(ABS(ROUND(pTotalAmount*100,1,'<')),12);
InsertTextValue (Blank,48,Blank);
InsertVAT40LastLine(24);
// End of the added lines.
NewLine;
InsertTextValue ('96',2,Blank);
InsertIntegerValue (1, 5);
... -
Cambie el código en la función LastVATAnnex40Line en la tabla de búfer de archivo de informe de IVA (13380) como sigue:
Código existente 1...InsertTextValue (Blank,118,Blank);
NewLine;
InsertTextValue ('69',2,Blank);
// Delete the following line.
InsertIntegerValue (pResumes[1], 5);
InsertIntegerValue (pResumes[2], 5);
InsertIntegerValue (pResumes[3], 5);
InsertIntegerValue (pResumes[4], 5);
...Código nuevo 1
...InsertTextValue (Blank,118,Blank);
NewLine;
InsertTextValue ('69',2,Blank);
// Add the following line.
//PT355807,o InsertIntegerValue (pResumes[1], 5);
InsertIntegerValue (pResumes[2], 5);
InsertIntegerValue (pResumes[3], 5);
InsertIntegerValue (pResumes[4], 5);
...Código existente 2
...InsertIntegerValue (pResumes[7], 5);
InsertIntegerValue (pResumes[8], 5);
InsertIntegerValue (1, 5);
END;
PROCEDURE LastVATAnnex41Line@1000000004(pVATAnnexSetup@1000000001 : Record 13386;pTotalAmount@1000000000 : Decimal;pResumes@1000000002 : ARRAY [10] OF Integer);
...Código nuevo 2
...InsertIntegerValue (pResumes[7], 5);
InsertIntegerValue (pResumes[8], 5);
InsertIntegerValue (1, 5);
// Add the following line.
InsertTextValue (Blank,94,Blank); //PT355807,n
END;
PROCEDURE LastVATAnnex41Line@1000000004(pVATAnnexSetup@1000000001 : Record 13386;pTotalAmount@1000000000 : Decimal;pResumes@1000000002 : ARRAY [10] OF Integer);
... -
Cambie el código en la función LastVATAnnex41Line en la tabla de búfer de archivo de informe de IVA (13380) como sigue:
Código existente 1...PROCEDURE LastVATAnnex41Line@1000000004(pVATAnnexSetup@1000000001 : Record 13386;pTotalAmount@1000000000 : Decimal;pResumes@1000000002 : ARRAY [10] OF Integer);
BEGIN
// Delete the following lines.
NewLine;
InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
InsertIntegerValue(ABS(ROUND(pTotalAmount,1,'<')*100),12);
NewLine;
InsertTextValue ('89',2,Blank);
InsertIntegerValue (pResumes[1], 5);
// End of the deleted lines.
InsertIntegerValue (pResumes[2], 5);
InsertIntegerValue (pResumes[3], 5);
InsertIntegerValue (pResumes[4], 5);
...Código nuevo 1
...PROCEDURE LastVATAnnex41Line@1000000004(pVATAnnexSetup@1000000001 : Record 13386;pTotalAmount@1000000000 : Decimal;pResumes@1000000002 : ARRAY [10] OF Integer);
BEGIN
// Add the following lines.
//PT355807,o NewLine;
//PT355807,o InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
InsertIntegerValue(ABS(ROUND(pTotalAmount*100,1,'<')),12);
InsertTextValue (Blank,72,Blank);
InsertVAT41LastLine(24);
NewLine;
InsertTextValue ('89',2,Blank);
//PT355807,o InsertIntegerValue (pResumes[1], 5);
// End of the added lines.
InsertIntegerValue (pResumes[2], 5);
InsertIntegerValue (pResumes[3], 5);
InsertIntegerValue (pResumes[4], 5);
...Código existente 2
...InsertIntegerValue (pResumes[4], 5);
InsertIntegerValue (pResumes[5], 5);
InsertIntegerValue (pResumes[6], 5);
END;
BEGIN
...Código nuevo 2
...InsertIntegerValue (pResumes[4], 5);
InsertIntegerValue (pResumes[5], 5);
InsertIntegerValue (pResumes[6], 5);
// Add the following lines.
InsertIntegerValue (pResumes[7], 5); //PT355807,n
InsertTextValue (Blank,104,Blank); //PT355807,n
END;
PROCEDURE InsertVAT40LastLine@1000000005(Size@1000000000 : Integer);
BEGIN
//PT355807,sn
FIND('+');
IF STRLEN("Line Value") <> 134 THEN BEGIN
"Line Value" := COPYSTR("Line Value",1,50) + CONVERTSTR (FORMAT (0, Size, 0), Blank, HeadingZero) + COPYSTR("Line Value",51);
MODIFY;
END;
//PT355807,en
END;
PROCEDURE InsertVAT41LastLine@1000000007(Size@1000000000 : Integer);
BEGIN
//PT355807,sn
FIND('+');
IF STRLEN("Line Value") <> 134 THEN BEGIN
"Line Value" := COPYSTR("Line Value",1,26) + CONVERTSTR (FORMAT (0, Size, 0), Blank, HeadingZero) + COPYSTR("Line Value",27);
MODIFY;
END;
//PT355807,en
END;
PROCEDURE LastVATAnnex40Line2@1000000009(pVATAnnexSetup@1000000003 : Record 13386;pTotalAmount@1000000002 : Decimal;pVATregNo@1000000000 : Text[9];pResumes@1000000001 : ARRAY [10] OF Integer);
BEGIN
//PT355807,sn
NewLine;
InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
InsertIntegerValue(0,72);
InsertIntegerValue(ABS(ROUND(pTotalAmount*100,1,'<')),12);
InsertTextValue (Blank,48,Blank);
NewLine;
InsertTextValue ('96',2,Blank);
InsertIntegerValue (1, 5);
InsertTextValue(pVATregNo,9,Blank);
InsertTextValue (Blank,118,Blank);
NewLine;
InsertTextValue ('69',2,Blank);
InsertIntegerValue (pResumes[2], 5);
InsertIntegerValue (pResumes[3], 5);
InsertIntegerValue (pResumes[4], 5);
InsertIntegerValue (pResumes[5], 5);
InsertIntegerValue (pResumes[6], 5);
InsertIntegerValue (pResumes[7], 5);
InsertIntegerValue (pResumes[8], 5);
InsertIntegerValue (1, 5);
InsertTextValue (Blank,92,Blank);
//PT355807,en
END;
PROCEDURE LastVATAnnex41Line2@1000000008(pVATAnnexSetup@1000000001 : Record 13386;pTotalAmount@1000000000 : Decimal;pResumes@1000000002 : ARRAY [10] OF Integer);
BEGIN
//PT355807,sn
NewLine;
InsertTextValue (pVATAnnexSetup."Record Type",2,Blank);
InsertIntegerValue(0,48);
InsertIntegerValue(ABS(ROUND(pTotalAmount*100,1,'<')),12);
InsertTextValue (Blank,72,Blank);
NewLine;
InsertTextValue ('89',2,Blank);
InsertIntegerValue (pResumes[2], 5);
InsertIntegerValue (pResumes[3], 5);
InsertIntegerValue (pResumes[4], 5);
InsertIntegerValue (pResumes[5], 5);
InsertIntegerValue (pResumes[6], 5);
InsertIntegerValue (pResumes[7], 5);
InsertTextValue (Blank,102,Blank);
//NAVPTL005.002,en
// End of the added lines.
END;
BEGIN
... -
Cambie el código en el informe de declaración de IVA (PT) (13398) como sigue:
Código existente 1...IF recVATAnnexSetup."Record Type" = LastRecordType THEN
LineNo += 1
ELSE BEGIN
//Delete the following lines.
IndiceArray += 1;
ResumeLines[IndiceArray] := LineNo;
LastRecordType := recVATAnnexSetup."Record Type";
LineNo := 1;
// End of the deleted lines.
END;
VATRepBuffer.InsertAnnex4041CustomerLine(recVATAnnexSetup,LineNo,"VAT Registration No.","VAT Entry Customer");
...Código nuevo 1
...IF recVATAnnexSetup."Record Type" = LastRecordType THEN
LineNo += 1
ELSE BEGIN
// Add the following lines.
//PT355807,o IndiceArray += 1;
//PT355807,sn
EVALUATE(recType,recVATAnnexSetup."Record Type");
IF AnnexFilter = 40 THEN
IndiceArray := recType - 60
ELSE
IndiceArray := recType - 80;
//PT355807,en
ResumeLines[IndiceArray] := LineNo;
LastRecordType := recVATAnnexSetup."Record Type";
LineNo := 1;
// End of the added lines.
END;
VATRepBuffer.InsertAnnex4041CustomerLine(recVATAnnexSetup,LineNo,"VAT Registration No.","VAT Entry Customer");
...Código existente 2
...IF recVATAnnexSetup."Record Type" = LastRecordType THEN
LineNo += 1
ELSE BEGIN
// Delete the following lines.
IndiceArray += 1;
ResumeLines[IndiceArray] := LineNo;
LastRecordType := recVATAnnexSetup."Record Type";
LineNo := 1;
// End of the deleted lines.
END;
VATRepBuffer.InsertAnnex4041DocumentLine(recVATAnnexSetup,LineNo,"External Document No.","VAT Entry Document No.");
...Código nuevo 2
...IF recVATAnnexSetup."Record Type" = LastRecordType THEN
LineNo += 1
ELSE BEGIN
// Add the following lines.
//PT355807,o IndiceArray += 1;
//PT355807,sn
EVALUATE(recType,recVATAnnexSetup."Record Type");
IF AnnexFilter = 40 THEN
IndiceArray := recType - 60
ELSE
IndiceArray := recType - 80;
//PT355807,en
ResumeLines[IndiceArray] := LineNo;
LastRecordType := recVATAnnexSetup."Record Type";
LineNo := 1;
// End of the added lines.
END;
VATRepBuffer.InsertAnnex4041DocumentLine(recVATAnnexSetup,LineNo,"External Document No.","VAT Entry Document No.");
...Código existente 3
...OnPostDataItem=BEGIN
CLEAR(recVATAnnexSetup);
// Delete the following lines.
recVATAnnexSetup.SETRANGE("Reason Code", "Reason Code");
IF recVATAnnexSetup.FINDFIRST THEN
IF AnnexFilter = 41 THEN
VATRepBuffer.LastVATAnnex41Line(recVATAnnexSetup,TotalVATAnnexAmount,ResumeLines);
// End of the deleted lines.
END;
TotalFields=Base,Amount;
...Código nuevo 3
...OnPostDataItem=BEGIN
CLEAR(recVATAnnexSetup);
// Add the following lines.
booTotal := FALSE; //PT355807,n
recVATAnnexSetup.SETRANGE("Reason Code", "Reason Code");
//PT355807,o IF recVATAnnexSetup.FINDFIRST THEN
//PT355807,o IF AnnexFilter = 41 THEN
//PT355807,o VATRepBuffer.LastVATAnnex41Line(recVATAnnexSetup,TotalVATAnnexAmount,ResumeLines);
//PT355807,sn
IF recVATAnnexSetup.FINDFIRST THEN BEGIN
IF AnnexFilter = 41 THEN BEGIN
booTotal := TRUE;
VATRepBuffer.LastVATAnnex41Line(recVATAnnexSetup,TotalVATAnnexAmount,ResumeLines);
END;
IF AnnexFilter = 40 THEN BEGIN
booTotal := TRUE;
VATRepBuffer.LastVATAnnex40Line(TotalVATAnnexAmount,FORMAT(FiscalNo),ResumeLines);
END;
END;
//PT355807,en
// End of the added lines.
END;
TotalFields=Base,Amount;
...Código existente 4
...IF recVATAnnexSetup."Record Type" = LastRecordType THEN
LineNo += 1
ELSE BEGIN
// Delete the following lines.
IndiceArray += 1;
ResumeLines[IndiceArray] := LineNo;
LastRecordType := recVATAnnexSetup."Record Type";
LineNo := 1;
// End of the deleted lines.
END;
TotalVATAnnexBase += Base;
...Código nuevo 4
...IF recVATAnnexSetup."Record Type" = LastRecordType THEN
LineNo += 1
ELSE BEGIN
// Add the following lines.
//PT355807,o IndiceArray += 1;
//PT355807,sn
EVALUATE(recType,recVATAnnexSetup."Record Type");
IF AnnexFilter = 40 THEN
IndiceArray := recType - 60
ELSE
IndiceArray := recType - 80;
//PT355807,en
ResumeLines[IndiceArray] := LineNo;
LastRecordType := recVATAnnexSetup."Record Type";
LineNo := 1;
// End of the added lines.
END;
TotalVATAnnexBase += Base;
...5 el código existente
...RegistersNumber += 1;
// Delete the following line.
VATRepBuffer.InsertAnnex4041ReasonLine(recVATAnnexSetup,"VAT Entry Reason Code");
END;
}
...Código de reemplazo 5
...RegistersNumber += 1;
+ //PT355807,o VATRepBuffer.InsertAnnex4041ReasonLine(recVATAnnexSetup,"VAT Entry Reason Code");
+ VATRepBuffer.InsertAnnex4041ReasonLine(recVATAnnexSetup,"VAT Entry Reason Code",LineNo); //PT355807,n
END;
}6 el código existente
...WHERE(Number=CONST(1));
DataItemVarName=TotalInteger;
OnAfterGetRecord=BEGIN
// Delete the following lines.
IF AnnexFilter = 40 THEN
VATRepBuffer.LastVATAnnex40Line(FORMAT(FiscalNo),ResumeLines);
// End of the deleted lines.
END;
}
...Código de reemplazo 6
...WHERE(Number=CONST(1));
DataItemVarName=TotalInteger;
OnAfterGetRecord=BEGIN
// Add the following lines.
//PT355807,o IF AnnexFilter = 40 THEN
//PT355807,o VATRepBuffer.LastVATAnnex40Line(FORMAT(FiscalNo),ResumeLines);
//PT355807,sn
IF NOT booTotal THEN BEGIN
recVATAnnexSetup2.RESET;
recVATAnnexSetup2.SETFILTER(Annex, FORMAT(AnnexFilter));
IF recVATAnnexSetup2.FINDLAST THEN BEGIN
IF AnnexFilter = 40 THEN
VATRepBuffer.LastVATAnnex40Line2(recVATAnnexSetup2,TotalVATAnnexAmount,FORMAT(FiscalNo),ResumeLines);
IF AnnexFilter = 41 THEN
VATRepBuffer.LastVATAnnex41Line2(recVATAnnexSetup2,TotalVATAnnexAmount,ResumeLines);
END;
END;
//PT355807,en
// End of the added lines.
END;
}
...Código existente 7
...LastRecordType@1000000009 : Text[2];
TotalVATAnnexBase@1000000005 : Decimal;
TotalVATAnnexAmount@1000000006 : Decimal;
PROCEDURE CalcLineTotal2C@1110001(VATStmtLine2@1110000 : Record 256;Level@1110001 : Integer) : Boolean;
BEGIN
...Código de sustitución 7
...LastRecordType@1000000009 : Text[2];
TotalVATAnnexBase@1000000005 : Decimal;
TotalVATAnnexAmount@1000000006 : Decimal;
// Add the following lines.
booTotal@1000000013 : Boolean;
recVATAnnexSetup2@1000000014 : Record 13386;
recType@1000000015 : Integer;
// End of the added lines.
PROCEDURE CalcLineTotal2C@1110001(VATStmtLine2@1110000 : Record 256;Level@1110001 : Integer) : Boolean;
BEGIN
...
Requisitos previos
Debe tener uno de los siguientes productos instalados para aplicar esta revisión:
-
La versión portuguesa de Microsoft Dynamics NAV 2009 R2
-
La versión portuguesa 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.