I have a system running under fpd2.6 multi-user which is used to collect details of time worked by individuals on various jobs , so as to calculate the cost of each job.
The tables are (greatly simplified)
Person(2 fields ID No & Name),
Job (2 fields job No. & Description) and
Time (fields ID No, date, job No., time)
The employee returns a timesheet which should account for 8 hours ( not always so - e.g. late, sick, half-day holiday).
This seems simple except I must account for all 8 hours for each person. I use the expedient of a temporary empty database on the local drive, enter the records from the timesheet, and add in a record for any shortfall in time returned with a dummy job no..
I then APPEND these records to the server time.dbf.
If I must ammend a records, I have to copy all the records for the particular individual and the relevent date from the server Time.dbf to the local dive and mark as deleted on the server.
I change the details locally, recalculate any unaccounted time and APPEND to the server Time.dbf. I I wish to make no changes, then I must RECALL ALL for the person&date combination
Is there a cleaner and neater way to handle this in vfp?
The tables are (greatly simplified)
Person(2 fields ID No & Name),
Job (2 fields job No. & Description) and
Time (fields ID No, date, job No., time)
The employee returns a timesheet which should account for 8 hours ( not always so - e.g. late, sick, half-day holiday).
This seems simple except I must account for all 8 hours for each person. I use the expedient of a temporary empty database on the local drive, enter the records from the timesheet, and add in a record for any shortfall in time returned with a dummy job no..
I then APPEND these records to the server time.dbf.
If I must ammend a records, I have to copy all the records for the particular individual and the relevent date from the server Time.dbf to the local dive and mark as deleted on the server.
I change the details locally, recalculate any unaccounted time and APPEND to the server Time.dbf. I I wish to make no changes, then I must RECALL ALL for the person&date combination
Is there a cleaner and neater way to handle this in vfp?