Solved

Is there a way to stop the order notes being copied to the shipment notes automatically on Create Shipment?

  • 12 March 2024
  • 3 replies
  • 58 views

Userlevel 5
Badge +1

Since upgrading to 2023R2 the Order Description is being automatically copied to the Shipment Description. This is not desirable and causing extra work as we have to remember to remove it manually.

Is there a way to customize this to disable this copy?

 

Thanks for any help,

 

Phil

icon

Best answer by Vignesh Ponnusamy 12 March 2024, 18:23

View original

3 replies

Badge +18

Hello,

Copying of Notes can be controlled in the General tab of Order Types screen:

I don’t see any checkbox to change the behavior of Order Description copying to Shipment Description. You will likely need to customize the shipment screen to change the behavior of Shipment Description.

Laura

Userlevel 7
Badge +4

Hi @ppowell ,

As @Laura02 suggested, you have to customize the Create Shipment actions. Following is the customization you can try,

  public class SOOrderEntry_Extension : PXGraphExtension<PX.Objects.SO.SOOrderEntry>
{
#region Event Handlers
public delegate IEnumerable CreateShipmentIssueDelegate(PXAdapter adapter, Nullable<DateTime> shipDate, Nullable<Int32> siteID);
[PXOverride]
public IEnumerable CreateShipmentIssue(PXAdapter adapter, Nullable<DateTime> shipDate, Nullable<Int32> siteID, CreateShipmentIssueDelegate baseMethod)
{
PXGraph.InstanceCreated.AddHandler<SOShipmentEntry>((graphShipmentEntry) =>
{
graphShipmentEntry.RowPersisting.AddHandler<SOShipment>((sender, e) =>
{
sender.SetValue<SOShipment.shipmentDesc>((SOShipment)graphShipmentEntry.Document.Current, "");
});
});
return baseMethod(adapter,shipDate,siteID);
}
#endregion
}

Hope that help and Good Luck,

Userlevel 5
Badge +1

@Vignesh Ponnusamy That’s perfect.  Thanks,

Phil

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