Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

  • Newbies
Posted

Hi,

I have a set of 'find results' that I need to manipulate further, and I am not sure what the right direction to go is.

Right now, I am generating an invoice by "period" selection. (User chooses the "period", and FM prints a pre-formatted invoice).

My application is a modification of the FM TimeBilling template, and uses "Time Billing" the and related "Line Items" to produce the report (with a few lookups). The report is sorted by "Project" and produces the total of hours and a subtotal by project on the fly.

But if I have an employee who has multiple timesheets within a period and for a specific project, then the employee is listed multiple times in the report.

For example:


  • Period 1-->
    PROJECT A.
    EMP 1=10 hours
    EMP 2=5 hours
    EMP 3=4 hours
    EMP 1=5 hours
    Total hours=24

I need to figure out a way to have EMP 1 show up only once in the invoice with the total sum of hours (in this case 15).

I don't know if this is db problem or a scripting one?

Can anyone help?

Thanks

RCR

Posted

It sounds like you want to create a subsummary by employee and put your employee fields in it. If they are in the body, then they will repeat as many times are there are instances in the found set. You'll also want a summary field for hours in the same part.

  • Newbies
Posted

Thanks for the reply.

Can I have nested subsummaries like that? The "employee" subsummary would have to be within the existing "Project" subsummary...I seem to recall I tried this and file-maker wouldn't let me do this, but I might be wrong.

Posted

Sure, just put the subsummary parts in the order you want and make sure your script sorts them accordingly by their break fields (in a subsummary by X, the break field is X).

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