Newbies Sarah Jayne Davies Posted March 21, 2012 Newbies Posted March 21, 2012 Hi. I have created a FM database on a friend's Mac to record invoices that I receive from one employment agency. I have fields for invoice number, staff name, no. of hours and hourly rate, milage, and the cost which is a calculation field. Sometimes, I have up to five records with the same invoice number and date, but different work dates, hours worked etc as several days may be on one invoice. I want to create a field that adds the end total cost of each field that shares the same invoice number but am struggling. I would also be interested to know if it is possible to make FM stop asking for a "date paid" if an invoice has not been paid. I tried to attach a copy with false names to demonstrate but this website wouldn't allow me to. If anybody has any advice, I would be extremely grateful. Thanks Sarah
Ocean West Posted March 21, 2012 Posted March 21, 2012 Automatic message This topic has been moved from "Community Resources → Articles, Tips, Techniques & Solutions" to "Database Schema & Business Logic → Calculation Engine (Define Fields)".
comment Posted March 21, 2012 Posted March 21, 2012 tried to attach a copy with false names to demonstrate but this website wouldn't allow me to. Zip your file and try again.
Newbies Sarah Jayne Davies Posted March 26, 2012 Author Newbies Posted March 26, 2012 HI. Thanks for your reply. I have had to make a duplicate of the database in order to create a zip file. Thanks again Sarah SJD fmZIP.zip
comment Posted March 26, 2012 Posted March 26, 2012 When you receive an invoice, like Invoice #1 in your file: wouldn't it be easier to enter the common data once into a table of Invoices (1 record) and then enter the three line items into a portal?
Newbies Sarah Jayne Davies Posted March 31, 2012 Author Newbies Posted March 31, 2012 No, because one invoice may contain several days all worked by the same employee. If Mrs X works on Monday, Tuesday, Friday and Saturday in one week, all of those shifts will go onto one timesheet, and therefore one invoice with the same number as the timesheet. I then use the invoice / timesheet number as the reference when paying that invoice via Barclays online banking, making it much easier to do my end of year accounts. When I am checking bank statements and older invoices, I can easily find the information needed by searching for the invoice number. If there was a problem on a particular day, I can also very easily see who was working. Wouldn't having each entry from one timesheet mean that each record would have to have many more fields to accommodate what could be seven shifts? Would that be what you would do? I have been wondered whether an IF STATEMENT could be used?
comment Posted March 31, 2012 Posted March 31, 2012 No, because one invoice may contain several days all worked by the same employee. That's precisely why the answer should be yes. Have a look at the attached file - hopefully it will all become clear. WorkSheets.zip
Recommended Posts
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