WIP Payroll Commit process.
This commit is contained in:
@@ -83,6 +83,8 @@ export const QUERY_TIME_TICKETS_IN_RANGE_SB = gql`
|
||||
productivehrs
|
||||
memo
|
||||
jobid
|
||||
committed_at
|
||||
committed_by
|
||||
flat_rate
|
||||
job {
|
||||
id
|
||||
@@ -149,6 +151,39 @@ export const INSERT_NEW_TIME_TICKET = gql`
|
||||
}
|
||||
`;
|
||||
|
||||
export const INSERT_TIME_TICKET_AND_APPROVE = gql`
|
||||
mutation INSERT_TIME_TICKET_AND_APPROVE(
|
||||
$timeTicketInput: [timetickets_insert_input!]!
|
||||
$approvalIds: [uuid!]!
|
||||
$approvalUpdate: tt_approval_queue_set_input
|
||||
) {
|
||||
insert_timetickets(objects: $timeTicketInput) {
|
||||
returning {
|
||||
id
|
||||
clockon
|
||||
clockoff
|
||||
employeeid
|
||||
productivehrs
|
||||
actualhrs
|
||||
ciecacode
|
||||
date
|
||||
memo
|
||||
flat_rate
|
||||
}
|
||||
}
|
||||
update_tt_approval_queue(
|
||||
where: { id: { _in: $approvalIds } }
|
||||
_set: $approvalUpdate
|
||||
) {
|
||||
returning {
|
||||
id
|
||||
approved_at
|
||||
approved_at
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const UPDATE_TIME_TICKET = gql`
|
||||
mutation UPDATE_TIME_TICKET(
|
||||
$timeticketId: uuid!
|
||||
|
||||
Reference in New Issue
Block a user