AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • Rolodex
    • Podcast
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Generic I...
Adding Ship To Addr...
 
Notifications
Clear all

Questions Adding Ship To Address to Invoice Data

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by nsmith 5 years ago
4 Posts
2 Users
2 Reactions
5,423 Views
RSS
Tim Rodman
Posts: 3195
 Tim Rodman
Admin
Topic starter
May 24, 2019 2:36 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Need to add the Ship To address to Invoice data in a Generic Inquiry in Acumatica?

Let's say you've already added the ARTran and ARInvoice tables with a join from ARTran to ARInvoice on ARTran.TranType=ARInvoice.DocType and ARTran.RefNbr=ARInvoice.RefNbr.

In Acumatica 2018 R2 and prior, Acumatica doesn't store the ship address on the invoice record. So you have to go get it from the shipment.

You can join from ARTran to SOShipment on ARTran.SOShipmentNbr=SOShipment.ShipmentNbr.

Then you can join from SOShipment to SOShipmentAddress on SOShipment.ShipAddressID=SOShipmentAddress.AddressID.

The SOShipmentAddress table will give you the address fields you need: AddressLine1, AddressLine2, City, etc.

Note: I'd recommend using Left joins if you want to still see Invoices that have no associated Shipment.

 

In Acumatica 2019 R1, Acumatica is now storing the Ship To address on the Invoice record itself. I suspect this was driven by the Construction world because one Project could perform work in multiple tax jurisdictions and there is no Shipment so the Ship To address needs to be stored on the Invoice.

You can read about this new feature in the Finance: Ability to Override Shipping Address in Documents section of the Acumatica 2019 R1 Release Notes (click here).

So, in Acumatica 2019 R1, getting the Ship To address for an Invoice is a lot easier.

Just Left join from ARInvoice to ARAddress on ARInvoice.ShipAddressID=ARAddress.AddressID. Much easier right?


3 Replies
Posts: 47
 nsmith
March 31, 2020 10:03 am
(@nsmith)
Trusted Member
Joined: 6 years ago

Hey Tim - Question for you on this same vein. I am trying to get the overridden shipping address off of a project quote and honestly can't find the info anywhere.

It doesn't seem like it gets stored in any location - doing an inspection of those elements on the quote page tells me to use the CRShippingAddress, but since I've overridden the address it isn't there anymore. That table doesn't seem to update either when you override the shipping address. It just seems very counter intuitive to me that you could override the shipping info and it doesn't appear anywhere.

 

Anyone have a solution for this beyond creating attributes for project quotes that you enter a shipping address into?


Reply
Tim Rodman
Posts: 3195
 Tim Rodman
Admin
Topic starter
May 17, 2020 8:11 pm
(@timrodman)
Famed Member
Joined: 10 years ago

I was able to get it in Acumatica 2020 R1 (20.100.0095) by doing this:

First, I overrode the address on the Project Quotes (PM304500) screen:

image

Second, I created a Generic Inquiry that joined PMQuote to CRAddress on PMQuote.ShipAddressID=CRAddress.AddressID.

image

And that retrieved the address information:

image

Reply
Posts: 47
 nsmith
June 5, 2020 12:08 pm
(@nsmith)
Trusted Member
Joined: 6 years ago

Thanks for the reply Tim - I should do a better job checking back in.

 

=IIf([CRShippingContact.FullName]<>null, [CRShippingContact.FullName] + '{br}', [Customer.AcctName]+ '{br}')
+IIf([CRQuote.ContactID_description]<>null, [CRQuote.ContactID_description] + '{br}', '')
+IIf([CRShippingAddress.AddressLine1]<>null,[CRShippingAddress.AddressLine1]+'{br}','')
+IIf([CRShippingAddress.AddressLine2]<>null,[CRShippingAddress.AddressLine2]+'{br}','')
+IIf([CRShippingAddress.AddressLine3]<>null,[CRShippingAddress.AddressLine3]+'{br}','')
+IIf([CRShippingAddress.City]<>null, [CRShippingAddress.City]+' ', '')
+IIf([CRShippingAddress.State]<>null, [CRShippingAddress.State]+' ','')
+IIf([CRShippingAddress.PostalCode]<>null, [CRShippingAddress.PostalCode],'')
+IIf([CRShippingAddress.City]<>null OR [CRShippingAddress.State]<>null OR [CRShippingAddress.PostalCode]<>null,'{br}','')
+IIf([CRShippingAddress.CountryID]<>null,[CRShippingAddress.CountryID_Country_description]+'{br}', '')
+IIf([CustomerContact.Phone1]<>null, [CustomerContact.Phone1], '')

 

This is the current formula I am using to generate my shipping address - it uses the customer contact you have input OR the shipping address if you override the address. Steps to get this going:

1) join CRQuote to CRShippingAddress on ShipAddressID = AddressID (Left join)

2) Join CRQuote to CRShippingContact on ShipContactID = ContactID (Left join)

3) If you override the shipping address these joins will bring in that new contact information (I'd share a screenshot but the info is private)

 

Enjoy,

Nic

 


Reply
Tim Rodman and Wyatt.ERP reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 43 Online
  • 2,411 Members
Our newest member: thollings
Latest Post: Generic inquiry with information from Audit history(CT301000)
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

 No online members at the moment

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © 2025 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×