Resolve lab hrs missing non body hrs. IO-714
This commit is contained in:
@@ -35,7 +35,7 @@ export const QUERY_ALL_ACTIVE_APPOINTMENTS = gql`
|
|||||||
v_model_yr
|
v_model_yr
|
||||||
v_make_desc
|
v_make_desc
|
||||||
v_model_desc
|
v_model_desc
|
||||||
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _eq: "LAB" } }) {
|
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _neq: "LAR" } }) {
|
||||||
aggregate {
|
aggregate {
|
||||||
sum {
|
sum {
|
||||||
mod_lb_hrs
|
mod_lb_hrs
|
||||||
@@ -125,7 +125,7 @@ export const QUERY_APPOINTMENT_BY_DATE = gql`
|
|||||||
v_make_desc
|
v_make_desc
|
||||||
v_model_desc
|
v_model_desc
|
||||||
}
|
}
|
||||||
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _eq: "LAB" } }) {
|
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _neq: "LAR" } }) {
|
||||||
aggregate {
|
aggregate {
|
||||||
sum {
|
sum {
|
||||||
mod_lb_hrs
|
mod_lb_hrs
|
||||||
@@ -193,7 +193,7 @@ export const QUERY_SCHEDULE_LOAD_DATA = gql`
|
|||||||
query QUERY_SCHEDULE_LOAD_DATA($start: timestamptz!, $end: timestamptz!) {
|
query QUERY_SCHEDULE_LOAD_DATA($start: timestamptz!, $end: timestamptz!) {
|
||||||
prodJobs: jobs(where: { inproduction: { _eq: true } }) {
|
prodJobs: jobs(where: { inproduction: { _eq: true } }) {
|
||||||
id
|
id
|
||||||
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _eq: "LAB" } }) {
|
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _neq: "LAR" } }) {
|
||||||
aggregate {
|
aggregate {
|
||||||
sum {
|
sum {
|
||||||
mod_lb_hrs
|
mod_lb_hrs
|
||||||
@@ -215,7 +215,7 @@ export const QUERY_SCHEDULE_LOAD_DATA = gql`
|
|||||||
|
|
||||||
ro_number
|
ro_number
|
||||||
scheduled_completion
|
scheduled_completion
|
||||||
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _eq: "LAB" } }) {
|
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _neq: "LAR" } }) {
|
||||||
aggregate {
|
aggregate {
|
||||||
sum {
|
sum {
|
||||||
mod_lb_hrs
|
mod_lb_hrs
|
||||||
@@ -235,7 +235,7 @@ export const QUERY_SCHEDULE_LOAD_DATA = gql`
|
|||||||
scheduled_in
|
scheduled_in
|
||||||
|
|
||||||
ro_number
|
ro_number
|
||||||
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _eq: "LAB" } }) {
|
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _neq: "LAR" } }) {
|
||||||
aggregate {
|
aggregate {
|
||||||
sum {
|
sum {
|
||||||
mod_lb_hrs
|
mod_lb_hrs
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ export const QUERY_DASHBOARD_DETAILS = gql`
|
|||||||
compJobs: jobs(where: { inproduction: { _eq: true } }) {
|
compJobs: jobs(where: { inproduction: { _eq: true } }) {
|
||||||
id
|
id
|
||||||
scheduled_completion
|
scheduled_completion
|
||||||
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _eq: "LAB" } }) {
|
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _neq: "LAR" } }) {
|
||||||
aggregate {
|
aggregate {
|
||||||
sum {
|
sum {
|
||||||
mod_lb_hrs
|
mod_lb_hrs
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ export const SUBSCRIPTION_JOBS_IN_PRODUCTION = gql`
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _eq: "LAB" } }) {
|
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _neq: "LAR" } }) {
|
||||||
aggregate {
|
aggregate {
|
||||||
sum {
|
sum {
|
||||||
mod_lb_hrs
|
mod_lb_hrs
|
||||||
@@ -196,7 +196,7 @@ export const QUERY_LBR_HRS_BY_PK = gql`
|
|||||||
query QUERY_LBR_HRS_BY_PK($id: uuid!) {
|
query QUERY_LBR_HRS_BY_PK($id: uuid!) {
|
||||||
jobs_by_pk(id: $id) {
|
jobs_by_pk(id: $id) {
|
||||||
id
|
id
|
||||||
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _eq: "LAB" } }) {
|
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _neq: "LAR" } }) {
|
||||||
aggregate {
|
aggregate {
|
||||||
sum {
|
sum {
|
||||||
mod_lb_hrs
|
mod_lb_hrs
|
||||||
@@ -1112,7 +1112,7 @@ export const QUERY_JOBS_IN_PRODUCTION = gql`
|
|||||||
v_model_desc
|
v_model_desc
|
||||||
scheduled_completion
|
scheduled_completion
|
||||||
|
|
||||||
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _eq: "LAB" } }) {
|
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _neq: "LAR" } }) {
|
||||||
aggregate {
|
aggregate {
|
||||||
sum {
|
sum {
|
||||||
mod_lb_hrs
|
mod_lb_hrs
|
||||||
|
|||||||
@@ -23,16 +23,20 @@ Dinero.defaultCurrency = "CAD";
|
|||||||
Dinero.globalLocale = "en-CA";
|
Dinero.globalLocale = "en-CA";
|
||||||
Dinero.globalRoundingMode = "HALF_UP";
|
Dinero.globalRoundingMode = "HALF_UP";
|
||||||
|
|
||||||
Sentry.init({
|
if (process.env.NODE_ENV !== "development") {
|
||||||
dsn:
|
Sentry.init({
|
||||||
"https://fd7e89369b6b4bdc9c6c4c9f22fa4ee4@o492140.ingest.sentry.io/5651027",
|
dsn:
|
||||||
integrations: [new Integrations.BrowserTracing()],
|
"https://fd7e89369b6b4bdc9c6c4c9f22fa4ee4@o492140.ingest.sentry.io/5651027",
|
||||||
environment: process.env || "development",
|
integrations: [
|
||||||
enabled: process.env !== "development",
|
new Integrations.BrowserTracing(),
|
||||||
// We recommend adjusting this value in production, or using tracesSampler
|
// new Sentry.Integrations.Breadcrumbs({ console: true }),
|
||||||
// for finer control
|
],
|
||||||
tracesSampleRate: 0.5,
|
environment: process.env.NODE_ENV,
|
||||||
});
|
// We recommend adjusting this value in production, or using tracesSampler
|
||||||
|
// for finer control
|
||||||
|
tracesSampleRate: 0.5,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<Provider store={store}>
|
<Provider store={store}>
|
||||||
|
|||||||
@@ -228,7 +228,7 @@ query QUERY_UPCOMING_APPOINTMENTS($now: timestamptz!, $jobId: uuid!) {
|
|||||||
jobs(where: {inproduction: {_eq: true}}) {
|
jobs(where: {inproduction: {_eq: true}}) {
|
||||||
id
|
id
|
||||||
scheduled_completion
|
scheduled_completion
|
||||||
labhrs: joblines_aggregate(where: {mod_lbr_ty: {_eq: "LAB"}}) {
|
labhrs: joblines_aggregate(where: {mod_lbr_ty: {_neq: "LAR"}}) {
|
||||||
aggregate {
|
aggregate {
|
||||||
sum {
|
sum {
|
||||||
mod_lb_hrs
|
mod_lb_hrs
|
||||||
|
|||||||
Reference in New Issue
Block a user