Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Event Request] Codeunit 1222 "SEPA CT-Prepare Source" - OnBeforeInsertTempJnlLines and OnAfterInsertTempJnlLines #27638

Open
TriangleSPV opened this issue Nov 16, 2024 · 0 comments

Comments

@TriangleSPV
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant