Jump to content
Server Maintenance This Week. ×

Calculate charges


This topic is 6993 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

This topic is 6993 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.