WIP for Reporting. Pulled out calculations to utility functions.
This commit is contained in:
47
src/graphql/reporting.queries.js
Normal file
47
src/graphql/reporting.queries.js
Normal file
@@ -0,0 +1,47 @@
|
||||
import gql from "graphql-tag";
|
||||
|
||||
export const REPORTING_GET_JOBS = gql`
|
||||
query REPORTING_GET_JOBS($startDate: date, $endDate: date) {
|
||||
jobs(
|
||||
where: {
|
||||
_and: [
|
||||
{ close_date: { _gte: $startDate } }
|
||||
{ close_date: { _lte: $endDate } }
|
||||
{ close_date: { _is_null: false } }
|
||||
]
|
||||
}
|
||||
) {
|
||||
ownr_ln
|
||||
ownr_fn
|
||||
ins_co_nm
|
||||
group
|
||||
clm_total
|
||||
clm_no
|
||||
close_date
|
||||
id
|
||||
loss_date
|
||||
updated_at
|
||||
v_age
|
||||
v_makedesc
|
||||
v_model
|
||||
v_model_yr
|
||||
joblines {
|
||||
act_price
|
||||
db_price
|
||||
part_qty
|
||||
part_type
|
||||
price_diff
|
||||
price_diff_pc
|
||||
updated_at
|
||||
oem_partno
|
||||
line_no
|
||||
line_ind
|
||||
line_desc
|
||||
ignore
|
||||
id
|
||||
db_ref
|
||||
unq_seq
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user