Bikeman17 Posted March 3, 2005 Posted March 3, 2005 Hi there, I got an Accounts Receivable file that holds invoices that have outstanding balances. I got two buttons that generate statements. One for the last 30 days and the second one for the last 60 days. They will gather invoices by customer. When an invoice is passed due for 60 days, a 4% charge applies (calculation field). When clicking the second button to produce a statement for a 60 day period, some invoices may be due for the past 30 days only. So, no charge should apply to those one but it is not the case the way I did it. See how I tried to overcome that problem. Here
comment Posted March 3, 2005 Posted March 3, 2005 Try: ChargeDue (calculation, number) = Date < Date ( Month (Status (CurrentDate)) -1, 1, Year (Status (CurrentDate))) Charge (calculation, number) = InvoiceAmount * 0.04 * ChargeDue Total (calculation, number) = InvoiceAmount + Charge For convenience, you can format ChargeDue to display as YES/NO on the layout (Format -> Number .. -> Format as Boolean).
Bikeman17 Posted March 3, 2005 Author Posted March 3, 2005 Hi, I tested the Charge Due field and the result is
comment Posted March 3, 2005 Posted March 3, 2005 Check your input - ChargeDue is a comparison, therefore cannot be blank, unless Date is empty and Do not evaluate if ... is checked.
Recommended Posts
This topic is 7274 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