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] Report 3010801 "Quote Analysis" - Add parameter to OnBeforeCalcHeaderAmount #28172

Open
thomari opened this issue Feb 18, 2025 · 0 comments

Comments

@thomari
Copy link

thomari commented Feb 18, 2025

Describe the request

Please add the parameter "ArchSalesHead" to the publisher OnBeforeCalcHeaderAmount.

Previous Code

IsHandled := false;
OnBeforeCalcHeaderAmount(SalesHead, _TableType, Result, IsHandled);
if IsHandled then
    exit(Result);

...

[IntegrationEvent(false, false)]
local procedure OnBeforeCalcHeaderAmount(SalesHeader: Record "Sales Header"; _TableType: Integer; var Result: Decimal; var IsHandled: Boolean)
begin
end;

New Code

IsHandled := false;
OnBeforeCalcHeaderAmount(SalesHead, ArchSalesHead, _TableType, Result, IsHandled);
if IsHandled then
    exit(Result);

...

[IntegrationEvent(false, false)]
local procedure OnBeforeCalcHeaderAmount(SalesHeader: Record "Sales Header"; ArchSalesHeader: Record "Sales Header Archive"; _TableType: Integer; var Result: Decimal; var IsHandled: Boolean)
begin
end;

Additional context

We need the "Sales Header Archive" Record to calculate the Header Amount, for when "_TableType" is DATABASE::"Sales Header Archive".

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