Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

I have a field set as a pop-up list with two options for billing people: "Hourly" and "Flat Fee". Then I have a number field called "Fees" in another table.

What I would like to happen is if I choose "Hourly" as the billing type, then the Fees field is a calculation of an HourlyRate * NumberOfHours (each of those is specified in other fields).

If I choose "Flat Fee" for the billing type, I would like to be able to enter whatever amount I want in the "Fees" field.

So, if the billing type is "Hourly" the Fees field need to be a calculation and if it is "Flat Fee" it needs to be a regular field.

Is this possible?

Thanks for your time.

Posted

Set your Fees field as an auto enter calc with Do not replace exisiting unchecked. Then make this the auto enter calc for that field.

Evaluate(Quote(If(BillingType = "Hourly"; RelatedHourlyRate; ""); BillingType)

What this does, is everytime your pop-up list is changed, it updates that calc, it will either be an hourly rate, or blank. If it is blank, type in what you want in there.

Posted

Thanks for you responses guys.

Zero, when I enter yours FM say "Too many parameters in this function" and highlights the semicolon before BillingType) at the end.

Thanks also Lee, however, I need to be able to enter my own values in the Fees field rather than one overall value for a flat fee, because I need to break out different parts of a job into different line items.

Set your Fees field as an auto enter calc with Do not replace exisiting unchecked. Then make this the auto enter calc for that field.

Evaluate(Quote(If(BillingType = "Hourly"; RelatedHourlyRate; ""); BillingType)

What this does, is everytime your pop-up list is changed, it updates that calc, it will either be an hourly rate, or blank. If it is blank, type in what you want in there.

Posted

Thanks for you responses guys.

Zero, when I enter yours FM say "Too many parameters in this function" and highlights the semicolon before BillingType) at the end.

Thanks also Lee, however, I need to be able to enter my own values in the Fees field rather than one overall value for a flat fee, because I need to break out different parts of a job into different line items.

Evaluate(Quote(If(BillingType = "Hourly"; RelatedHourlyRate; "")); BillingType)

:

Posted

I guess I should ask...

If I want it to calculate the Hours * HourlyRate, is that what I put in your equation where it says RealatedHourlyRate?

Thanks.

Posted

Cool. It is working.

However, it is not letting me enter a number. It says "This field cannot be modified."

I have it set as a decimal number field, with the enter in browse mode set. Is it because it's a calculation that it's not letting me enter anything?

Posted

Thanks also Lee, however, I need to be able to enter my own values in the Fees field rather than one overall value for a flat fee, because I need to break out different parts of a job into different line items.

These fields are modifiable? However, you can use the basics of this to set up a Auto Enter, which can then be overridden if you want.

I modified my sample file to show how you can do this using the Auto Enter.

See the second layout and the field named a_charge to see how this can be set up.

HTH

Lee

BillingSelect.fp7_2.zip

This topic is 6962 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.