In 23R2, when you create a drop ship purchase order and select a value in the FOB Point field, then create a Sales Order from the Purchase Order, the FOB Point value is not being transferred to the Sales Order.
Is this expected behavior or is this a bug?
As a workaround, I’m trying to add an event handler to the CreateSalesOrder action. However, I believe this action is actually in the public class DropShipLinksExt : PXGraphExtension<POOrderEntry> extension.
public class POOrderEntry_Extension : PXGraphExtension<POOrderEntry>
{
public static bool IsActive() => true;
[PXOverride]
public IEnumerable createSalesOrder(PXAdapter adapter, Func<PXAdapter, IEnumerable> baseMethod)
{
PXGraph.InstanceCreated.AddHandler(delegate (SOOrderEntry graph)
{
graph.RowUpdated.AddHandler<SOOrder>(delegate (PXCache sender, PXRowUpdatedEventArgs e)
{
SOOrder objSOOrder = e.Row as SOOrder;
if (objSOOrder != null)
{
sender.SetValueExt<SOOrder.fOBPoint>((object)objSOOrder, Base.Document.Current.FOBPoint);
}
});
});
return baseMethod(adapter);
}
}
In my override, I have an error:
Should I be overriding the DropShipLinksExt? If so, how? I’ve tried doing this but it creates an error as well:
If you think that this topic is due to a bug, let me know what you think. I may need to submit a ticket with support. I don’t want to submit a support ticket if this is an expected behavior.
Best answer by Joe Schmucker
View original