Leather Knight Posted September 14, 2008 Posted September 14, 2008 I have 2 fields, "Dues Paid" and "Dues Due On" to calculate if dues are current or delinquent. However, the code is not working. Say the dues are paid yesterday and today is the due date. The word "Delinquent" should NOT show but Current should. However, that is not the case. How do I make it so if dues are paid today and due yesterday, it will still show current and not delinquent? If ( Dues Paid > Dues Due On ; "Delinquent" ) and If ( Dues Paid < Dues Due On ; "Current" )
stefangs Posted September 14, 2008 Posted September 14, 2008 how about this one: Case (Dues Paid > Dues Due On; "Delinquent"; "Current")
Fitch Posted September 14, 2008 Posted September 14, 2008 Perhaps adding: Case( IsEmpty( Dues Paid ) and Get(CurrentDate) > Dues Due On; "Delinquent"; Dues Paid > Dues Due On; "Delinquent"; "Current" )
Leather Knight Posted September 15, 2008 Author Posted September 15, 2008 Ok, a different way of getting the same problem. If I do that, and put dues are due 3/5/2009 but are paid today, delinquent shows up still.
Leather Knight Posted September 15, 2008 Author Posted September 15, 2008 Hmmm...I had one field text...OOPS! Thanks this works great;)
comment Posted September 16, 2008 Posted September 16, 2008 It will work great tomorrow, too - IF you make the calculation unstored.
Leather Knight Posted September 18, 2008 Author Posted September 18, 2008 Ok, here is a twist..My customer would like to make this reflect a 30 day period. So if X pays on 01/01/2008 then dues would be due on 02/01/2008. Making the dues due on a calculation now to reflect the due date. But also changing the "current/delinquent" notification status. Any idea?
comment Posted September 18, 2008 Posted September 18, 2008 This is not a good arrangement to have. You should have a separate record for every period, ot at least for every payment made. Otherwise you may have someone who paid for January, but didn't pay for February until March - but the calc will show them as current.
Leather Knight Posted September 18, 2008 Author Posted September 18, 2008 Indeed...I guess I need to make a "Payment" record separate and have it related to show the status. As tired as I am this is going to be fun...LOL...
Recommended Posts
This topic is 5910 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now