Capture additional information on jobline.

This commit is contained in:
Patrick Fic
2025-03-07 08:39:19 -08:00
parent 40006b6082
commit 36a07c62b0
18 changed files with 73 additions and 9 deletions

View File

@@ -330,7 +330,7 @@ async function DecodeLinFile(extensionlessFilePath, close_date) {
"DB_HRS",
"MOD_LB_HRS",
"LBR_INC",
// "LBR_OP",
"LBR_OP",
"LBR_HRS_J",
// "LBR_TYP_J",
// "LBR_OP_J",
@@ -382,14 +382,6 @@ async function DecodeLinFile(extensionlessFilePath, close_date) {
jobline.alerts = claimsClerk({ jobline, joblines });
//Moved from V1 function as they may be needed later.
delete jobline.lbr_inc;
delete jobline.lbr_hrs_j;
delete jobline.prt_dsmk_m; //Delete price markup for wheel repair
delete jobline.prt_dsmk_p;
delete jobline.glass_flag;
delete jobline.price_j;
delete jobline.line_ref;
return jobline;
});

View File

@@ -22,13 +22,18 @@ insert_permissions:
- db_hrs
- db_price
- db_ref
- glass_flag
- id
- ignore
- jobid
- lbr_amt
- lbr_hrs_j
- lbr_inc
- lbr_op
- line_desc
- line_ind
- line_no
- line_ref
- misc_amt
- mod_lb_hrs
- mod_lbr_ty
@@ -37,6 +42,9 @@ insert_permissions:
- part_type
- price_diff
- price_diff_pc
- price_j
- prt_dsmk_m
- prt_dsmk_p
- unq_seq
- updated_at
select_permissions:
@@ -49,13 +57,18 @@ select_permissions:
- db_hrs
- db_price
- db_ref
- glass_flag
- id
- ignore
- jobid
- lbr_amt
- lbr_hrs_j
- lbr_inc
- lbr_op
- line_desc
- line_ind
- line_no
- line_ref
- misc_amt
- mod_lb_hrs
- mod_lbr_ty
@@ -64,6 +77,9 @@ select_permissions:
- part_type
- price_diff
- price_diff_pc
- price_j
- prt_dsmk_m
- prt_dsmk_p
- unq_seq
- updated_at
filter:
@@ -83,13 +99,18 @@ update_permissions:
- db_hrs
- db_price
- db_ref
- glass_flag
- id
- ignore
- jobid
- lbr_amt
- lbr_hrs_j
- lbr_inc
- lbr_op
- line_desc
- line_ind
- line_no
- line_ref
- misc_amt
- mod_lb_hrs
- mod_lbr_ty
@@ -98,6 +119,9 @@ update_permissions:
- part_type
- price_diff
- price_diff_pc
- price_j
- prt_dsmk_m
- prt_dsmk_p
- unq_seq
- updated_at
filter:

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_inc" boolean
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."joblines" add column "lbr_inc" boolean
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_hrs_j" boolean
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."joblines" add column "lbr_hrs_j" boolean
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 "prt_dsmk_m" numeric
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."joblines" add column "prt_dsmk_m" 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 "prt_dsmk_p" numeric
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."joblines" add column "prt_dsmk_p" 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 "glass_flag" boolean
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."joblines" add column "glass_flag" boolean
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 "price_j" boolean
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."joblines" add column "price_j" boolean
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 "line_ref" numeric
-- null;

View File

@@ -0,0 +1,2 @@
alter table "public"."joblines" add column "line_ref" 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_op" text
-- null;

View File

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