Fixed job costing bugs. BOD-247
This commit is contained in:
@@ -57,9 +57,14 @@ export function TimeTicketModalContainer({
|
||||
.then(handleMutationSuccess)
|
||||
.catch(handleMutationError);
|
||||
} else {
|
||||
//Get selected employee rate.
|
||||
const rate = EmployeeAutoCompleteData.employees.filter(
|
||||
(i) => i.id === values.employeeid
|
||||
)[0].base_rate;
|
||||
|
||||
insertTicket({
|
||||
variables: {
|
||||
timeTicketInput: [{ ...values, bodyshopid: bodyshop.id }],
|
||||
timeTicketInput: [{ ...values, rate, bodyshopid: bodyshop.id }],
|
||||
},
|
||||
})
|
||||
.then(handleMutationSuccess)
|
||||
|
||||
Reference in New Issue
Block a user