Added new vehicle groupings RPS-74
This commit is contained in:
@@ -91,6 +91,7 @@ export const QUERY_JOB_BY_PK = gql`
|
||||
ro_number
|
||||
updated_at
|
||||
group
|
||||
group_verified
|
||||
v_age
|
||||
v_type
|
||||
loss_date
|
||||
|
||||
@@ -15,6 +15,7 @@ export const REPORTING_GET_JOBS = gql`
|
||||
ownr_fn
|
||||
ins_co_nm
|
||||
group
|
||||
group_verified
|
||||
clm_total
|
||||
clm_no
|
||||
close_date
|
||||
|
||||
@@ -1,15 +1,20 @@
|
||||
import gql from "graphql-tag";
|
||||
|
||||
export const QUERY_GROUPS_BY_MAKE_TYPE = gql`
|
||||
query QUERY_GROUPS_BY_MAKE_TYPE(
|
||||
$make: String!
|
||||
$type: String
|
||||
$isNull: Boolean
|
||||
) {
|
||||
veh_groups(
|
||||
query QUERY_GROUPS_BY_MAKE_TYPE($make: String!, $type: jsonb, $date: date) {
|
||||
groupings(
|
||||
where: {
|
||||
_and: { make: { _eq: $make } }
|
||||
type: { _eq: $type, _is_null: $isNull }
|
||||
_and: [
|
||||
{ make: { _eq: $make } }
|
||||
{ type: { _contains: $type } }
|
||||
{ effective_date: { _lte: $date } }
|
||||
{
|
||||
_or: [
|
||||
{ end_date: { _is_null: true } }
|
||||
{ end_date: { _gt: $date } }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
) {
|
||||
id
|
||||
|
||||
Reference in New Issue
Block a user