I am working on a request to show the Sales Order Number on the Process Shipments screen as a column.
I decided to add some PXDBScalar fields to SOShipment that pulls the last order number from SOOrderShipment. That business logic works for the client and the field appears on the screen properly.
When the Action selector is changed to Prepare Drop-Ship Invoice, those columns are blank. That’s because a different select statement is run. The view is called Orders but the data is primarily populated from POReceipt instead of SOShipment.
So I tried adding the same custom PXDBScalar fields to POReceipt. And while I can run a GI against POReceipt to correctly show the custom field values:
But the columns on the Process Shipment screen remain blank:
I have SOShipment.UsrLastOrderNbr and POReceipt.UseLastOrderNbr and the column on the screen is looking for a field called UsrLastOrderNbr from the Orders view.
Does it have something to do with the SOInvoiceShipment orders() method? Or the changing of the captions in SOShipmentFilter_RowSelected?
Best answer by markusray17
View original