Capture additional fields for Mexico.
This commit is contained in:
@@ -64,6 +64,7 @@ async function DecodeEstimate(filePath, includeFilePathInReturnJob = false, clos
|
|||||||
|
|
||||||
job.rates = [...job.rates || [], ...job.mat_rates || []];
|
job.rates = [...job.rates || [], ...job.mat_rates || []];
|
||||||
delete job.mat_rates
|
delete job.mat_rates
|
||||||
|
job.insp_date = ad2.INSP_DATE;
|
||||||
|
|
||||||
if (job.OWNR_FN === "" || !job.OWNR_FN) job.OWNR_FN = ad2.CLMT_FN;
|
if (job.OWNR_FN === "" || !job.OWNR_FN) job.OWNR_FN = ad2.CLMT_FN;
|
||||||
if (job.OWNR_LN === "" || !job.OWNR_LN) job.OWNR_LN = ad2.CLMT_LN;
|
if (job.OWNR_LN === "" || !job.OWNR_LN) job.OWNR_LN = ad2.CLMT_LN;
|
||||||
@@ -186,9 +187,9 @@ async function DecodeAd1File(extensionlessFilePath) {
|
|||||||
"LOSS_DATE",
|
"LOSS_DATE",
|
||||||
"LOSS_TYPE",
|
"LOSS_TYPE",
|
||||||
"LOSS_DESC",
|
"LOSS_DESC",
|
||||||
// "THEFT_IND",
|
"THEFT_IND",
|
||||||
// "CAT_NO",
|
// "CAT_NO",
|
||||||
// "TLOS_IND",
|
"TLOS_IND",
|
||||||
// "CUST_PR",
|
// "CUST_PR",
|
||||||
// "INSD_LN",
|
// "INSD_LN",
|
||||||
// "INSD_FN",
|
// "INSD_FN",
|
||||||
@@ -251,7 +252,7 @@ async function DecodeAd2File(extensionlessFilePath) {
|
|||||||
} finally {
|
} finally {
|
||||||
if (!dbf) return {};
|
if (!dbf) return {};
|
||||||
let records = await dbf.readRecords(1);
|
let records = await dbf.readRecords(1);
|
||||||
return _.pick(records[0], ["CLMT_LN", "CLMT_FN"]);
|
return _.pick(records[0], ["CLMT_LN", "CLMT_FN", "INSP_DATE"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -23,82 +23,88 @@ insert_permissions:
|
|||||||
authid:
|
authid:
|
||||||
_eq: X-Hasura-User-Id
|
_eq: X-Hasura-User-Id
|
||||||
columns:
|
columns:
|
||||||
|
- id
|
||||||
- bodyshopid
|
- bodyshopid
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
- ro_number
|
||||||
|
- ins_co_nm
|
||||||
- clm_no
|
- clm_no
|
||||||
- clm_total
|
- clm_total
|
||||||
- close_date
|
- ownr_ln
|
||||||
- created_at
|
- ownr_fn
|
||||||
- ded_amt
|
- v_vin
|
||||||
- est_system
|
- v_makedesc
|
||||||
- g_bett_amt
|
- v_model
|
||||||
|
- v_model_yr
|
||||||
|
- v_type
|
||||||
- group
|
- group
|
||||||
- group_verified
|
- v_mileage
|
||||||
- id
|
- v_age
|
||||||
- id_pro_nam
|
|
||||||
- impact_1
|
|
||||||
- impact_2
|
|
||||||
- ins_co_nm
|
|
||||||
- loss_date
|
- loss_date
|
||||||
|
- close_date
|
||||||
|
- group_verified
|
||||||
|
- requires_reimport
|
||||||
|
- ded_amt
|
||||||
- loss_desc
|
- loss_desc
|
||||||
- ownr_addr1
|
- ownr_addr1
|
||||||
- ownr_city
|
- ownr_city
|
||||||
- ownr_fn
|
|
||||||
- ownr_ln
|
|
||||||
- ownr_ph1
|
- ownr_ph1
|
||||||
- rates
|
|
||||||
- requires_reimport
|
|
||||||
- ro_number
|
|
||||||
- supp_amt
|
|
||||||
- totals
|
|
||||||
- updated_at
|
|
||||||
- v_age
|
|
||||||
- v_makedesc
|
|
||||||
- v_mileage
|
|
||||||
- v_model
|
|
||||||
- v_model_yr
|
|
||||||
- v_stage
|
- v_stage
|
||||||
- v_type
|
- rates
|
||||||
- v_vin
|
- totals
|
||||||
|
- supp_amt
|
||||||
|
- g_bett_amt
|
||||||
|
- id_pro_nam
|
||||||
|
- impact_1
|
||||||
|
- impact_2
|
||||||
|
- est_system
|
||||||
|
- tlos_ind
|
||||||
|
- theft_ind
|
||||||
|
- insp_date
|
||||||
select_permissions:
|
select_permissions:
|
||||||
- role: user
|
- role: user
|
||||||
permission:
|
permission:
|
||||||
columns:
|
columns:
|
||||||
- bodyshopid
|
|
||||||
- clm_no
|
|
||||||
- clm_total
|
|
||||||
- close_date
|
|
||||||
- created_at
|
|
||||||
- ded_amt
|
|
||||||
- est_system
|
|
||||||
- g_bett_amt
|
|
||||||
- group
|
|
||||||
- group_verified
|
- group_verified
|
||||||
- id
|
- requires_reimport
|
||||||
|
- theft_ind
|
||||||
|
- tlos_ind
|
||||||
|
- close_date
|
||||||
|
- insp_date
|
||||||
|
- loss_date
|
||||||
|
- rates
|
||||||
|
- totals
|
||||||
|
- clm_total
|
||||||
|
- ded_amt
|
||||||
|
- g_bett_amt
|
||||||
|
- supp_amt
|
||||||
|
- v_age
|
||||||
|
- v_mileage
|
||||||
|
- v_stage
|
||||||
|
- clm_no
|
||||||
|
- est_system
|
||||||
|
- group
|
||||||
- id_pro_nam
|
- id_pro_nam
|
||||||
- impact_1
|
- impact_1
|
||||||
- impact_2
|
- impact_2
|
||||||
- ins_co_nm
|
- ins_co_nm
|
||||||
- loss_date
|
|
||||||
- loss_desc
|
- loss_desc
|
||||||
- ownr_addr1
|
- ownr_addr1
|
||||||
- ownr_city
|
- ownr_city
|
||||||
- ownr_fn
|
- ownr_fn
|
||||||
- ownr_ln
|
- ownr_ln
|
||||||
- ownr_ph1
|
- ownr_ph1
|
||||||
- rates
|
|
||||||
- requires_reimport
|
|
||||||
- ro_number
|
- ro_number
|
||||||
- supp_amt
|
|
||||||
- totals
|
|
||||||
- updated_at
|
|
||||||
- v_age
|
|
||||||
- v_makedesc
|
- v_makedesc
|
||||||
- v_mileage
|
|
||||||
- v_model
|
- v_model
|
||||||
- v_model_yr
|
- v_model_yr
|
||||||
- v_stage
|
|
||||||
- v_type
|
- v_type
|
||||||
- v_vin
|
- v_vin
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
- bodyshopid
|
||||||
|
- id
|
||||||
filter:
|
filter:
|
||||||
bodyshop:
|
bodyshop:
|
||||||
associations:
|
associations:
|
||||||
@@ -110,41 +116,45 @@ update_permissions:
|
|||||||
- role: user
|
- role: user
|
||||||
permission:
|
permission:
|
||||||
columns:
|
columns:
|
||||||
- bodyshopid
|
- group_verified
|
||||||
- clm_no
|
- requires_reimport
|
||||||
- clm_total
|
- theft_ind
|
||||||
|
- tlos_ind
|
||||||
- close_date
|
- close_date
|
||||||
- created_at
|
- insp_date
|
||||||
|
- loss_date
|
||||||
|
- rates
|
||||||
|
- totals
|
||||||
|
- clm_total
|
||||||
- ded_amt
|
- ded_amt
|
||||||
- g_bett_amt
|
- g_bett_amt
|
||||||
|
- supp_amt
|
||||||
|
- v_age
|
||||||
|
- v_mileage
|
||||||
|
- v_stage
|
||||||
|
- clm_no
|
||||||
|
- est_system
|
||||||
- group
|
- group
|
||||||
- group_verified
|
|
||||||
- id
|
|
||||||
- id_pro_nam
|
- id_pro_nam
|
||||||
- impact_1
|
- impact_1
|
||||||
- impact_2
|
- impact_2
|
||||||
- ins_co_nm
|
- ins_co_nm
|
||||||
- loss_date
|
|
||||||
- loss_desc
|
- loss_desc
|
||||||
- ownr_addr1
|
- ownr_addr1
|
||||||
- ownr_city
|
- ownr_city
|
||||||
- ownr_fn
|
- ownr_fn
|
||||||
- ownr_ln
|
- ownr_ln
|
||||||
- ownr_ph1
|
- ownr_ph1
|
||||||
- rates
|
|
||||||
- requires_reimport
|
|
||||||
- ro_number
|
- ro_number
|
||||||
- supp_amt
|
|
||||||
- totals
|
|
||||||
- updated_at
|
|
||||||
- v_age
|
|
||||||
- v_makedesc
|
- v_makedesc
|
||||||
- v_mileage
|
|
||||||
- v_model
|
- v_model
|
||||||
- v_model_yr
|
- v_model_yr
|
||||||
- v_stage
|
|
||||||
- v_type
|
- v_type
|
||||||
- v_vin
|
- v_vin
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
- bodyshopid
|
||||||
|
- id
|
||||||
filter:
|
filter:
|
||||||
bodyshop:
|
bodyshop:
|
||||||
associations:
|
associations:
|
||||||
|
|||||||
@@ -0,0 +1,4 @@
|
|||||||
|
-- Could not auto-generate a down migration.
|
||||||
|
-- Please write an appropriate down migration for the SQL below:
|
||||||
|
-- alter table "public"."jobs" add column "tlos_ind" boolean
|
||||||
|
-- null;
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
alter table "public"."jobs" add column "tlos_ind" boolean
|
||||||
|
null;
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
-- Could not auto-generate a down migration.
|
||||||
|
-- Please write an appropriate down migration for the SQL below:
|
||||||
|
-- alter table "public"."jobs" add column "theft_ind" boolean
|
||||||
|
-- null;
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
alter table "public"."jobs" add column "theft_ind" boolean
|
||||||
|
null;
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
-- Could not auto-generate a down migration.
|
||||||
|
-- Please write an appropriate down migration for the SQL below:
|
||||||
|
-- alter table "public"."jobs" add column "insp_date" date
|
||||||
|
-- null;
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
alter table "public"."jobs" add column "insp_date" date
|
||||||
|
null;
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
"productName": "ImEX RPS",
|
"productName": "ImEX RPS",
|
||||||
"author": "ImEX Systems Inc. <support@thinkimex.com>",
|
"author": "ImEX Systems Inc. <support@thinkimex.com>",
|
||||||
"description": "ImEX RPS",
|
"description": "ImEX RPS",
|
||||||
"version": "1.4.2-alpha.12",
|
"version": "1.4.2-alpha.13",
|
||||||
"main": "electron/main.js",
|
"main": "electron/main.js",
|
||||||
"homepage": "./",
|
"homepage": "./",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user