RE: Customize Purch Order Confirmation report
Hello Gabi1611,
Add the following piece of code under the PrintMgmtDocType_Extension class.
[ExtensionOf(classStr(PrintMgmtDocType)]
final public class PrintMgmtDocType_Extension
{
/// <summary>
/// Extension class to print custom purchase order confirmation report
/// </summary>
/// <param name="_docType"></param>
/// <param name="_result"></param>
[SubscribesTo(classStr(PrintMgmtDocType), delegateStr(PrintMgmtDocType, getDefaultReportFormatDelegate))]
public static void PrintMgmtDocType_getDefaultReportFormatDelegate(PrintMgmtDocumentType _docType, EventHandlerResult _result)
{
//Purchase Order Confirmation validate
if(PrintMgmtDocumentType::PurchaseOrderRequisition = _docType)
{
_result.result(ssrsReportStr(<yourcustomReportName>,Report));
}
}
}
Build the project and then go and add your custom report under Form setup -> Print management settings, under the Accounts payable section.
Hope this helps.
Thanks,
Navneeth Nagrajan | Dynamics 365 Technical Consultant