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

— The Forums are now read-only —

— All new activity now takes place here: —

AugForums.com Discord Server
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 8 years ago
5 Posts
2 Users
4 Reactions
3,884 Views
RSS
Posts: 10
 Brandon Crisp
Topic starter
November 7, 2018 5: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 7: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 9: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 6: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 11: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,533 Topics
  • 11 K Posts
  • 77 Online
  • 2,438 Members
Our newest member: Ralph Torres
Latest Post: Nested SubReport Issue
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

By using this website, you agree to our Terms of Use (click here)

Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×