Add additional columns for job lines.

This commit is contained in:
Patrick Fic
2024-04-18 11:21:03 -07:00
parent 1d155eb42a
commit 60fa62fa77
10 changed files with 35 additions and 4 deletions

View File

@@ -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;

View File

@@ -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

View File

@@ -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;

View File

@@ -0,0 +1,2 @@
alter table "public"."joblines" add column "mod_lbr_ty" text
null;

View File

@@ -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;

View File

@@ -0,0 +1,2 @@
alter table "public"."joblines" add column "mod_lb_hrs" numeric
null;

View File

@@ -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;

View File

@@ -0,0 +1,2 @@
alter table "public"."joblines" add column "misc_amt" numeric
null;

View File

@@ -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;

View File

@@ -0,0 +1,2 @@
alter table "public"."joblines" add column "lbr_amt" numeric
null;