By using this website, you agree to our Terms of Use (click here)
Hi,
For reporting purposes, does anyone how how to best link a specific Invoice to the Ship To State (i.e., which tables to use)?
Thanks,
Rob
I haven’t played around with 2019 R1, but I remember reading that it fixes an issue where the Invoice doesn’t link to shipping info.
In earlier versions, we had to link artran (SOOderNbr and SOOrderType) to soorder (orderNbr and orderType) and then soorder (shipaddressID) to Soaddress (addressID)
Thanks Ryan, I linked the ARTran to SOOrderShipment (OrderNbr, OrderType, and ShipmentNumber), then linked SOOrderShipment to SOShipmentAddress (ShipAddressID to AddressID). It appears to work.
My concern is that ShipmentType is part of the primary key to SOShipmentOrder. The values in this column do not appear to match up with values in the ARTran.
Rob
The Shipment table is funny because you don't need the Type to form a Primary Key. SOShipment.ShipmentNbr is all you need.
Prior to Acumatica 2019 R1, the Ship Address wasn't stored on the Invoice as Ryan pointed out.
For the Shipment on the Invoice Line, you can get from ARTran to SOShipment on ARTran.SOShipmentNbr=SOShipment.ShipmentNbr.
For the Shipment Address, you can get from SOShipment to SOAddress on SOShipment.ShipAddressID=SOAddress.AddressID.
In Acumatica 2019 R1, the Ship Address now gets stored on the Invoice in the ARInvoice.ShipAddressID field. That's especially helpful with Projects that were billed without a Shipment.
Looks good to me. It's not returning anything? Try SO.SOAddress if CR.Address isn't getting you anything.