Skip to main content
Solved

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


Forum|alt.badge.img+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

Best answer by Vignesh Ponnusamy

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,

View original
Did this topic help you find an answer to your question?

3 replies

Laura02
Captain II
Forum|alt.badge.img+19
  • Captain II
  • 3132 replies
  • March 12, 2024

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


Vignesh Ponnusamy
Acumatica Moderator
Forum|alt.badge.img+5

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,


Forum|alt.badge.img+1
  • Author
  • Semi-Pro I
  • 134 replies
  • March 13, 2024

@Vignesh Ponnusamy That’s perfect.  Thanks,

Phil


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings