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...
Conditions and Form...
 
Notifications
Clear all

Questions Conditions and Formulas

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by Taylan 8 years ago
7 Posts
2 Users
1 Reactions
5,627 Views
RSS
Taylan
Posts: 66
 Taylan
Topic starter
February 20, 2018 11:07 am
(@taylan)
Estimable Member
Joined: 8 years ago

I have created a GI to calculate commissions. There are a lot of IIF statements in my Amount column to account for weird cases as we recently moved to Acumatica from Quickbooks and this is the first time we have to do this. Hopefully, in the coming months I can let Acumatica handle this.

The problem is, I want GI to ignore any "Voided" payments, but it still shows them. Also, it does not show any amount if it has a "Multiple Installment split", even though I have an IIF statement to take care of that.

 

= IIf ( [ARAdjust.AdjgDocType] = 'RPM' ,-1,1) * IIf([ARAdjust.AdjdRefNbr]<400000, IIf([ARTran.TranDesc]='Imported from QB', IIf ( [ARTran.CuryTranAmt] < [ARAdjust.CuryAdjdAmt], [ARTran.CuryTranAmt], [ARAdjust.CuryAdjdAmt] ),0),Switch( [ARAdjust.AdjdDocType]='INV', IIf ( [ARAdjust.CuryAdjgAmt] < [ARAdjust.CuryAdjdAmt], [ARAdjust.CuryAdjgAmt], [ARAdjust.CuryAdjdAmt] ) - [SOFreightDetail.CuryFreightAmt], [ARAdjust.AdjdDocType]='DRM', [ARAdjust.CuryAdjgAmt], [ARAdjust.AdjdDocType]='CRM', [ARAdjust.CuryAdjgAmt]*(-1)))

 

Modified for multiple Installment Split
= IIf ( [ARAdjust.AdjgDocType] = 'RPM' ,-1,1) * IIf([ARAdjust.AdjdRefNbr]<400000, IIf([ARTran.TranDesc]='Imported from QB', IIf ( [ARTran.CuryTranAmt] < [ARAdjust.CuryAdjdAmt], [ARTran.CuryTranAmt], [ARAdjust.CuryAdjdAmt] ),0),Switch( [ARAdjust.AdjdDocType]='INV', IIf([ARTran.TranDesc]='Multiple Installment split', [ARAdjust.CuryAdjdAmt] , IIf ( [ARAdjust.CuryAdjgAmt] < [ARAdjust.CuryAdjdAmt], [ARAdjust.CuryAdjgAmt], [ARAdjust.CuryAdjdAmt] ) - [SOFreightDetail.CuryFreightAmt]), [ARAdjust.AdjdDocType]='DRM', [ARAdjust.CuryAdjgAmt], [ARAdjust.AdjdDocType]='CRM', [ARAdjust.CuryAdjgAmt]*(-1)))

I have attached the .xml of the GI, just in case you want to take a look at it.

 

Thank you for your help.

 

Right-click to Download


6 Replies
Tim Rodman
Posts: 3196
 Tim Rodman
Admin
February 20, 2018 2:08 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Try filtering on ARPayment.DocType rather than ARPayment.Status. I think the Voided value in ARPayment.Status is used for something else. A new payment record with ARPayment.DocType of Void Payment gets created for a voided payment.


Reply
Taylan
Posts: 66
 Taylan
Topic starter
February 20, 2018 5:14 pm
(@taylan)
Estimable Member
Joined: 8 years ago

Tim,

 

I have tried it but it does not work. I used "Void Payment" option but it still pulls the payment even though it is voided. Also, the same payment shows as "Payment" and "Void Payment", which kind of defeats the purpose. I was hoping to be able to go by the status. Maybe, this is another bug in 6.10, because I can display the data, but cannot filter with it.

 

Thank you. 


Reply
Tim Rodman
Posts: 3196
 Tim Rodman
Admin
February 21, 2018 5:10 pm
(@timrodman)
Famed Member
Joined: 10 years ago

Ah, yes, good point. That won't work. The Payment creates an additional Void Payment record when you void it.

So, back to your idea, it seems like filtering on the Status should work.

 

I just tried it. With the Voided filter not active, I get the voided payment:

 

With Voided filter in place, it correctly filters out the record:

 

I'm just not sure why it wasn't working for you above.


Reply
Taylan
Posts: 66
 Taylan
Topic starter
February 23, 2018 7:50 am
(@taylan)
Estimable Member
Joined: 8 years ago

Tim,

From the screenshots I can tell that you are using at least 2017 R1, if not R2 or later. I hope it will work for me as well once I do the switch from 6.10.

Thank you.


Reply
Tim Rodman
Posts: 3196
 Tim Rodman
Admin
February 23, 2018 10:02 pm
(@timrodman)
Famed Member
Joined: 10 years ago

It's possible, but I thought they fixed this issue back in 6.0. I could be wrong though.

You might try one more thing. To see the Type value as it is stored in the database, add the following calculated column:

 

Which will show you that the Type of Payment gets stored in the database as PMT

 

So, try using PMT on the Conditions tab instead (make sure you uncheck the From Schema box)

 

And see if that filters out the Payment record like it does for me:


Reply
Taylan
Posts: 66
 Taylan
Topic starter
February 24, 2018 5:30 pm
(@taylan)
Estimable Member
Joined: 8 years ago

I did try it without the Cstr, and it did not work. I will try with CStr and let you know.

Thank you.


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,527 Topics
  • 10.9 K Posts
  • 39 Online
  • 2,411 Members
Our newest member: thollings
Latest Post: Invoice subreport for line-level tax breakdown not tieing to taxes subtotal
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.

‹›×

    ‹›×