diff --git a/electron/decoder/decoder.js b/electron/decoder/decoder.js index 1d61eb1..4f19382 100644 --- a/electron/decoder/decoder.js +++ b/electron/decoder/decoder.js @@ -343,7 +343,7 @@ async function DecodeLinFile(extensionlessFilePath, close_date) { "MOD_LBR_TY", // "DB_HRS", - // "MOD_LB_HRS", + "MOD_LB_HRS", // "LBR_INC", // "LBR_OP", // "LBR_HRS_J", @@ -352,8 +352,8 @@ async function DecodeLinFile(extensionlessFilePath, close_date) { // "PAINT_STG", // "PAINT_TONE", // "LBR_TAX", - // "LBR_AMT", - // "MISC_AMT", + "LBR_AMT", + "MISC_AMT", // "MISC_SUBLT", // "MISC_TAX", // "BETT_TYPE", @@ -394,7 +394,6 @@ async function DecodeLinFile(extensionlessFilePath, close_date) { //Moved from V1 function as they may be needed later. delete jobline.prt_dsmk_m; //Delete price markup for wheel repair - delete jobline.mod_lbr_ty; delete jobline.prt_dsmk_p; delete jobline.glass_flag; delete jobline.price_j; diff --git a/hasura/metadata/databases/default/tables/public_joblines.yaml b/hasura/metadata/databases/default/tables/public_joblines.yaml index f898652..3a37afe 100644 --- a/hasura/metadata/databases/default/tables/public_joblines.yaml +++ b/hasura/metadata/databases/default/tables/public_joblines.yaml @@ -23,9 +23,13 @@ insert_permissions: - id - ignore - jobid + - lbr_amt - line_desc - line_ind - line_no + - misc_amt + - mod_lb_hrs + - mod_lbr_ty - oem_partno - part_qty - part_type @@ -72,9 +76,13 @@ update_permissions: - id - ignore - jobid + - lbr_amt - line_desc - line_ind - line_no + - misc_amt + - mod_lb_hrs + - mod_lbr_ty - oem_partno - part_qty - part_type diff --git a/hasura/migrations/default/1713463805847_alter_table_public_joblines_add_column_mod_lbr_ty/down.sql b/hasura/migrations/default/1713463805847_alter_table_public_joblines_add_column_mod_lbr_ty/down.sql new file mode 100644 index 0000000..34edd63 --- /dev/null +++ b/hasura/migrations/default/1713463805847_alter_table_public_joblines_add_column_mod_lbr_ty/down.sql @@ -0,0 +1,4 @@ +-- Could not auto-generate a down migration. +-- Please write an appropriate down migration for the SQL below: +-- alter table "public"."joblines" add column "mod_lbr_ty" text +-- null; diff --git a/hasura/migrations/default/1713463805847_alter_table_public_joblines_add_column_mod_lbr_ty/up.sql b/hasura/migrations/default/1713463805847_alter_table_public_joblines_add_column_mod_lbr_ty/up.sql new file mode 100644 index 0000000..7c0d84f --- /dev/null +++ b/hasura/migrations/default/1713463805847_alter_table_public_joblines_add_column_mod_lbr_ty/up.sql @@ -0,0 +1,2 @@ +alter table "public"."joblines" add column "mod_lbr_ty" text + null; diff --git a/hasura/migrations/default/1713463818100_alter_table_public_joblines_add_column_mod_lb_hrs/down.sql b/hasura/migrations/default/1713463818100_alter_table_public_joblines_add_column_mod_lb_hrs/down.sql new file mode 100644 index 0000000..7d204f5 --- /dev/null +++ b/hasura/migrations/default/1713463818100_alter_table_public_joblines_add_column_mod_lb_hrs/down.sql @@ -0,0 +1,4 @@ +-- Could not auto-generate a down migration. +-- Please write an appropriate down migration for the SQL below: +-- alter table "public"."joblines" add column "mod_lb_hrs" numeric +-- null; diff --git a/hasura/migrations/default/1713463818100_alter_table_public_joblines_add_column_mod_lb_hrs/up.sql b/hasura/migrations/default/1713463818100_alter_table_public_joblines_add_column_mod_lb_hrs/up.sql new file mode 100644 index 0000000..555fcbc --- /dev/null +++ b/hasura/migrations/default/1713463818100_alter_table_public_joblines_add_column_mod_lb_hrs/up.sql @@ -0,0 +1,2 @@ +alter table "public"."joblines" add column "mod_lb_hrs" numeric + null; diff --git a/hasura/migrations/default/1713463835461_alter_table_public_joblines_add_column_misc_amt/down.sql b/hasura/migrations/default/1713463835461_alter_table_public_joblines_add_column_misc_amt/down.sql new file mode 100644 index 0000000..6fff805 --- /dev/null +++ b/hasura/migrations/default/1713463835461_alter_table_public_joblines_add_column_misc_amt/down.sql @@ -0,0 +1,4 @@ +-- Could not auto-generate a down migration. +-- Please write an appropriate down migration for the SQL below: +-- alter table "public"."joblines" add column "misc_amt" numeric +-- null; diff --git a/hasura/migrations/default/1713463835461_alter_table_public_joblines_add_column_misc_amt/up.sql b/hasura/migrations/default/1713463835461_alter_table_public_joblines_add_column_misc_amt/up.sql new file mode 100644 index 0000000..12d752b --- /dev/null +++ b/hasura/migrations/default/1713463835461_alter_table_public_joblines_add_column_misc_amt/up.sql @@ -0,0 +1,2 @@ +alter table "public"."joblines" add column "misc_amt" numeric + null; diff --git a/hasura/migrations/default/1713464020852_alter_table_public_joblines_add_column_lbr_amt/down.sql b/hasura/migrations/default/1713464020852_alter_table_public_joblines_add_column_lbr_amt/down.sql new file mode 100644 index 0000000..c4d2559 --- /dev/null +++ b/hasura/migrations/default/1713464020852_alter_table_public_joblines_add_column_lbr_amt/down.sql @@ -0,0 +1,4 @@ +-- Could not auto-generate a down migration. +-- Please write an appropriate down migration for the SQL below: +-- alter table "public"."joblines" add column "lbr_amt" numeric +-- null; diff --git a/hasura/migrations/default/1713464020852_alter_table_public_joblines_add_column_lbr_amt/up.sql b/hasura/migrations/default/1713464020852_alter_table_public_joblines_add_column_lbr_amt/up.sql new file mode 100644 index 0000000..07b9fe5 --- /dev/null +++ b/hasura/migrations/default/1713464020852_alter_table_public_joblines_add_column_lbr_amt/up.sql @@ -0,0 +1,2 @@ +alter table "public"."joblines" add column "lbr_amt" numeric + null;