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...
Opportunity Screen ...
 
Notifications
Clear all

Questions Opportunity Screen - Relation to Sales Order Number

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by Debbie Reed 2 years ago
12 Posts
7 Users
8 Reactions
4,616 Views
RSS
Shaun Zaleski
Posts: 4
 Shaun Zaleski
Topic starter
April 24, 2019 9:50 am
(@shaunz)
Active Member
Joined: 6 years ago

Hi!

I am looking to update an existing GI built for Opportunities where the connected sales order number was displaying using CROpportunity.orderNbr field. When the screen was updated to use quotes, this field was removed and a tab with Sale Order grid was added. 

Has anyone used the new fields in a GI or report and know the relation Acumatica is using?

Thank you,

Shaun


Topic Tags
Opportunity Generic Inquiry GI Relations Tables
11 Replies
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
April 29, 2019 9:42 pm
(@timrodman)
Famed Member
Joined: 10 years ago

The ORDERS tab of the Opportunities (CR304000) screen makes it seem that there can be multiple Sales Orders for an Opportunity so I don't think it can be a field. I think it needs to be a table.

There's a CRRelation table that could probably be used to join the Opportunities and Sales Orders together. CRRelation.TargetNoteID looks like the Opportunity ID and CRRelation.RefNoteID looks like something you can join to SOOrder.NoteID to get the Sales Order ID.


Reply
nsmith reacted
Shaun Zaleski
Posts: 4
 Shaun Zaleski
Topic starter
April 30, 2019 8:08 am
(@shaunz)
Active Member
Joined: 6 years ago

Hi Tim,

 Thank you for responding to my post. Your suggestion worked to display the order number.

Thank you,

Shaun


Reply
Brian Cowley and Tim Rodman reacted
 Alex Agüero León
(@alex-aguero-leon)
Joined: 6 years ago

Member
Posts: 1
May 10, 2019 6:27 pm
Reply toShaun ZaleskiShaun Zaleski

Is there a possibility to see how you did the joins? I'm having trouble joining these three tables.

 

Nevermind, I already found a way. I was using the OpportunityID and not the NoteID of the Opportunity, silly mistake.

 

Thanks anyways for bringing the CRRelation route.

 

@timrodman you're my hero.


Reply
Scott Dunstan
 Scott Dunstan
(@dscottyd)
Joined: 5 years ago

Active Member
Posts: 5
April 14, 2020 12:37 am
Reply toShaun ZaleskiShaun Zaleski

@shaunz Hi Shaun. Do you mind elaborating on the joins that you used?
Tim's post has put me in the ballpark but I'm obviously missing something.
All solutions are welcome.
Cheers, Scott.


Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
May 24, 2019 11:10 pm
(@timrodman)
Famed Member
Joined: 10 years ago

🙂


Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
April 14, 2020 1:07 am
(@timrodman)
Famed Member
Joined: 10 years ago

I just tried adding these two joins to the Opportunities (CR3040PL) generic inquiry in Acumatica 2020 R1 and it seemed to work:

CROpportunity.NoteID -> CRRelation.DocNoteID

CRRelation.RefNoteID -> SOOrder.NoteID

2020 04 14 01 05 36
2020 04 14 01 06 23

Reply
Scott Dunstan
 Scott Dunstan
(@dscottyd)
Joined: 5 years ago

Active Member
Posts: 5
April 14, 2020 1:53 am
Reply toTim RodmanTim Rodman

@timrodman Hi Tim. You beauty!
That's working for me too now I've found my problem; 
I was using the CROpportunity.OpportuntiyID, not the CROpportunity.noteID. D'oh!
I have no idea how I got it muddled. [ Cleans glasses - now that's better 🙂 ]

Appreciate the quick response. Still getting my head around the backend of this beastie.
Thanks again. Scotty.


Reply
Tim Rodman reacted
drustorm21
Posts: 1
 drustorm21
October 20, 2020 7:58 pm
(@drustorm21)
New Member
Joined: 5 years ago

This was very helpful.  Is there a way to join CROpportunityProducts to ARTran?


Reply
Tim Rodman
 Tim Rodman
Admin
(@timrodman)
Joined: 10 years ago

Famed Member
Posts: 3193
January 2, 2021 4:11 am
Reply todrustorm21drustorm21

@drustorm21 I just tried looking for a relationship between the Opportunity Lines and the Sales Order Lines, but I can't fine one. It seems to only be between the Opportunity and the Sales Order, not the Sales Order Lines. I would think it would be the same thing for Invoice Lines (ARTran).


Reply
Wyatt.ERP reacted
Wyatt.ERP
 Wyatt.ERP
(@wyatt-erp)
Joined: 6 years ago

Estimable Member
Posts: 128
January 4, 2021 10:01 am
Reply toTim RodmanTim Rodman
drustorm21

@drustorm21 @timrodman I am seconding this.  I've done a lot of looking, but Acumatica as of 2020R1 doesn't keep that link.  In the end, I'm going to write a custom action that will keep this link alive.  We have a use case where, with certain Custom items, items are split off of an opportunity into multiple sales orders.  Letting the users pick some items to make an order with, and then come back and pick the rest later will make that process streamlined.  Also eventually, the way we handle our commissions wants to know this information too.


Reply
drustorm21 and Tim Rodman reacted
Debbie Reed
Posts: 3
 Debbie Reed
March 6, 2024 7:34 pm
(@dreed)
New Member
Joined: 2 years ago

All I want to say about this is THANK YOU.  I have been trying to do a similar link from quote to converted sales order. This got me there!


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Related Topics
  • Unable to Add Field "Unapplied Balance" to Generic Inquiry "Payments and Applications"
    6 months ago
  • Timecard Transactions not Pulled into Project Transactions Inquiry
    1 year ago
  • Equivalent to Excel Post-Special, "transpose"
    1 year ago
  • Generic Inquiry - Last Modified On Date Change
    1 year ago
  • Generic Inquiry, pulling data from two unrelated sources
    1 year ago
Topic Tags:  Opportunity (1) , Generic Inquiry (41) , GI (9) , Relations (1) , Tables (2) ,
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 25 Online
  • 2,338 Members
Our newest member: Shoaib Shafquat
Latest Post: Pick List report suddenly not splitting on Shipment
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.

‹›×

    ‹›×