pageextension 70148 /Sales invoice Ext/ extends /Sales Invoice/
{
actions
{
addafter(/P&osting/)
{
action(/post and print/)
{
ApplicationArea = All;
Image = Print;
trigger OnAction()
var
myInt: Integer;
SalesInvHeader: Record /Sales Invoice Header/;
begin
PostDocument(CODEUNIT::/Sales-Post (Yes/No)/, /Navigate After Posting/::/Posted Document/);
SalesInvHeader.Reset();
if SalesInvHeader.FindLast() then
Report.RunModal(Report::/AAAT Tax Invoice/, true, true, SalesInvHeader);
end;
}
}
}
}
Thanks & Regards
Satish