-
Notifications
You must be signed in to change notification settings - Fork 688
Closed
Closed
[Event Request] Missing IntegrationEvent on Page 143 "Posted Sales Invoices" for Action "Print"#29336
Task
Copy link
Labels
FinanceGitHub request for Finance areaGitHub request for Finance areaevent-requestRequest for adding an eventRequest for adding an eventships-in-future-updateFix ships in a future updateFix ships in a future update
Description
Why do you need this change?
We need to print a different report for certain customer behaviors.
Describe the request
When implementing an additional deviating report, I noticed that there is no IntegrationEvent on page 143 "Posted Sales Invoices".
Can u add this event like i prepare it here:
action(Print)
{
ApplicationArea = Basic, Suite;
Caption = '&Print';
Ellipsis = true;
Image = Print;
ToolTip = 'Prepare to print the document. A report request window for the document opens where you can specify what to include on the print-out.';
Visible = not IsOfficeAddin;
trigger OnAction()
var
SalesInvHeader: Record "Sales Invoice Header";
begin
SalesInvHeader := Rec;
CurrPage.SetSelectionFilter(SalesInvHeader);
//> New Code for Event
IsHandled := false;
OnBeforeSalesInvHeaderPrintRecords(SalesInvHeader, IsHandled);
if not IsHandled then
//< New Code for Event
SalesInvHeader.PrintRecords(true);
end;
}[IntegrationEvent(false, false)]
local procedure OnBeforeSalesInvHeaderPrintRecords(var SalesInvHeader: Record "Sales Invoice Header"; var IsHandled: Boolean)
begin
end;On the card page (132 "Posted Sales Invoice"), there is the following IntegrationEvent "OnBeforeSalesInvHeaderPrintRecords" at this point.
action(Print)
{
ApplicationArea = Basic, Suite;
Caption = '&Print';
Ellipsis = true;
Image = Print;
ToolTip = 'Prepare to print the document. A report request window for the document opens where you can specify what to include on the print-out.';
Visible = not IsOfficeAddin;
trigger OnAction()
var
IsHandled: Boolean;
begin
SalesInvHeader := Rec;
CurrPage.SetSelectionFilter(SalesInvHeader);
IsHandled := false;
OnBeforeSalesInvHeaderPrintRecords(SalesInvHeader, IsHandled);
if not IsHandled then
SalesInvHeader.PrintRecords(true);
end;
}This seems very inconsistent to me.
Internal work item: AB#610980
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FinanceGitHub request for Finance areaGitHub request for Finance areaevent-requestRequest for adding an eventRequest for adding an eventships-in-future-updateFix ships in a future updateFix ships in a future update