IO-1476 Add Hrs to schedule modal.

This commit is contained in:
Patrick Fic
2021-10-29 11:18:17 -07:00
parent b8f001625b
commit a0922f2944
3 changed files with 1398 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import {
Row,
Select,
Space,
Statistic,
Switch,
Typography,
} from "antd";
@@ -75,6 +76,12 @@ export function ScheduleJobModalComponent({
return (
<Row gutter={[16, 16]}>
<Col span={12}>
<Space>
<Typography.Title level={3}>{lbrHrsData?.jobs_by_pk?.ro_number}</Typography.Title>
<Typography.Title
level={4}
>{`B/R Hrs:${lbrHrsData?.jobs_by_pk.labhrs?.aggregate.sum.mod_lb_hrs}/${lbrHrsData?.jobs_by_pk.larhrs?.aggregate.sum.mod_lb_hrs}`}</Typography.Title>
</Space>
<LayoutFormRow grow>
<Form.Item
name="start"

View File

@@ -208,6 +208,7 @@ export const QUERY_LBR_HRS_BY_PK = gql`
query QUERY_LBR_HRS_BY_PK($id: uuid!) {
jobs_by_pk(id: $id) {
id
ro_number
labhrs: joblines_aggregate(
where: {
_and: [{ mod_lbr_ty: { _neq: "LAR" } }, { removed: { _eq: false } }]

File diff suppressed because one or more lines are too long