I read this thread because the title stirred up some anger in me about addresses lol.
Recent conversation I had:
- Plant controller: Can you give me a list of invoices for the last X months.
- Me. No problem, here you go.
- Controller: Can you add the ship-to address
- Me:

I’d love to be corrected, but addresses are just a nightmare with orders/shipments/invoices.
Here’s the BAQ I made:
Then 6 calculated fields like this:

And the 7th - country - being the oddball:

This is what everyone has been saying basically, but to put it all together:
- If the order has a “one-time ship-to,” then the address info is on the
OrderHedtable - If the order has a ship-to selected, you need the
ShipTotable for the data - If you have no ship-to selected and it is not a “one-time ship-to” … you actually do have a ship-to - its ID is
""[empty string].
a. (You can ignore this advice; it’s covered by #2.) - City is free text in 1 and 2
- So is State/Province, ZIP, etc.
- But Country is text in the
ShipTotable and an integer in theOrderHedtable.
a. Thus you need to join in theCountrytable for the sake of one-time ship-to.
