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
Acumatica Generic I...
Show Credit Memos a...
 
Notifications
Clear all

Questions Show Credit Memos as Negative Amounts

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by Andy Katz 1 year ago
11 Posts
6 Users
4 Reactions
8,823 Views
RSS
Kristin Christian
Posts: 11
 Kristin Christian
Topic starter
January 7, 2019 8:24 pm
(@kristin-christian)
Eminent Member
Joined: 6 years ago

I am trying to create what I thought would be a simple formula in a GI to show Credit Memos as negative amounts, and all others as positive. Keep in mind there are credit memos that are zero, but I can't seem to get the syntax correct. I was close but the zeros threw it all off. I am using the ARInvoice.DocType  and want to make Doc Type of Credit Memo negative for the ARTran.curyTranAmt. I thought this would be simple, but I am clearly doing something wrong and keep getting syntax errors. If there is some kind of document that can assist me with syntax you can point me to, I'm sure I could figure it out. 


10 Replies
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
January 9, 2019 1:52 pm
(@timrodman)
Famed Member
Joined: 11 years ago

You can try something like this:

=IIf([ARInvoice.DocType]='CRM',-[ARInvoice.CuryOrigDocAmt],[ARInvoice.CuryOrigDocAmt])

The key is knowing the code for the document type (CRM in this case). The way I find that out is dropping a new field and using the following formula which converts the display value to the code value:

=CStr([ARInvoice.DocType])

 


Reply
dwan reacted
Travis
 Travis
(@travisl)
Joined: 4 years ago

Trusted Member
Posts: 41
January 15, 2024 8:26 am
Reply toTim RodmanTim Rodman

@timrodman Nice!  Didn't know that!  I've used the filters to filter the report the way I want it then use trace to see the SQL which shows the value.


Reply
Tim Rodman reacted
Katie Phillips
Posts: 19
 Katie Phillips
December 7, 2023 4:40 pm
(@kphillips)
Eminent Member
Joined: 6 years ago

I can get this formula to work in the GI, but when I export to Excel the fields are not being recognized as a number. So, I can't do any further manipulating of the data. Has anyone else experienced this? Anyway around it?


Reply
jmmarasco
Posts: 9
 jmmarasco
December 7, 2023 5:41 pm
(@jmmarasco)
Active Member
Joined: 6 years ago

Hi Kristin,

Here is the formula I use and I get negative numbers.

=IIF([ARInvoice.DocType]='CRM',[ARInvoice.OrigDocAmt]*-1,[ARInvoice.OrigDocAmt])

You may need to change the fields to suit your needs but I believe the *-1 is the key.

Hope this works for you!

screenshot 1206
screenshot 1207

 

 


Reply
Katie Phillips
 Katie Phillips
(@kphillips)
Joined: 6 years ago

Eminent Member
Posts: 19
December 8, 2023 10:33 am
Reply tojmmarascojmmarasco

@jmmarasco Thank you for your response! I'm not having any issues getting the negative numbers to show in Acumatica. It's when I export to Excel. The numbers aren't exported as "numbers" even though they look like it. So I can't do any calculations with them. I tried formatting the cell, but that doesn't change anything. I was able to copy and paste values in a different column. Then I could convert text to numbers. I adjusted my formula in my GI to match yours, but I have the same results.

 

ExcelFile

Reply
jmmarasco
Posts: 9
 jmmarasco
December 8, 2023 12:30 pm
(@jmmarasco)
Active Member
Joined: 6 years ago

Hi Katie, I just tested an export of my AR Invoices GI and I was able to sum the columns and create different formulas without any issues. Maybe its a version or setup issue? I am running the latest version of Microsoft 365 on a Mac and Acumatica 2022 V2. Also, maybe a crazy thought, but I wonder if it has anything to do with the "Schema Field" selection in your GI? I included a pic of what I use for reference.

screenshot 1209

 

screenshot 1210

 


Reply
Katie Phillips
 Katie Phillips
(@kphillips)
Joined: 6 years ago

Eminent Member
Posts: 19
December 8, 2023 3:53 pm
Reply tojmmarascojmmarasco

@jmmarasco The Schema Field is the missing link! Thank you!


Reply
Tim Rodman reacted
Tim Rodman
 Tim Rodman
Admin
(@timrodman)
Joined: 11 years ago

Famed Member
Posts: 3204
December 15, 2023 8:20 pm
Reply toKatie PhillipsKatie Phillips
jmmarasco

@kphillips I wish that Schema Field was just called Format because that's really what it is.


Reply
Katie Phillips reacted
jmmarasco
Posts: 9
 jmmarasco
December 8, 2023 4:10 pm
(@jmmarasco)
Active Member
Joined: 6 years ago

WOW, that was kinda a shot in the dark, happy to hear it worked for you!!


Reply
Andy Katz
Posts: 5
 Andy Katz
February 21, 2025 12:10 am
(@akatz)
Active Member
Joined: 1 year ago

I know this is a bit of an old thread, but thought I'd post a Report Designer fix for getting credit memo values to show as negative in the report. Found this in the Community forum: https://community.acumatica.com/reports-and-generic-inquires-115/print-values-as-negative-in-report-designer-16991.

Can't say if this would work in a GI or not, just thought I'd throw it out there:

"In the ARRegister and ARInvoice tables there are fields titled “SignAmount” that reflect 1 for invoices and -1 for Credit Memos.  This could be used as  a multiplier in a formula for the document balance -  ARINVOICE.CURYDOCBAL * ARINVOICESIGNAMOUNT."

I used these quite successfully in my field definitions and didn't require I call the doc type that increased the complexity of the definition.


Reply
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,533 Topics
  • 11 K Posts
  • 70 Online
  • 2,439 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.

‹›×

    ‹›×