WIP Payroll. Added line assignment & begin server side calc.
This commit is contained in:
@@ -119,6 +119,19 @@ export const QUERY_BODYSHOP = gql`
|
||||
tt_enforce_hours_for_tech_console
|
||||
md_tasks_presets
|
||||
use_paint_scale_data
|
||||
employee_teams(
|
||||
order_by: { name: asc }
|
||||
where: { active: { _eq: true } }
|
||||
) {
|
||||
id
|
||||
name
|
||||
employee_team_members {
|
||||
id
|
||||
employeeid
|
||||
labor_rates
|
||||
percentage
|
||||
}
|
||||
}
|
||||
employees {
|
||||
user_email
|
||||
id
|
||||
@@ -235,6 +248,19 @@ export const UPDATE_SHOP = gql`
|
||||
enforce_conversion_category
|
||||
tt_enforce_hours_for_tech_console
|
||||
md_tasks_presets
|
||||
employee_teams(
|
||||
order_by: { name: asc }
|
||||
where: { active: { _eq: true } }
|
||||
) {
|
||||
id
|
||||
name
|
||||
employee_team_members {
|
||||
id
|
||||
employeeid
|
||||
labor_rates
|
||||
percentage
|
||||
}
|
||||
}
|
||||
employees {
|
||||
id
|
||||
first_name
|
||||
|
||||
@@ -51,7 +51,6 @@ export const GET_LINE_TICKET_BY_PK = gql`
|
||||
op_code_desc
|
||||
convertedtolbr
|
||||
convertedtolbr_data
|
||||
|
||||
}
|
||||
timetickets(where: { jobid: { _eq: $id } }) {
|
||||
actualhrs
|
||||
@@ -244,6 +243,7 @@ export const UPDATE_JOB_LINE = gql`
|
||||
removed
|
||||
convertedtolbr
|
||||
convertedtolbr_data
|
||||
assigned_team
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -348,3 +348,19 @@ export const UPDATE_LINE_PPC = gql`
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const UPDATE_LINE_BULK_ASSIGN = gql`
|
||||
mutation UPDATE_LINE_BULK_ASSIGN(
|
||||
$ids: [uuid!]!
|
||||
$jobline: joblines_set_input
|
||||
) {
|
||||
update_joblines_many(
|
||||
updates: { _set: $jobline, where: { id: { _in: $ids } } }
|
||||
) {
|
||||
returning {
|
||||
id
|
||||
assigned_team
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -733,6 +733,7 @@ export const GET_JOB_BY_PK = gql`
|
||||
employeeid
|
||||
}
|
||||
}
|
||||
assigned_team
|
||||
billlines(limit: 1, order_by: { bill: { date: desc } }) {
|
||||
id
|
||||
quantity
|
||||
|
||||
Reference in New Issue
Block a user