You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you add the required events in Codeunit 1222 "SEPA CT-Prepare Source"?
Current code:
local procedure CreateTempJnlLines(var FromGenJnlLine: Record "Gen. Journal Line"; var TempGenJnlLine: Record "Gen. Journal Line" temporary)
...
TempGenJnlLine.Amount := CarteraDoc."Remaining Amount";
TempGenJnlLine.Insert();
until CarteraDoc.Next() = 0;
Requested:
local procedure CreateTempJnlLines(var FromGenJnlLine: Record "Gen. Journal Line"; var TempGenJnlLine: Record "Gen. Journal Line" temporary)
...
TempGenJnlLine.Amount := CarteraDoc."Remaining Amount";
OnBeforeInsertTempJnlLines(TempGenJnlLine, CarteraDoc); //NEW
TempGenJnlLine.Insert();
OnAfterInsertTempJnlLines(TempGenJnlLine, CarteraDoc); //NEW
until CarteraDoc.Next() = 0;
//>NEW
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertTempJnlLines(var TempGenJnlLine: Record "Gen. Journal Line"; CarteraDoc: Record "Cartera Doc.")
begin
end;
[IntegrationEvent(false, false)]
local procedure OnAfterInsertTempJnlLines(var TempGenJnlLine: Record "Gen. Journal Line"; CarteraDoc: Record "Cartera Doc.")
begin
end;
//<NEW
Additional context
As it works with "Cartera Doc.", it affects only in the Spanish localization.
The text was updated successfully, but these errors were encountered:
Describe the request
Could you add the required events in Codeunit 1222 "SEPA CT-Prepare Source"?
Current code:
local procedure CreateTempJnlLines(var FromGenJnlLine: Record "Gen. Journal Line"; var TempGenJnlLine: Record "Gen. Journal Line" temporary)
...
TempGenJnlLine.Amount := CarteraDoc."Remaining Amount";
TempGenJnlLine.Insert();
until CarteraDoc.Next() = 0;
Requested:
local procedure CreateTempJnlLines(var FromGenJnlLine: Record "Gen. Journal Line"; var TempGenJnlLine: Record "Gen. Journal Line" temporary)
...
TempGenJnlLine.Amount := CarteraDoc."Remaining Amount";
OnBeforeInsertTempJnlLines(TempGenJnlLine, CarteraDoc); //NEW
TempGenJnlLine.Insert();
OnAfterInsertTempJnlLines(TempGenJnlLine, CarteraDoc); //NEW
until CarteraDoc.Next() = 0;
//>NEW
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertTempJnlLines(var TempGenJnlLine: Record "Gen. Journal Line"; CarteraDoc: Record "Cartera Doc.")
begin
end;
[IntegrationEvent(false, false)]
local procedure OnAfterInsertTempJnlLines(var TempGenJnlLine: Record "Gen. Journal Line"; CarteraDoc: Record "Cartera Doc.")
begin
end;
//<NEW
Additional context
As it works with "Cartera Doc.", it affects only in the Spanish localization.
The text was updated successfully, but these errors were encountered: