AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • In-Person Gatherings
    • Power BI Workshop
    • Podcast
    • Rolodex
    • 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...
Table relations
 
Notifications
Clear all

Questions Table relations

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by Tim Rodman 8 years ago
6 Posts
3 Users
1 Reactions
6,709 Views
RSS
Jake Hickey
Posts: 38
 Jake Hickey
Topic starter
July 18, 2018 10:21 am
(@jake-hickey)
Trusted Member
Joined: 8 years ago

I am working on an AR Aging inquiry, that calls from the ARInvoice table. However, there is one payment from the ARPayment table that I need brought over in order for my inquiry to tie out. If I try to call the ARPayment table to get this one payment, every other payment comes along with it. How can I specify my tables' relationship so that I only bring over the one payment that is affecting my inquiry? 


5 Replies
MichaelHansen
Posts: 149
 MichaelHansen
July 19, 2018 10:25 am
(@michaelhansen)
Estimable Member
Joined: 6 years ago

Part of your join should include the reference number if it doesn't change. Or the customer/location combo if they're unique for this inquiry. 

The join would be something like:

Ref Nbr   <--> EQUALS <-->  001234
DocType <--> EQUALS <-->  Payment

If you have to isolate multiple values (say 3 invoices, or multiple customers) do it in the conditions tab and use parenthesis and the "OR" option to group them together. If you're comfortable sharing more details about the account you wish to isolate, we can get you a more precise answer.


Reply
Jake Hickey
 Jake Hickey
(@jake-hickey)
Joined: 8 years ago

Trusted Member
Posts: 38
July 19, 2018 2:39 pm
Reply toMichaelHansenMichaelHansen

The account's reference number is 22158. So when joining the tables, I should put Ref Nbr as the parent field and 22158 as the child field?


Reply
MichaelHansen
Posts: 149
 MichaelHansen
July 19, 2018 3:24 pm
(@michaelhansen)
Estimable Member
Joined: 6 years ago

If the Parent is ARPayment then yes. You are asking the system to look at a VARIABLE (RefNbr) in the ARPayment table and then you're saying it must equal a VALUE (22158) that does not care about about the table. So whichever side has ARPayment gets =[RefNbr] and the other side gets ='22158'. Which translates in english to:

Only join when the RefNbr in ARPayment is EQUAL to 22158. This will result in a single row being pulled. If you get more than one row, your issue is that RefNbr is part of a Key Pair, the other half being the DocType. You may need to assign DocType if you get multiple rows.


Reply
Jake Hickey reacted
Jake Hickey
Posts: 38
 Jake Hickey
Topic starter
July 23, 2018 10:24 am
(@jake-hickey)
Trusted Member
Joined: 8 years ago

This worked perfectly! Thank you so much!


Reply
Tim Rodman
Posts: 3199
 Tim Rodman
Admin
August 2, 2018 6:06 am
(@timrodman)
Famed Member
Joined: 10 years ago

You might also want to checkout this post: https://www.augforums.com/augforums/acumatica-dashboards/ar-aging-summary-dashboard


Reply
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,528 Topics
  • 10.9 K Posts
  • 5 Online
  • 2,412 Members
Our newest member: Peter Paasch
Latest Post: Tax on Inventory Transfer
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 © 2026 · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×