IO-2667 Employee Tasks report

Signed-off-by: Allan Carr <allan.carr@thinkimex.com>
This commit is contained in:
Allan Carr
2024-04-18 13:42:42 -07:00
parent cf82a8013f
commit 7d22dcab7c
7 changed files with 103 additions and 6 deletions

View File

@@ -67,6 +67,24 @@ export const QUERY_ACTIVE_EMPLOYEES = gql`
}
`;
export const QUERY_ACTIVE_EMPLOYEES_WITH_EMAIL = gql`
query QUERY_ACTIVE_EMPLOYEES_WITH_EMAIL {
employees(where: {active: {_eq: true}, user_email: {_is_null: false}}) {
last_name
id
first_name
employee_number
active
termination_date
hire_date
flat_rate
rates
pin
user_email
}
}
`;
export const INSERT_EMPLOYEES = gql`
mutation INSERT_EMPLOYEES($employees: [employees_insert_input!]!) {
insert_employees(objects: $employees) {