{`${
+ event.job.ro_number || event.job.est_number
+ }`}
+
{`${
(event.job && event.job.ownr_fn) || ""
} ${(event.job && event.job.ownr_ln) || ""} ${
(event.job && event.job.ownr_co_nm) || ""
- }`}
+ }`}
+
{`${(event.job && event.job.v_model_yr) || ""} ${
(event.job && event.job.v_make_desc) || ""
@@ -118,8 +122,10 @@ export function ScheduleEventComponent({
{`(${
- (event.job && event.job.labhrs.aggregate.sum.mod_lb_hrs) || ""
- } / ${(event.job && event.job.larhrs.aggregate.sum.mod_lb_hrs) || ""})`}
+ (event.job && event.job.labhrs.aggregate.sum.mod_lb_hrs) || "0"
+ } / ${
+ (event.job && event.job.larhrs.aggregate.sum.mod_lb_hrs) || "0"
+ })`}
) : (
@@ -129,7 +135,11 @@ export function ScheduleEventComponent({
);
return (
-
+
{RegularEvent}
);
diff --git a/client/src/components/schedule-production-list/schedule-production-list.component.jsx b/client/src/components/schedule-production-list/schedule-production-list.component.jsx
index b9e26e205..1ea723ddc 100644
--- a/client/src/components/schedule-production-list/schedule-production-list.component.jsx
+++ b/client/src/components/schedule-production-list/schedule-production-list.component.jsx
@@ -42,6 +42,9 @@ export default function ScheduleProductionList() {
{`${j.v_model_yr || ""} ${j.v_make_desc || ""} ${
j.v_model_desc || ""
}`} |
+ {`${j.labhrs.aggregate.sum.mod_lb_hrs || "0"} / ${
+ j.larhrs.aggregate.sum.mod_lb_hrs || "0"
+ }`} |
{j.scheduled_completion}
diff --git a/client/src/graphql/appointments.queries.js b/client/src/graphql/appointments.queries.js
index 294610764..2d3e99a7d 100644
--- a/client/src/graphql/appointments.queries.js
+++ b/client/src/graphql/appointments.queries.js
@@ -192,6 +192,8 @@ export const QUERY_SCHEDULE_LOAD_DATA = gql`
arrJobs: jobs(where: { scheduled_in: { _gte: $start, _lte: $end } }) {
id
scheduled_in
+ est_number
+ ro_number
labhrs: joblines_aggregate(where: { mod_lbr_ty: { _eq: "LAB" } }) {
aggregate {
sum {
diff --git a/client/src/graphql/jobs.queries.js b/client/src/graphql/jobs.queries.js
index 71a1a07bc..79e481bfb 100644
--- a/client/src/graphql/jobs.queries.js
+++ b/client/src/graphql/jobs.queries.js
@@ -1016,6 +1016,21 @@ export const QUERY_JOBS_IN_PRODUCTION = gql`
v_make_desc
v_model_desc
scheduled_completion
+
+ labhrs: joblines_aggregate(where: { mod_lbr_ty: { _eq: "LAB" } }) {
+ aggregate {
+ sum {
+ mod_lb_hrs
+ }
+ }
+ }
+ larhrs: joblines_aggregate(where: { mod_lbr_ty: { _eq: "LAR" } }) {
+ aggregate {
+ sum {
+ mod_lb_hrs
+ }
+ }
+ }
}
}
`;
diff --git a/client/src/translations/en_us/common.json b/client/src/translations/en_us/common.json
index 6d3cb5ffe..6eda9d1ff 100644
--- a/client/src/translations/en_us/common.json
+++ b/client/src/translations/en_us/common.json
@@ -38,11 +38,13 @@
},
"labels": {
"arrivedon": "Arrived on: ",
+ "arrivingjobs": "Arriving Jobs",
"blocked": "Blocked",
"cancelledappointment": "Canceled appointment for: ",
"completingjobs": "Completing Jobs",
"history": "History",
"inproduction": "Jobs In Production",
+ "noarrivingjobs": "No jobs are arriving.",
"nocompletingjobs": "No jobs scheduled for completion.",
"nodateselected": "No date has been selected.",
"priorappointments": "Previous Appointments",
diff --git a/client/src/translations/es/common.json b/client/src/translations/es/common.json
index 4982f9351..340b968ca 100644
--- a/client/src/translations/es/common.json
+++ b/client/src/translations/es/common.json
@@ -38,11 +38,13 @@
},
"labels": {
"arrivedon": "Llegado el:",
+ "arrivingjobs": "",
"blocked": "",
"cancelledappointment": "Cita cancelada para:",
"completingjobs": "",
"history": "",
"inproduction": "",
+ "noarrivingjobs": "",
"nocompletingjobs": "",
"nodateselected": "No se ha seleccionado ninguna fecha.",
"priorappointments": "Nombramientos previos",
diff --git a/client/src/translations/fr/common.json b/client/src/translations/fr/common.json
index 93a93132a..e297525ef 100644
--- a/client/src/translations/fr/common.json
+++ b/client/src/translations/fr/common.json
@@ -38,11 +38,13 @@
},
"labels": {
"arrivedon": "Arrivé le:",
+ "arrivingjobs": "",
"blocked": "",
"cancelledappointment": "Rendez-vous annulé pour:",
"completingjobs": "",
"history": "",
"inproduction": "",
+ "noarrivingjobs": "",
"nocompletingjobs": "",
"nodateselected": "Aucune date n'a été sélectionnée.",
"priorappointments": "Rendez-vous précédents",
|