I've written an extension to add the Customer Payment Receipt report directly on the Customer card.
pageextension 50104 AddCustomerReport extends "Customer Card"
{
actions
{
addlast(reporting)
{
action(CustomerPaymentReceipt)
{
Caption = 'Customer Payment Receipt';
ApplicationArea = All;
Image = Receipt;
trigger OnAction();
var
rep: Report "Customer - Payment Receipt";
begin
rep.RunModal();
end;
}
}
}
}
This works great, and the Customer Payment Receipt report request prompt appears when we click the button on the Customer card.
I would like to improve this functionality, however, by passing the Customer No. value of the current Customer card a user is viewing when they click the button.
This would remove the need for them to again set the customer no. filter, as shown below.
Any suggestions?