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...
Trying to subtract ...
 
Notifications
Clear all

Questions Trying to subtract credit (amount) from sales dollars in a GI based on the ARTran table

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by Lorne W. 3 years ago
4 Posts
3 Users
1 Reactions
928 Views
RSS
Lorne W.
Posts: 25
 Lorne W.
Topic starter
August 31, 2022 3:47 pm
(@lweinstein)
Eminent Member
Joined: 3 years ago

Hi Everyone,  I am trying to build a Generic Inquiry for sales by branch that will match our financials.  I have determined that the best way to pull the data is from the ARTran Table using the Branch ID.  I have also determined that the best field for the dollar amount in the CuryTranAmt field.  However, For some TranTypes such as CRM and others the result needs to be subracted.  How can I make the numbers negative in the GI for only certain TranTypes and not for others?


3 Replies
nperez
Posts: 13
 nperez
August 31, 2022 6:02 pm
(@nperez)
Active Member
Joined: 4 years ago

Hi Lorne

I would use something like this =IIf( [ARTran.Type] = 'CRM',[ARTran.Amount]*-1,[ARTran.Amount])

Create a group by and sum of this field

The fields might not match the actual ones, but just the idea.

 


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
August 31, 2022 6:50 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

How about this:

=IIf([ARTran.DrCr] = 'D', -1, 1) * [ARTran.Amount])

This handles all tran types without having to specify them in the formula.


Reply
Lorne W.
 Lorne W.
(@lweinstein)
Joined: 3 years ago

Eminent Member
Posts: 25
September 1, 2022 3:51 pm
Reply toRoyce LithgoRoyce Lithgo

@roycelithgo Brilliant!  Thank you.  One other question.  do you know what I put in the schema field if I want the FinPeriodId to only filter by year?

Much appreciate your suggestion


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 49 Online
  • 2,327 Members
Our newest member: Sheryl Dole
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.

‹›×

    ‹›×