Solved

Can't print sales order with shipping status

  • 19 October 2021
  • 6 replies
  • 351 views

Userlevel 3
Badge +1

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. 

icon

Best answer by mvolshteyn 21 October 2021, 11:42

View original

6 replies

Userlevel 6
Badge +5

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. 

Userlevel 7
Badge +17

@asmith50  As per the standard Acumatica, Print Sales Order action will NOT be enable in Shipping and Back Order status.

As @markusray17  said, we can print the SO report from Sales Orders → Printed Forms → Sales Order Report.

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
}

 

 

Userlevel 5
Badge +3

@Naveen B ,  if we need to customize availablility of actions based on sales order status, it should better (and much easier) be done through the workflows menu of  the customization project editor

You simply need to add the PrintOrderAction to the action tab of the correspodnding states as shown in the attachment

Userlevel 7
Badge +17

Hi @mvolshteyn  Yes, I even tried this and very simple.

Thanks a lot for sharing it here. 

Userlevel 5
Badge +1

@mvolshteyn Yes, we can get this done in just few clicks in Acumatica - Workflows. This is really one of my favorite feature in Acumatica. 

 

Happy coding!

Userlevel 2
Badge

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?

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved