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...
HELP - Addition in ...
 
Notifications
Clear all

Questions [Solved] HELP - Addition in nested if statements

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by TRA_User 4 years ago
3 Posts
2 Users
2 Reactions
2,484 Views
RSS
TRA_User
Posts: 15
 TRA_User
Topic starter
June 3, 2021 11:53 am
(@tra_user)
Eminent Member
Joined: 5 years ago

=IIF([SOOrder.RequestDate]<=Today(),'red0',IIF(SOOrder.RequestDate]<=(Today()+3),'yellow','default')).  

In short I'm trying to change sales orders due same day or past due to red, within 3 days to yellow.  I'm a novice and don't know what I'm doing wrong.  

Can I add to the today() function?  And does that add 1 day to the date format?

Can I use the addition operator in nested if statements?

How can I effectively code the request date within 3 days of today's date condition?

Help is appreciated, thanks in advance!


2 Replies
Wyatt.ERP
Posts: 128
 Wyatt.ERP
June 3, 2021 1:12 pm
(@wyatt-erp)
Estimable Member
Joined: 6 years ago

Hi @tra_user,

Give this a shot:

=SWITCH([SOOrder.RequestDate]<=Today(),'red0',Datediff('d',Today(),[SOOrder.RequestDate])<=3,'yellow','default')

 


Reply
TRA_User
 TRA_User
(@tra_user)
Joined: 5 years ago

Eminent Member
Posts: 15
June 3, 2021 1:20 pm
Reply toWyatt.ERPWyatt.ERP

@wyatt-erp That worked!  I was getting close, was already working with the switch and datediff functions.  Thank you!


Reply
Tim Rodman and Wyatt.ERP reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,526 Topics
  • 10.9 K Posts
  • 29 Online
  • 2,327 Members
Our newest member: Sheryl Dole
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

 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.

‹›×

    ‹›×