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
Everything Else
Understanding The C...
 
Notifications
Clear all

Questions Understanding The Calculation Behind a Field

 
Everything Else
Last Post by Brandon Crisp 7 years ago
5 Posts
2 Users
4 Reactions
3,456 Views
RSS
Posts: 10
 Brandon Crisp
Topic starter
November 7, 2018 4:48 pm
(@brandon-crisp)
Member
Joined: 8 years ago

Hello,

I am looking to understand exactly how the field [ARTran.NetSalesAmount] is calculated. I need to know which fields it is using to add and subtract to get to the total amount listed if that is something that you could help me with.

Specifically, I am looking at report AR675000, where the sum of ARTran.NetSalesAmount is a different total of the total sales by customer if I were to run a Sales Order Details by Customer report (SO611000).

Thank you in advance.


4 Replies
Royce Lithgo
Posts: 557
 Royce Lithgo
November 7, 2018 6:28 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

[PXDBCalced(typeof(Mult<Switch<Case<Where<ARTran.drCr, Equal<DrCr.debit>>, Minus<decimal1>>, decimal1>, Sub<Sub<Sub<ARTran.grossSalesAmount, ARTran.discAmt>, ARTran.groupDiscountAmount>, ARTran.documentDiscountAmount>>), typeof(Decimal))]

From ARTran DAC.

Looks like it's Sales Amount less discount amount, group discount amount and document discount amount. 


Reply
Brandon Crisp reacted
 Brandon Crisp
(@brandon-crisp)
Joined: 8 years ago

Member
Posts: 10
November 8, 2018 8:45 am
Reply toRoyce LithgoRoyce Lithgo

Thank you, Royce. May I ask how I can find that information myself within my Acumatica instance?


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
November 8, 2018 5:27 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

Search for "source" and it should match Source Code.

On Find in Files tab, search for NetSalesAmount - first match is the DAC, expand the 
#region NetSalesAmount by clicking it and there's the code!


Reply
Tim Rodman and Brandon Crisp reacted
 Brandon Crisp
(@brandon-crisp)
Joined: 8 years ago

Member
Posts: 10
November 9, 2018 10:34 am
Reply toRoyce LithgoRoyce Lithgo

Thanks Royce, you've been extremely helpful!


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
  • 34 Online
  • 2,412 Members
Our newest member: kadencewp
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

  • Tim Rodman
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.

‹›×

    ‹›×