Added scoreboard initial design BOD-91

This commit is contained in:
Patrick Fic
2020-06-26 16:25:54 -07:00
parent 4516491c8c
commit 3df456e2dd
41 changed files with 1388 additions and 11 deletions

View File

@@ -33,6 +33,7 @@ export const QUERY_BODYSHOP = gql`
appt_length
stripe_acct_id
ssbuckets
scoreboard_target
employees {
id
first_name
@@ -83,6 +84,8 @@ export const UPDATE_SHOP = gql`
invoice_tax_rates
appt_length
stripe_acct_id
ssbuckets
scoreboard_target
employees {
id
first_name

View File

@@ -0,0 +1,16 @@
import gql from "graphql-tag";
export const SUBSCRIPTION_SCOREBOARD = gql`
subscription SUBSCRIPTION_SCOREBOARD($start: date!, $end: date!) {
scoreboard(where: { _and: { date: { _gte: $start, _lte: $end } } }) {
id
painthrs
bodyhrs
date
job {
id
ro_number
}
}
}
`;