Updated UI and added tech elements.

This commit is contained in:
Patrick Fic
2023-07-21 13:40:39 -07:00
parent 8dfcda6c5e
commit 7b49a94edd
14 changed files with 210 additions and 33 deletions

View File

@@ -33,7 +33,7 @@ exports.claimtask = async function (req, res) {
);
//Get all of the assignments that are filtered.
const { employeeHash } = CalculateExpectedHoursForJob(
const { assignmentHash, employeeHash } = CalculateExpectedHoursForJob(
job,
theTaskPreset.hourstype
);
@@ -83,7 +83,7 @@ exports.claimtask = async function (req, res) {
},
});
}
res.json(ticketsToInsert);
res.json({ unassignedHours: assignmentHash.unassigned, ticketsToInsert });
} catch (error) {
logger.log("job-payroll-claim-task-error", "ERROR", req.user.email, jobid, {
jobid: jobid,