Added allocation adding + basic pull

This commit is contained in:
Patrick Fic
2020-02-10 19:19:48 -08:00
parent 51a01d452c
commit cf6d51e896
10 changed files with 279 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
import { gql } from "apollo-boost";
export const INSERT_ALLOCATION = gql`
mutation INSERT_ALLOCATION($alloc: [allocations_insert_input!]!) {
insert_allocations(objects: $alloc) {
returning {
id
}
}
}
`;

View File

@@ -20,6 +20,13 @@ export const QUERY_BODYSHOP = gql`
updated_at
zip_post
region_config
employees {
id
first_name
last_name
employee_number
cost_center
}
}
}
`;

View File

@@ -18,6 +18,15 @@ export const GET_JOB_LINES_BY_PK = gql`
lbr_op
lbr_amt
op_code_desc
allocations {
id
hours
employee {
id
first_name
last_name
}
}
}
}
`;