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 4830 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

New to FM11.

I have a pretty simple invoicing database that uses two related tables "EquipmentBilling" and "Invoices"

"Invoices" has a calculation field Discount that determines a discount based on what department

a user is from:

If ( EquipmentBilling::Department <> "25380000" ; 0;

If (Equipment_Used="Imaging Core Computers"; 0;

If (Equipment_Used="Fortessa Flow Cytometer"; 0;

If (Equipment_Used="Training"; 0 ;Cost * .75))))

The problem is that processing of the first line of this calculation, I guess passing the value of the department from the related

EquipmentBilling to Invoices appears slow. So a database user enters a record but no discount is applied even if the department is

"25380000" as entered into EquipmentBilling. Deleting an entry from Invoices corrects the issue and the Discount field is subsequently evaluated correctly; but this is very kludgy.

Any advice greatly appreciated.

Posted

"Invoices" has a calculation field Discount that determines a discount based on what department

a user is from

The actual calculation doesn't look like that's what it does. In any case, you should not be hard-coding data inside a calculation formula. For example, to determine a discount based on the selected department, you should assign a discount rate to each department in the Departments table and look it up from there. This will enable you to modify a department's discount rate without affecting existing invoices.

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