Does anyone know how to print SOs with the status of shipping or backordered? ACU seems to lock it down when the SO is in these two statuses.
Note that the code shared by Naveen does not seem to work in 24R1. I did it in the workflow and it worked great.
Had a client run into this situation. Thanks for the explanation/work around. Just curious, anyone know WHY Acumatica doesn’t think people should be able to print a Sales Order in those statuses?
Happy coding!
Hi
Thanks a lot for sharing it here.
You simply need to add the PrintOrderAction to the action tab of the correspodnding states as shown in the attachment
As
Still, if you want to enable the “Print Sales Order” action in Sales Order screen, it requires a small piece of customization. Please find the code below for your reference
public class SOOrderEntry_Extension : PXGraphExtension<SOOrderEntry>
{
#region Event Handlers
protected virtual void SOOrder_RowSelected(PXCache cache, PXRowSelectedEventArgs e, PXRowSelected InvokeBaseHandler)
{
InvokeBaseHandler?.Invoke(cache, e);
SOOrder row = e.Row as SOOrder;
if (row == null) return;
if(row.Status == SOOrderStatus.Shipping)
Base.printSalesOrder.SetEnabled(true);
}
#endregion
}
You should still be able to go directly to the form under Sales Orders → Printed Forms → Sales Order and put in the order type and order number then click on Run Report.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.