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...
Inventory List GI i...
 
Notifications
Clear all

Questions Inventory List GI including Sales Price, Avg Leadtime, Last Cost, Vendor Cost, Last PO, and Last PR Receipt

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by Tim Rodman 7 years ago
14 Posts
4 Users
0 Reactions
4,649 Views
RSS
Dan Wilkins
Posts: 19
 Dan Wilkins
Topic starter
February 4, 2019 6:15 pm
(@dwilkins)
Eminent Member
Joined: 5 years ago

I have created a GI displaying all inventory item data along with Sales Price, Avg Leadtime, Last Cost, Vendor Cost, Last PO, and Last PR Receipt for each item. 

Problem is that in March of 2017 we changed Numbering Sequence for PO Numbers from POxxxxxx to P0xxxxxx ( Changed the O to a zero) This causes the POLine.OrderNbr column in the GI not to showing the latest Purchase Order. I want to display all items regardless if it has a associated PO or not, so I can't filter the old numbering POxxxxxx as a condition for the GI. I am trying to filter out the old PO's by row level in the results page of the GI. I have tried multiple ways but haven't found the right solution yet. Need ideas of row level syntax for the POLine.OrderNbr.

Something like:

=[POLine.OrderNbr],(IIF([POLine.OrderDate]> @MonthEnd-12), ( ("N/A")) 

=InStr([POLine.OrderNbr], P0*)


13 Replies
Shawn P Slavin
 Shawn P Slavin
(@shawn-p-slavin)
Joined: 5 years ago

Estimable Member
Posts: 196
February 5, 2019 11:42 am
Reply toDan WilkinsDan Wilkins

Instead of looking for anything that contains 'PO', look for rows where left([POLine.OrderNbr],1) = 'P'.


Reply
Dan Wilkins
Posts: 19
 Dan Wilkins
Topic starter
February 5, 2019 12:06 pm
(@dwilkins)
Eminent Member
Joined: 5 years ago

Thank you Shawn  for the input.
Because I do not want Purchase Orders to show that begin with PO(Capitalized Letter O) and just Purchases Orders beginning with P0 (Zero)
would I use the following:

=Left([POLine.OrderNbr],2)='P0'

The above syntax gives me the following:

Incorrect syntax near ')'
Incorrect syntax near the keyword 'ORDER'


Reply
Shawn P Slavin
 Shawn P Slavin
(@shawn-p-slavin)
Joined: 5 years ago

Estimable Member
Posts: 196
February 5, 2019 4:07 pm
Reply toDan WilkinsDan Wilkins

Create a new Parameter and set the default value to 'P0'. Then on the Conditions tab, on a new line, select the parameter as the data field, and in the Value 1 column, put in the formula =Left([POLine.OrderNbr],2).

See if that doesn't work.


Reply
Dan Wilkins
Posts: 19
 Dan Wilkins
Topic starter
February 5, 2019 4:52 pm
(@dwilkins)
Eminent Member
Joined: 5 years ago

Thank you Shawn for the input. This will work but the results only include items with Purchase Orders against them. Because of this,  is why I headed down the road of trying to put the formula in the data field row under the results grid.

Am I wrong in assuming that if I can come up with the right function in the data field results row that all items will show up regardless of if a purchase order has been issued against the item or not?


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
February 5, 2019 7:39 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Using Shawn's solution, you just need a 2nd condition to allow for [POLine.OrderNbr] having a null value - both conditions should be surrounded in braces (so they are a pair) and change the AND to OR - that should include rows where no purchase order exists


Reply
Dan Wilkins
Posts: 19
 Dan Wilkins
Topic starter
February 5, 2019 11:50 pm
(@dwilkins)
Eminent Member
Joined: 5 years ago

Thx! It's working now. Attached are screen shots if any one wants to use as reference. 


Reply
Royce Lithgo
 Royce Lithgo
(@roycelithgo)
Joined: 6 years ago

Honorable Member
Posts: 557
February 6, 2019 5:23 pm
Reply toDan WilkinsDan Wilkins

I highly recommend you bracket the OR conditions, even though there are currently only 2 conditions at the moment, it's a good practice. If in the future further conditions are added and whoever adds them doesn't notice the OR, the query will give the wrong result. 


Reply
Shawn P Slavin
Posts: 196
 Shawn P Slavin
February 6, 2019 10:27 am
(@shawn-p-slavin)
Estimable Member
Joined: 5 years ago

I know it's asking a bit but would you mind sharing how you defined the join for each of the table relationships? I find this to be where my customers have the most challenge in building GI's. Once they know the DAC and column that contains the data they want to include by using "Customization - Inspect Element", they run into challenges with how to define the table joins. Having that contained here in your conversation string will make it easier for people to get the whole picture on how you achieved your results.

Thank you in advance for sharing.


Reply
Dan Wilkins
Posts: 19
 Dan Wilkins
Topic starter
February 6, 2019 10:51 am
(@dwilkins)
Eminent Member
Joined: 5 years ago

Here you go.

Please note that in the results grid below the column with Caption "Last 2 Yr Sales" is showing inflated QTY's. I am working on getting the qty's to display correctly so the table relations might change in regards to the ARTran / Inv ID / ARInvoice, etc. 

 


Reply
Shawn P Slavin
Posts: 196
 Shawn P Slavin
February 6, 2019 1:26 pm
(@shawn-p-slavin)
Estimable Member
Joined: 5 years ago

You might try adding DocType to your list of fields on the join between ARTran and ARInvoice.


Reply
Dan Wilkins
Posts: 19
 Dan Wilkins
Topic starter
February 6, 2019 5:34 pm
(@dwilkins)
Eminent Member
Joined: 5 years ago

Thx for the input. I thought I had gone back and done that. 


Reply
Shawn P Slavin
Posts: 196
 Shawn P Slavin
February 6, 2019 5:43 pm
(@shawn-p-slavin)
Estimable Member
Joined: 5 years ago

Thanks for providing the link info. I think it helps folks when they come looking for answers and review past discussions.


Reply
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
February 16, 2019 10:41 pm
(@timrodman)
Famed Member
Joined: 10 years ago

That's quite an ambitious list of joins Dwilk. Thanks for sharing.

I'm especially interested in the join from InventoryItem to ARTran. Is this returning the data that you're expecting?

The way I interpret it is that you're assuming every Item will only be sold one time.


Reply
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 67 Online
  • 2,389 Members
Our newest member: Dan Hunting
Latest Post: Generic Inquiry Screenid changes to ScreenId=00000000
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

  • Dianne A
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.

‹›×

    ‹›×