BOD-20 added onclick to production schedule + parts totals.

This commit is contained in:
Patrick Fic
2020-04-27 15:08:37 -07:00
parent 2b19d1af0b
commit f04a6fc2af
25 changed files with 580 additions and 120 deletions

View File

@@ -0,0 +1 @@
[]

View File

@@ -0,0 +1,18 @@
- args:
cascade: true
read_only: false
sql: "CREATE OR REPLACE VIEW \"public\".\"productionview\" AS \n SELECT j.id,\n
\ j.status,\n j.ro_number,\n j.est_number,\n j.ownr_fn,\n j.ownr_ln,\n
\ j.v_model_yr,\n j.v_model_desc,\n j.clm_no,\n j.v_make_desc,\n
\ j.v_color,\n j.plate_no,\n j.actual_in,\n j.scheduled_completion,\n
\ j.scheduled_delivery,\n j.ins_co_nm,\n j.clm_total,\n j.ownr_ph1,\n
\ j.special_coverage_policy,\n j.production_vars,\n lab.labhrs,\n lar.larhrs,\n
\ j.shopid,\n parts.*\n FROM ((jobs j\n LEFT JOIN ( SELECT l.jobid,\n
\ sum(l.mod_lb_hrs) AS labhrs\n FROM joblines l\n WHERE
(l.mod_lbr_ty = 'LAB'::text)\n GROUP BY l.jobid) lab ON ((lab.jobid
= j.id)))\n LEFT JOIN ( SELECT l2.jobid,\n sum(l2.mod_lb_hrs)
AS larhrs\n FROM joblines l2\n WHERE (l2.mod_lbr_ty = 'LAR'::text)\n
\ GROUP BY l2.jobid) lar ON ((lar.jobid = j.id)))\n left join ( select
\ l3.jobid, json_agg(l3.status) partcount from joblines l3 group by l3.jobid,
l3.status ) parts on parts.jobid = j.id\n WHERE (j.inproduction = true);"
type: run_sql

View File

@@ -0,0 +1,48 @@
- args:
role: user
table:
name: productionview
schema: public
type: drop_select_permission
- args:
permission:
allow_aggregations: false
columns:
- id
- status
- ro_number
- est_number
- ownr_fn
- ownr_ln
- v_model_yr
- v_model_desc
- clm_no
- v_make_desc
- v_color
- plate_no
- actual_in
- scheduled_completion
- scheduled_delivery
- ins_co_nm
- clm_total
- ownr_ph1
- special_coverage_policy
- production_vars
- labhrs
- larhrs
- shopid
computed_fields: []
filter:
bodyshop:
associations:
_and:
- user:
authid:
_eq: X-Hasura-User-Id
- active:
_eq: true
role: user
table:
name: productionview
schema: public
type: create_select_permission

View File

@@ -0,0 +1,50 @@
- args:
role: user
table:
name: productionview
schema: public
type: drop_select_permission
- args:
permission:
allow_aggregations: false
columns:
- actual_in
- clm_no
- clm_total
- est_number
- id
- ins_co_nm
- jobid
- labhrs
- larhrs
- ownr_fn
- ownr_ln
- ownr_ph1
- partcount
- plate_no
- production_vars
- ro_number
- scheduled_completion
- scheduled_delivery
- shopid
- special_coverage_policy
- status
- v_color
- v_make_desc
- v_model_desc
- v_model_yr
computed_fields: []
filter:
bodyshop:
associations:
_and:
- user:
authid:
_eq: X-Hasura-User-Id
- active:
_eq: true
role: user
table:
name: productionview
schema: public
type: create_select_permission

View File

@@ -0,0 +1,50 @@
- args:
role: user
table:
name: productionview
schema: public
type: drop_select_permission
- args:
permission:
allow_aggregations: false
columns:
- actual_in
- clm_no
- clm_total
- est_number
- id
- ins_co_nm
- jobid
- labhrs
- larhrs
- ownr_fn
- ownr_ln
- ownr_ph1
- partcount
- plate_no
- production_vars
- ro_number
- scheduled_completion
- scheduled_delivery
- shopid
- special_coverage_policy
- status
- v_color
- v_make_desc
- v_model_desc
- v_model_yr
computed_fields: []
filter:
bodyshop:
associations:
_and:
- user:
authid:
_eq: X-Hasura-User-Id
- active:
_eq: true
role: user
table:
name: productionview
schema: public
type: create_select_permission

View File

@@ -0,0 +1,49 @@
- args:
role: user
table:
name: productionview
schema: public
type: drop_select_permission
- args:
permission:
allow_aggregations: false
columns:
- actual_in
- clm_no
- clm_total
- est_number
- id
- ins_co_nm
- jobid
- labhrs
- larhrs
- ownr_fn
- ownr_ln
- ownr_ph1
- plate_no
- production_vars
- ro_number
- scheduled_completion
- scheduled_delivery
- shopid
- special_coverage_policy
- status
- v_color
- v_make_desc
- v_model_desc
- v_model_yr
computed_fields: []
filter:
bodyshop:
associations:
_and:
- user:
authid:
_eq: X-Hasura-User-Id
- active:
_eq: true
role: user
table:
name: productionview
schema: public
type: create_select_permission

View File

@@ -0,0 +1,5 @@
- args:
cascade: false
read_only: false
sql: DROP VIEW "public"."productionview";
type: run_sql

View File

@@ -0,0 +1 @@
[]

View File

@@ -0,0 +1,22 @@
- args:
cascade: true
read_only: false
sql: "CREATE OR REPLACE VIEW \"public\".\"productionview\" AS \n SELECT j.id,\n
\ j.status,\n j.ro_number,\n j.est_number,\n j.ownr_fn,\n j.ownr_ln,\n
\ j.v_model_yr,\n j.v_model_desc,\n j.clm_no,\n j.v_make_desc,\n
\ j.v_color,\n j.plate_no,\n j.actual_in,\n j.scheduled_completion,\n
\ j.scheduled_delivery,\n j.ins_co_nm,\n j.clm_total,\n j.ownr_ph1,\n
\ j.special_coverage_policy,\n j.production_vars,\n lab.labhrs,\n lar.larhrs,\n
\ j.shopid,\n parts.partcount\n FROM ((jobs j\n LEFT JOIN ( SELECT
l.jobid,\n sum(l.mod_lb_hrs) AS labhrs\n FROM joblines
l\n WHERE (l.mod_lbr_ty = 'LAB'::text)\n GROUP BY l.jobid)
lab ON ((lab.jobid = j.id)))\n LEFT JOIN ( SELECT l2.jobid,\n sum(l2.mod_lb_hrs)
AS larhrs\n FROM joblines l2\n WHERE (l2.mod_lbr_ty = 'LAR'::text)\n
\ GROUP BY l2.jobid) lar ON ((lar.jobid = j.id)))\n left join ( select
\ l3.jobid, json_agg(l3.status) partcount from joblines l3 group by l3.jobid
) parts on parts.jobid = j.id\n WHERE (j.inproduction = true);"
type: run_sql
- args:
name: productionview
schema: public
type: add_existing_table_or_view

View File

@@ -0,0 +1,6 @@
- args:
relationship: bodyshop
table:
name: productionview
schema: public
type: drop_relationship

View File

@@ -0,0 +1,13 @@
- args:
name: bodyshop
table:
name: productionview
schema: public
using:
manual_configuration:
column_mapping:
shopid: id
remote_table:
name: bodyshops
schema: public
type: create_object_relationship

View File

@@ -0,0 +1,6 @@
- args:
role: user
table:
name: productionview
schema: public
type: drop_select_permission

View File

@@ -0,0 +1,44 @@
- args:
permission:
allow_aggregations: false
columns:
- id
- status
- ro_number
- est_number
- ownr_fn
- ownr_ln
- v_model_yr
- v_model_desc
- clm_no
- v_make_desc
- v_color
- plate_no
- actual_in
- scheduled_completion
- scheduled_delivery
- ins_co_nm
- clm_total
- ownr_ph1
- special_coverage_policy
- production_vars
- labhrs
- larhrs
- shopid
- partcount
computed_fields: []
filter:
bodyshop:
associations:
_and:
- user:
authid:
_eq: X-Hasura-User-Id
- active:
_eq: true
limit: null
role: user
table:
name: productionview
schema: public
type: create_select_permission