Hello. I have database that stores data about sales that are done to the clients and sales will be made into invoices at the end of the month. For every sale there are certain employees doing work who get paid hourly. Previous solution for setting how many hours employee worked for that client that day was simply that employees were set up into teams and team was chosen who did work for client. After submitting sale, total hours done was split (divided by 2) and stored into table that held employee hours done. This system was not working very well as sometimes say total work was done 4 hours, but one employee did 1 hour and other one 3 hours of that and you had to change hours done manually because it was split after completing sale.
What I would like to do now is that when sale is already submitted, then you have an option to complete sale which should prompt up window where you can choose employees who did the work and enter hours done manually for every employee you chose. That way I could eliminate the team part. I would like to ask ideas how I can achieve that and get some tips maybe.
Hours done for every employee is needed of course to print payslips at the end of the month for every employee.
Regards