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...
IIF Formula with no...
 
Notifications
Clear all

Questions IIF Formula with no result

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by Taylan 8 years ago
3 Posts
2 Users
1 Reactions
3,379 Views
RSS
Taylan
Posts: 66
 Taylan
Topic starter
February 2, 2018 6:07 pm
(@taylan)
Estimable Member
Joined: 8 years ago

Hi,

I have this very simple formula,

=IIF( [ARInvoice.DocType]='Credit Memo', [ARInvoice.CuryOrigDocAmt]*(-1), [ARInvoice.CuryOrigDocAmt])

A single table on a GI, ARInvoice. If the document type is invoice, I want the actual amount, if credit memo, then multiply by -1. I have replaced 'Credit Memo' by CM, and tried both cases with and without quotes but none worked.

Thank you for your help (Tim ๐Ÿ™‚ )


2 Replies
Tim Rodman
Posts: 3193
 Tim Rodman
Admin
February 2, 2018 10:23 pm
(@timrodman)
Famed Member
Joined: 10 years ago

ARInvoice.DocType is trying to compare itself to the database values, not the values displayed on the screen.

If you run the following in SQL, you can see the possible values:

SELECT DISTINCT DocType
FROM ARInvoice

Here are some of the values:

INV = Invoice
DRM = Debit Memo
CRM = Credit Memo

So replace "Credit Memo" in your formula with "CRM" and see if that works.


Reply
Taylan
 Taylan
(@taylan)
Joined: 8 years ago

Estimable Member
Posts: 66
February 2, 2018 11:00 pm
Reply toTim RodmanTim Rodman

It did work ๐Ÿ™‚

Thank you.


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
  • 30 Online
  • 2,338 Members
Our newest member: Shoaib Shafquat
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

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

โ€นโ€บร—

    โ€นโ€บร—