En este artículo se aplica a Microsoft Dynamics NAV para la región de Europa del este (EE).
Síntomas
No se puede procesar anticipo sobreprecio derivado como se esperaba en la versión Europea oriental de Microsoft Dynamics NAV 2009 R2. Al procesar una carta de reembolso anticipado para un cliente, no puede registrar reembolsos como pago por adelantado. Por lo tanto, no puede devolver el dinero al cliente.
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 o de 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:
- Cambie el código en el se aplica-a No. - OnLookup desencadenador en la tabla grupo contable Journal Line (81) como sigue:
Código existente 1Código nuevo 1...
IF CustLedgEntry.FIND('-') THEN;
CustLedgEntry.SETRANGE(Positive);
END;
ApplyCustEntries.SetGenJnlLine(Rec,GenJnlLine.FIELDNO("Applies-to Doc. No."));
ApplyCustEntries.SETTABLEVIEW(CustLedgEntry);
ApplyCustEntries.SETRECORD(CustLedgEntry);
...Código existente 2...
IF CustLedgEntry.FIND('-') THEN;
CustLedgEntry.SETRANGE(Positive);
END;
// Add the following lines.
IF "Prepayment Type" = "Prepayment Type"::Advance THEN
CustLedgEntry.SETRANGE("Prepayment Type","Prepayment Type"::Advance)
ELSE
CustLedgEntry.SETFILTER("Prepayment Type",'<>%1',GenJnlLine."Prepayment Type"::Advance);
//End of the lines.
ApplyCustEntries.SetGenJnlLine(Rec,GenJnlLine.FIELDNO("Applies-to Doc. No."));
ApplyCustEntries.SETTABLEVIEW(CustLedgEntry);
ApplyCustEntries.SETRECORD(CustLedgEntry);
...Código nuevo 2...
IF VendLedgEntry.FIND('-') THEN;
VendLedgEntry.SETRANGE(Positive);
END;
ApplyVendEntries.SetGenJnlLine(Rec,GenJnlLine.FIELDNO("Applies-to Doc. No."));
ApplyVendEntries.SETTABLEVIEW(VendLedgEntry);
ApplyVendEntries.SETRECORD(VendLedgEntry);
......
IF VendLedgEntry.FIND('-') THEN;
VendLedgEntry.SETRANGE(Positive);
END;
// Add the following lines.
IF "Prepayment Type" = "Prepayment Type"::Advance THEN
VendLedgEntry.SETRANGE("Prepayment Type","Prepayment Type"::Advance)
ELSE
VendLedgEntry.SETFILTER("Prepayment Type",'<>%1',GenJnlLine."Prepayment Type"::Advance);
//End of the lines.
ApplyVendEntries.SetGenJnlLine(Rec,GenJnlLine.FIELDNO("Applies-to Doc. No."));
ApplyVendEntries.SETTABLEVIEW(VendLedgEntry);
ApplyVendEntries.SETRECORD(VendLedgEntry);
... - Cambie el código en la función UpdatePrepmtType en la tabla grupo contable Journal Line (81) como sigue:
Código existenteCódigo de sustitución...
GLSetup.GET;
GLSetup.TESTFIELD("Prepayment Type");
"Prepayment Type" := GLSetup."Prepayment Type";
END ELSE
"Prepayment Type" := "Prepayment Type"::" ";
......
GLSetup.GET;
GLSetup.TESTFIELD("Prepayment Type");
"Prepayment Type" := GLSetup."Prepayment Type";
// Add the following lines.
IF NOT ("Document Type" IN ["Document Type"::Refund,"Document Type"::Payment]) THEN
FIELDERROR(Prepayment);
//End of the lines.
END ELSE
"Prepayment Type" := "Prepayment Type"::" ";
... - Cambie la definición del campo Tipo movimiento en la tabla de vínculos de avance (26590) como sigue:
Definición existente
...
OptionString=Importe inicial, enlace a la carta
...
Definición de reemplazo
...
OptionString=Importe inicial, enlace a la carta, aplicación
... - Elimine la definición SourceTableView bajo la forma de liquidar movs (232).
- Cambie el código en la función SetApplyingCustLedgEntry en el formulario Movs (232) como sigue:
Código existenteCódigo de sustitución...
CalcApplnAmount;
END;
END;
......
CalcApplnAmount;
END;
END;
// Add the following line.
SetAdvanceFilter;
... - Cambie el código en la función FindApplyingEntry en el formulario Movs (232) como sigue:
Código existenteCódigo de sustitución...
ApplyingAmount := CustLedgEntry."Remaining Amount";
ApplnDate := CustLedgEntry."Posting Date";
ApplnCurrencyCode := CustLedgEntry."Currency Code";
END;
CalcApplnAmount;
......
ApplyingAmount := CustLedgEntry."Remaining Amount";
ApplnDate := CustLedgEntry."Posting Date";
ApplnCurrencyCode := CustLedgEntry."Currency Code";
// Add the following line.
SetAdvanceFilter;
END;
CalcApplnAmount;
... - Cree una nueva función en el formulario Movs (232) como sigue:
LOCAL PROCEDURE SetAdvanceFilter@1470011();
BEGIN
IF ApplyingCustLedgEntry."Prepayment Type" = ApplyingCustLedgEntry."Prepayment Type"::Advance THEN
SETRANGE("Prepayment Type","Prepayment Type"::Advance)
ELSE
SETFILTER("Prepayment Type",'<>%1',"Prepayment Type"::Advance);
END; - Elimine la definición SourceTableView bajo la forma de liquidar movimientos de proveedor (233).
- Cambie el código en la función SetApplyingVendLedgEntry en la forma de liquidar movimientos de proveedor (233) como sigue:
Código existenteCódigo de sustitución...
CalcApplnAmount;
END;
END;
......
CalcApplnAmount;
END;
END;
// Add the following line.
SetAdvanceFilter;
... - Cambie el código en la función FindApplyingEntry en la forma de liquidar movimientos de proveedor (233) como sigue:
Código existenteCódigo de sustitución...
ApplyingAmount := VendLedgEntry."Remaining Amount";
ApplnDate := VendLedgEntry."Posting Date";
ApplnCurrencyCode := VendLedgEntry."Currency Code";
END;
CalcApplnAmount;
......
ApplyingAmount := VendLedgEntry."Remaining Amount";
ApplnDate := VendLedgEntry."Posting Date";
ApplnCurrencyCode := VendLedgEntry."Currency Code";
// Add the following line.
SetAdvanceFilter;
END;
CalcApplnAmount;
... - Cree una nueva función en la forma de liquidar movimientos de proveedor (233) como sigue:
LOCAL PROCEDURE SetAdvanceFilter@1470011();
BEGIN
IF ApplyingVendLedgEntry."Prepayment Type" = ApplyingVendLedgEntry."Prepayment Type"::Advance THEN
SETRANGE("Prepayment Type","Prepayment Type"::Advance)
ELSE
SETFILTER("Prepayment Type",'<>%1',"Prepayment Type"::Advance);
END; - Eliminar la siguiente variable global en el gen.-línea Post codeunit (12):
- Nombre: Text26500
- TextConst: ' ENU = ventas %1 %2 no se puede aplicar manualmente.'
- Cambie el código de la función ApplyCustLedgEntry en el gen.-línea Post codeunit (12) como sigue:
Código existente 1Código nuevo 1...
THEN
EXIT;
// Delete the following lines.
IF NOT GenJnlLine."System-Created Entry" AND (GenJnlLine."Applies-to ID" <> '') AND
(NewCVLedgEntryBuf."Prepayment Type" = NewCVLedgEntryBuf."Prepayment Type"::Advance)
THEN
ERROR(Text26500,NewCVLedgEntryBuf."Document Type",NewCVLedgEntryBuf."Document No.");
// End of the lines.
PmtTolAmtToBeApplied := 0;
NewRemainingAmtBeforeAppln := NewCVLedgEntryBuf."Remaining Amount";
NewCVLedgEntryBuf2 := NewCVLedgEntryBuf;
...Código existente 2...
THEN
EXIT;
PmtTolAmtToBeApplied := 0;
NewRemainingAmtBeforeAppln := NewCVLedgEntryBuf."Remaining Amount";
NewCVLedgEntryBuf2 := NewCVLedgEntryBuf;
...Código nuevo 2...
OldCustLedgEntry.FINDFIRST;
OldCustLedgEntry.TESTFIELD(Positive,NOT NewCVLedgEntryBuf.Positive);
IF NOT GenJnlLine."System-Created Entry" THEN BEGIN
// Delete the following lines.
IF NewCVLedgEntryBuf."Prepayment Type" = NewCVLedgEntryBuf."Prepayment Type"::Advance THEN
ERROR(Text26500,NewCVLedgEntryBuf."Document Type",NewCVLedgEntryBuf."Document No.");
IF OldCustLedgEntry."Prepayment Type" = OldCustLedgEntry."Prepayment Type"::Advance THEN
ERROR(Text26500,OldCustLedgEntry."Document Type",OldCustLedgEntry."Document No.");
// End of the lines.
END;
IF OldCustLedgEntry."Posting Date" > ApplyingDate THEN
ApplyingDate := OldCustLedgEntry."Posting Date";
...Código existente 3...
OldCustLedgEntry.FINDFIRST;
OldCustLedgEntry.TESTFIELD(Positive,NOT NewCVLedgEntryBuf.Positive);
IF NOT GenJnlLine."System-Created Entry" THEN BEGIN
// Add the following lines.
IF GenJnlLine."Prepayment Type" = GenJnlLine."Prepayment Type"::Advance THEN
OldCustLedgEntry.TESTFIELD("Prepayment Type",OldCustLedgEntry."Prepayment Type"::Advance);
IF OldCustLedgEntry."Prepayment Type" = OldCustLedgEntry."Prepayment Type"::Advance THEN
GenJnlLine.TESTFIELD("Prepayment Type",GenJnlLine."Prepayment Type"::Advance);
//End of the lines.
END;
IF OldCustLedgEntry."Posting Date" > ApplyingDate THEN
ApplyingDate := OldCustLedgEntry."Posting Date";
...Código nuevo 3...
OldCustLedgEntry.SETRANGE("Currency Code",NewCVLedgEntryBuf."Currency Code");
IF OldCustLedgEntry.FINDSET(FALSE,FALSE) THEN
REPEAT
// Delete the following lines.
IF (OldCustLedgEntry."Prepayment Type" <> OldCustLedgEntry."Prepayment Type"::Advance) OR
(OldCustLedgEntry."Applies-to ID" <> '')
THEN
// End of the lines.
IF GenJnlApply.CheckAgainstApplnCurrency(
NewCVLedgEntryBuf."Currency Code",
OldCustLedgEntry."Currency Code",
......
OldCustLedgEntry.SETRANGE("Currency Code",NewCVLedgEntryBuf."Currency Code");
IF OldCustLedgEntry.FINDSET(FALSE,FALSE) THEN
REPEAT
// Add the following lines.
IF NOT GenJnlLine."System-Created Entry" THEN BEGIN
IF GenJnlLine."Prepayment Type" = GenJnlLine."Prepayment Type"::Advance THEN
OldCustLedgEntry.TESTFIELD("Prepayment Type",OldCustLedgEntry."Prepayment Type"::Advance);
IF OldCustLedgEntry."Prepayment Type" = OldCustLedgEntry."Prepayment Type"::Advance THEN
GenJnlLine.TESTFIELD("Prepayment Type",GenJnlLine."Prepayment Type"::Advance);
END;
//End of the lines.
IF GenJnlApply.CheckAgainstApplnCurrency(
NewCVLedgEntryBuf."Currency Code",
OldCustLedgEntry."Currency Code",
... - Agregar una nueva variable local en la función CalcApplication en el gen.-línea Post codeunit (12) y, a continuación, especificar la variable como sigue:
- Nombre: OldDtldCVLedgEntryBuf
- Tipo de datos: registro
- Subtipo: detallada CV mov. Búfer de entrada (383)
- Cambie el código de la función CalcApplication en el gen.-línea Post codeunit (12) como sigue:
Código existente 1Código nuevo 1...
OldCVLedgEntryBuf."Open For Advance Letter" := FALSE;
END ELSE
AllApplied := FALSE;
InitNewCVLedgEntry(DtldCVLedgEntryBuf,GenJnlLine);
InitOldCVLedgEntry(DtldCVLedgEntryBuf,NewCVLedgEntryBuf);
...Código existente 2...
OldCVLedgEntryBuf."Open For Advance Letter" := FALSE;
END ELSE
AllApplied := FALSE;
// Add the following line.
OldDtldCVLedgEntryBuf := DtldCVLedgEntryBuf;
InitNewCVLedgEntry(DtldCVLedgEntryBuf,GenJnlLine);
InitOldCVLedgEntry(DtldCVLedgEntryBuf,NewCVLedgEntryBuf);
...Código nuevo 2...
NewCVLedgEntryBuf.Prepayment AND (NewCVLedgEntryBuf."Prepayment Type" = NewCVLedgEntryBuf."Prepayment Type"::Advance);
InsertDtldCVLedgEntry(DtldCVLedgEntryBuf,NewCVLedgEntryBuf,FALSE);
// Delete the following line.
NewCVLedgEntryBuf.Open := NewCVLedgEntryBuf."Remaining Amount" <> 0;
IF NOT NewCVLedgEntryBuf.Open AND NOT AllApplied THEN BEGIN
NewCVLedgEntryBuf."Closed by Entry No." := OldCVLedgEntryBuf."Entry No.";
NewCVLedgEntryBuf."Closed at Date" := GenJnlLine."Posting Date";
...Código existente 3...
NewCVLedgEntryBuf.Prepayment AND (NewCVLedgEntryBuf."Prepayment Type" = NewCVLedgEntryBuf."Prepayment Type"::Advance);
InsertDtldCVLedgEntry(DtldCVLedgEntryBuf,NewCVLedgEntryBuf,FALSE);
// Add the following lines.
IF DtldCVLedgEntryBuf.Advance AND
OldDtldCVLedgEntryBuf.Advance AND
(NOT GenJnlLine."System-Created Entry" OR
(GenJnlLine."System-Created Entry" AND
(GenJnlLine."Applies-to Doc. No." = '')))
THEN
IF (NewCVLedgEntryBuf."Document Type" IN [DtldCVLedgEntryBuf."Document Type"::Refund,
DtldCVLedgEntryBuf."Document Type"::Payment]) AND
(OldCVLedgEntryBuf."Document Type" IN [DtldCVLedgEntryBuf."Document Type"::Refund,
DtldCVLedgEntryBuf."Document Type"::Payment])
THEN
IF (DtldCVLedgEntryBuf."Document Type" = DtldCVLedgEntryBuf."Document Type"::Payment) THEN
SalesPostAdvances.InsertTempApplnAdvanceLink(DtldCVLedgEntryBuf."Entry No.")
ELSE
SalesPostAdvances.InsertTempApplnAdvanceLink(OldDtldCVLedgEntryBuf."Entry No.");
NewCVLedgEntryBuf.Open := NewCVLedgEntryBuf."Remaining Amount" <> 0;
NewCVLedgEntryBuf."Open For Advance Letter" := NewCVLedgEntryBuf.Open;
//End of the lines.
IF NOT NewCVLedgEntryBuf.Open AND NOT AllApplied THEN BEGIN
NewCVLedgEntryBuf."Closed by Entry No." := OldCVLedgEntryBuf."Entry No.";
NewCVLedgEntryBuf."Closed at Date" := GenJnlLine."Posting Date";
...Código nuevo 3...
NewCVLedgEntryBuf."Closed by Amount (LCY)" := AppliedAmountLCY;
NewCVLedgEntryBuf."Closed by Currency Code" := OldCVLedgEntryBuf."Currency Code";
NewCVLedgEntryBuf."Closed by Currency Amount" := OldAppliedAmount;
// Delete the following line.
NewCVLedgEntryBuf."Open For Advance Letter" := FALSE;
END;
......
NewCVLedgEntryBuf."Closed by Amount (LCY)" := AppliedAmountLCY;
NewCVLedgEntryBuf."Closed by Currency Code" := OldCVLedgEntryBuf."Currency Code";
NewCVLedgEntryBuf."Closed by Currency Amount" := OldAppliedAmount;
END;
... - Cambie el código de la función PostDtldCustLedgEntries en el gen.-línea Post codeunit (12) como sigue:
Código existenteCódigo de sustitución...
InitGLEntry(GLAccNo,DtldCVLedgEntryBuf."Amount (LCY)",0,FALSE,TRUE);
InsertGLEntry(TRUE);
END;
END;
DtldCVLedgEntryBuf."Entry Type"::"Unrealized Loss":
BEGIN
......
InitGLEntry(GLAccNo,DtldCVLedgEntryBuf."Amount (LCY)",0,FALSE,TRUE);
InsertGLEntry(TRUE);
END;
// Add the following line.
SalesPostAdvances.InsertApplnAdvanceLink(DtldCVLedgEntryBuf);
END;
DtldCVLedgEntryBuf."Entry Type"::"Unrealized Loss":
BEGIN
... - Cambie el código de la función ApplyVendLedgEntry en el gen.-línea Post codeunit (12) como sigue:
Código existente 1Código nuevo 1...
THEN
EXIT;
// Delete the following lines.
IF NOT GenJnlLine."System-Created Entry" AND (GenJnlLine."Applies-to ID" <> '') AND
(NewCVLedgEntryBuf."Prepayment Type" = NewCVLedgEntryBuf."Prepayment Type"::Advance)
THEN
ERROR(Text26500,NewCVLedgEntryBuf."Document Type",NewCVLedgEntryBuf."Document No.");
// End of the lines.
PmtTolAmtToBeApplied := 0;
NewRemainingAmtBeforeAppln := NewCVLedgEntryBuf."Remaining Amount";
NewCVLedgEntryBuf2 := NewCVLedgEntryBuf;
...Código existente 2...
THEN
EXIT;
PmtTolAmtToBeApplied := 0;
NewRemainingAmtBeforeAppln := NewCVLedgEntryBuf."Remaining Amount";
NewCVLedgEntryBuf2 := NewCVLedgEntryBuf;
...Código nuevo 2...
OldVendLedgEntry.FINDFIRST;
OldVendLedgEntry.TESTFIELD(Positive,NOT NewCVLedgEntryBuf.Positive);
IF NOT GenJnlLine."System-Created Entry" THEN BEGIN
// Delete the following lines.
IF NewCVLedgEntryBuf."Prepayment Type" = NewCVLedgEntryBuf."Prepayment Type"::Advance THEN
ERROR(Text26500,NewCVLedgEntryBuf."Document Type",NewCVLedgEntryBuf."Document No.");
IF OldVendLedgEntry."Prepayment Type" = OldVendLedgEntry."Prepayment Type"::Advance THEN
ERROR(Text26500,OldVendLedgEntry."Document Type",OldVendLedgEntry."Document No.");
// End of the lines.
END;
IF OldVendLedgEntry."Posting Date" > ApplyingDate THEN
ApplyingDate := OldVendLedgEntry."Posting Date";
...Código existente 3...
OldVendLedgEntry.FINDFIRST;
OldVendLedgEntry.TESTFIELD(Positive,NOT NewCVLedgEntryBuf.Positive);
IF NOT GenJnlLine."System-Created Entry" THEN BEGIN
// Add the following lines.
IF GenJnlLine."Prepayment Type" = GenJnlLine."Prepayment Type"::Advance THEN
OldVendLedgEntry.TESTFIELD("Prepayment Type",OldVendLedgEntry."Prepayment Type"::Advance);
IF OldVendLedgEntry."Prepayment Type" = OldVendLedgEntry."Prepayment Type"::Advance THEN
GenJnlLine.TESTFIELD("Prepayment Type",GenJnlLine."Prepayment Type"::Advance);
// End of the lines.
END;
IF OldVendLedgEntry."Posting Date" > ApplyingDate THEN
ApplyingDate := OldVendLedgEntry."Posting Date";
...Código nuevo 3...
OldVendLedgEntry.SETRANGE("Currency Code",NewCVLedgEntryBuf."Currency Code");
IF OldVendLedgEntry.FINDSET(FALSE,FALSE) THEN
REPEAT
// Delete the following lines.
IF (OldVendLedgEntry."Prepayment Type" <> OldVendLedgEntry."Prepayment Type"::Advance) OR
(OldVendLedgEntry."Applies-to ID" <> '')
THEN
// End of the lines.
IF GenJnlApply.CheckAgainstApplnCurrency(
NewCVLedgEntryBuf."Currency Code",
OldVendLedgEntry."Currency Code",
......
OldVendLedgEntry.SETRANGE("Currency Code",NewCVLedgEntryBuf."Currency Code");
IF OldVendLedgEntry.FINDSET(FALSE,FALSE) THEN
REPEAT
// Add the following lines.
IF NOT GenJnlLine."System-Created Entry" THEN BEGIN
IF GenJnlLine."Prepayment Type" = GenJnlLine."Prepayment Type"::Advance THEN
OldVendLedgEntry.TESTFIELD("Prepayment Type",OldVendLedgEntry."Prepayment Type"::Advance);
IF OldVendLedgEntry."Prepayment Type" = OldVendLedgEntry."Prepayment Type"::Advance THEN
GenJnlLine.TESTFIELD("Prepayment Type",GenJnlLine."Prepayment Type"::Advance);
END;
//End of the lines.
IF GenJnlApply.CheckAgainstApplnCurrency(
NewCVLedgEntryBuf."Currency Code",
OldVendLedgEntry."Currency Code",
... - Cambie el código de la función PostDtldVendLedgEntries en el gen.-línea Post codeunit (12) como sigue:
Código existenteCódigo de sustitución...
InitGLEntry(GLAccNo,DtldCVLedgEntryBuf."Amount (LCY)",0,FALSE,TRUE);
InsertGLEntry(TRUE);
END;
END;
DtldCVLedgEntryBuf."Entry Type"::"Unrealized Loss":
BEGIN
......
InitGLEntry(GLAccNo,DtldCVLedgEntryBuf."Amount (LCY)",0,FALSE,TRUE);
InsertGLEntry(TRUE);
END;
// Add the following line.
SalesPostAdvances.InsertApplnAdvanceLink(DtldCVLedgEntryBuf);
END;
DtldCVLedgEntryBuf."Entry Type"::"Unrealized Loss":
BEGIN
... - Cambie el código del disparador OnRun en el gen.-aplicar codeunit (225) como sigue:
Código existente 1Código nuevo 1...
CustLedgEntry.SETCURRENTKEY("Customer No.",Open,Positive);
CustLedgEntry.SETRANGE("Customer No.",AccNo);
CustLedgEntry.SETRANGE(Open,TRUE);
IF "Cash Order Type" <> "Cash Order Type"::" " THEN
CustLedgEntry.SETRANGE("Currency Code","Currency Code");
IF "Applies-to ID" = '' THEN
...Código existente 2...
CustLedgEntry.SETCURRENTKEY("Customer No.",Open,Positive);
CustLedgEntry.SETRANGE("Customer No.",AccNo);
CustLedgEntry.SETRANGE(Open,TRUE);
// Add the following lines.
IF GenJnlLine."Prepayment Type" = GenJnlLine."Prepayment Type"::Advance THEN
CustLedgEntry.SETRANGE("Prepayment Type",GenJnlLine."Prepayment Type"::Advance)
ELSE
CustLedgEntry.SETFILTER("Prepayment Type",'<>%1',GenJnlLine."Prepayment Type"::Advance);
//End of the lines.
IF "Cash Order Type" <> "Cash Order Type"::" " THEN
CustLedgEntry.SETRANGE("Currency Code","Currency Code");
IF "Applies-to ID" = '' THEN
...Código nuevo 2...
VendLedgEntry.SETCURRENTKEY("Vendor No.",Open,Positive);
VendLedgEntry.SETRANGE("Vendor No.",AccNo);
VendLedgEntry.SETRANGE(Open,TRUE);
IF "Cash Order Type" <> "Cash Order Type"::" " THEN
VendLedgEntry.SETRANGE("Currency Code","Currency Code");
IF "Applies-to ID" = '' THEN
......
VendLedgEntry.SETCURRENTKEY("Vendor No.",Open,Positive);
VendLedgEntry.SETRANGE("Vendor No.",AccNo);
VendLedgEntry.SETRANGE(Open,TRUE);
// Add the following lines.
IF GenJnlLine."Prepayment Type" = GenJnlLine."Prepayment Type"::Advance THEN
VendLedgEntry.SETRANGE("Prepayment Type",GenJnlLine."Prepayment Type"::Advance)
ELSE
VendLedgEntry.SETFILTER("Prepayment Type",'<>%1',GenJnlLine."Prepayment Type"::Advance);
//End of the lines.
IF "Cash Order Type" <> "Cash Order Type"::" " THEN
VendLedgEntry.SETRANGE("Currency Code","Currency Code");
IF "Applies-to ID" = '' THEN
... - Cambie el código en la función PostUnApplyCustomer de la codeunit movimientos de registrados CustEntry-Apply (226) como sigue:
Código existenteCódigo de sustitución...
DtldCustLedgEntry.LOCKTABLE;
CustLedgEntry.LOCKTABLE;
CustLedgEntry.GET(DtldCustLedgEntry2."Cust. Ledger Entry No.");
CheckPostingDate(PostingDate,'',0);
IF PostingDate < DtldCustLedgEntry2."Posting Date" THEN
ERROR(Text003,
......
DtldCustLedgEntry.LOCKTABLE;
CustLedgEntry.LOCKTABLE;
CustLedgEntry.GET(DtldCustLedgEntry2."Cust. Ledger Entry No.");
// Add the following line.
CustLedgEntry.TESTFIELD(Prepayment,FALSE);
CheckPostingDate(PostingDate,'',0);
IF PostingDate < DtldCustLedgEntry2."Posting Date" THEN
ERROR(Text003,
... - Cambie el código en la función PostUnApplyVendor de la codeunit movimientos de registrados VendEntry-Apply (227) como sigue:
Código existenteCódigo de sustitución...
DtldVendLedgEntry.LOCKTABLE;
VendLedgEntry.LOCKTABLE;
VendLedgEntry.GET(DtldVendLedgEntry2."Vendor Ledger Entry No.");
CheckPostingDate(PostingDate,'',0);
IF PostingDate < DtldVendLedgEntry2."Posting Date" THEN
ERROR(Text003,
......
DtldVendLedgEntry.LOCKTABLE;
VendLedgEntry.LOCKTABLE;
VendLedgEntry.GET(DtldVendLedgEntry2."Vendor Ledger Entry No.");
// Add the following line.
VendLedgEntry.TESTFIELD(Prepayment,FALSE);
CheckPostingDate(PostingDate,'',0);
IF PostingDate < DtldVendLedgEntry2."Posting Date" THEN
ERROR(Text003,
... - Cambie el código de la función en el gen. -Post codeunit (231) como sigue:
Código existenteCódigo de sustitución...
EXIT;
TempJnlBatchName := "Journal Batch Name";
GenJnlPostBatch.RUN(GenJnlLine);
......
EXIT;
TempJnlBatchName := "Journal Batch Name";
// Add the following lines.
IF Prepayment THEN
IF NOT ("Document Type" IN ["Document Type"::Payment,"Document Type"::Refund]) THEN
FIELDERROR("Document Type");
//End of the lines.
GenJnlPostBatch.RUN(GenJnlLine);
... - Agregar una nueva variable global en la codeunit Sales-Post avanza (26585) y, a continuación, especificar la variable como sigue:
- Nombre: TempAdvanceLink
- Tipo de datos: registro temporal
- Subtipo: vínculo de avance (26590)
- Agregar una nueva función local en la codeunit Sales-Post avanza (26585) como sigue:
PROCEDURE InsertTempApplnAdvanceLink@1470048(DtldEntryBufEntryNo@1470002 : Integer);
BEGIN
TempAdvanceLink.INIT;
TempAdvanceLink."Entry No." := DtldEntryBufEntryNo;
TempAdvanceLink.INSERT;
END; - Agregar una nueva función local en la codeunit Sales-Post avanza (26585) como sigue:
PROCEDURE InsertApplnAdvanceLink@140049(DtldCVLedgEntryBuf@1102601000 : Record 383);
VAR
AdvanceLink@1470001 : Record 26590;
BEGIN
WITH AdvanceLink DO BEGIN
IF TempAdvanceLink.GET(DtldCVLedgEntryBuf."Entry No.") THEN BEGIN
IF FINDLAST THEN
NextLinkEntryNo := AdvanceLink."Entry No." + 1
ELSE
NextLinkEntryNo := 1;
INIT;
"Entry No." := NextLinkEntryNo;
"Entry Type" := "Entry Type"::Application;
"Document No." := DtldCVLedgEntryBuf."Document No.";
"CV Ledger Entry No." := DtldCVLedgEntryBuf."Cust. Ledger Entry No.";
Amount := DtldCVLedgEntryBuf.Amount;
"Amount (LCY)" := DtldCVLedgEntryBuf."Amount (LCY)";
INSERT;
TempAdvanceLink.DELETE;
END;
END;
END;
Requisitos previos
Debe tener la versión Europea oriental de Microsoft Dynamics NAV 2009 R2 instalado para poder aplicar este hotfix.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.