Work Order Print
Posted: Thu Feb 01, 2024 10:37 pm
Hi There
Trying to call the print of a particular work order report on a custom button click under utility. Unable to find the print function of the work order, below is an example what I found for SalesOrder , can you pls guide me towards an equivalent for WorkOrder
public static void PrintInvoice(SalesOrder salesOrder, string formatName)
{
foreach (SalesOrderReport salesOrderReport in salesOrder.GetCandidateReportsToPrint())
{
if (salesOrderReport.Name == formatName && salesOrderReport.BillingType == salesOrder.BillType)
{
salesOrder.Print(new JiwaCollection<SalesOrderReport>() { salesOrderReport });
return;
}
}
}
Trying to call the print of a particular work order report on a custom button click under utility. Unable to find the print function of the work order, below is an example what I found for SalesOrder , can you pls guide me towards an equivalent for WorkOrder
public static void PrintInvoice(SalesOrder salesOrder, string formatName)
{
foreach (SalesOrderReport salesOrderReport in salesOrder.GetCandidateReportsToPrint())
{
if (salesOrderReport.Name == formatName && salesOrderReport.BillingType == salesOrder.BillType)
{
salesOrder.Print(new JiwaCollection<SalesOrderReport>() { salesOrderReport });
return;
}
}
}