@provis/provis-common-be-module 1.4.33 → 1.4.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,28 +5,28 @@ statusClaim.INITIAL = {
|
|
|
5
5
|
code: '100',
|
|
6
6
|
desc: {
|
|
7
7
|
en: 'Initial Report',
|
|
8
|
-
id: 'Pelaporan
|
|
8
|
+
id: 'Pelaporan perbaikan pertama berhasil dilaporkan'
|
|
9
9
|
},
|
|
10
10
|
};
|
|
11
11
|
statusClaim.INITIAL_APPROVED = {
|
|
12
12
|
code: '101',
|
|
13
13
|
desc: {
|
|
14
14
|
en: 'Initial report approved',
|
|
15
|
-
id: 'Pelaporan
|
|
15
|
+
id: 'Pelaporan perbaikan pertama disetujui'
|
|
16
16
|
},
|
|
17
17
|
};
|
|
18
18
|
statusClaim.INITIAL_COMPLETED = {
|
|
19
19
|
code: '102',
|
|
20
20
|
desc: {
|
|
21
21
|
en: 'Initial report completed',
|
|
22
|
-
id: 'Pelaporan
|
|
22
|
+
id: 'Pelaporan perbaikan pertama selesai'
|
|
23
23
|
},
|
|
24
24
|
};
|
|
25
25
|
statusClaim.INITIAL_REVISION = {
|
|
26
26
|
code: '103',
|
|
27
27
|
desc: {
|
|
28
28
|
en: 'Initial report revision',
|
|
29
|
-
id: 'Pelaporan
|
|
29
|
+
id: 'Pelaporan perbaikan revisi'
|
|
30
30
|
},
|
|
31
31
|
};
|
|
32
32
|
statusClaim.WAIT_DOCUMENT_COMPLETION = {
|
|
@@ -47,7 +47,7 @@ statusClaim.CHECK_DOCUMENT = {
|
|
|
47
47
|
code: '120',
|
|
48
48
|
desc: {
|
|
49
49
|
en: 'Checking Document',
|
|
50
|
-
id: '
|
|
50
|
+
id: 'Perbaikan dalam pemeriksaan'
|
|
51
51
|
},
|
|
52
52
|
};
|
|
53
53
|
statusClaim.REVIEW_PROVIS = {
|
|
@@ -82,7 +82,7 @@ statusClaim.SUBMIT_CLAIM_TO_INSURANCE = {
|
|
|
82
82
|
code: '200',
|
|
83
83
|
desc: {
|
|
84
84
|
en: 'Submit Claim to Insurance',
|
|
85
|
-
id: '
|
|
85
|
+
id: 'Perbaikan Telah di teruskan ke asuransi'
|
|
86
86
|
},
|
|
87
87
|
};
|
|
88
88
|
statusClaim.REVISION_DOCUMENT_BY_INSURANCE = {
|
|
@@ -103,21 +103,21 @@ statusClaim.CLAIM_APPROVED = {
|
|
|
103
103
|
code: '300',
|
|
104
104
|
desc: {
|
|
105
105
|
en: 'Claim Approved',
|
|
106
|
-
id: '
|
|
106
|
+
id: 'Perbaikan diterima'
|
|
107
107
|
},
|
|
108
108
|
};
|
|
109
109
|
statusClaim.CLAIM_PAID = {
|
|
110
110
|
code: '310',
|
|
111
111
|
desc: {
|
|
112
112
|
en: 'Claim Paid',
|
|
113
|
-
id: '
|
|
113
|
+
id: 'Perbaikan berhasil dibayar'
|
|
114
114
|
},
|
|
115
115
|
};
|
|
116
116
|
statusClaim.CLAIM_REJECTED = {
|
|
117
117
|
code: '400',
|
|
118
118
|
desc: {
|
|
119
119
|
en: 'Claim Rejected',
|
|
120
|
-
id: '
|
|
120
|
+
id: 'Perbaikan belum memenuhi kriteria'
|
|
121
121
|
},
|
|
122
122
|
};
|
|
123
123
|
statusClaim.LIST_ACTIVE = [
|
|
@@ -33,8 +33,18 @@ function readExcel(file, data) {
|
|
|
33
33
|
e: { c: endColumn, r: endRow },
|
|
34
34
|
},
|
|
35
35
|
});
|
|
36
|
-
|
|
37
|
-
const
|
|
36
|
+
const remadeRows = rows.map((item) => {
|
|
37
|
+
const remadeItem = {};
|
|
38
|
+
for (const key in item) {
|
|
39
|
+
const trimmedKey = key.trim();
|
|
40
|
+
const value = item[key];
|
|
41
|
+
remadeItem[trimmedKey] =
|
|
42
|
+
typeof value === 'string' ? value.trim() : value;
|
|
43
|
+
}
|
|
44
|
+
return remadeItem;
|
|
45
|
+
});
|
|
46
|
+
for (let i = 0; i < remadeRows.length; i++) {
|
|
47
|
+
const rowData = remadeRows[i];
|
|
38
48
|
const obj = {};
|
|
39
49
|
let isReset = false;
|
|
40
50
|
for (let j = 0; j < listKey.length; j++) {
|
|
@@ -51,7 +61,7 @@ function readExcel(file, data) {
|
|
|
51
61
|
j <= merge.e.c) {
|
|
52
62
|
console.log(`Merged Cell => ${key} | ${header}`, rowData[header]);
|
|
53
63
|
obj[key] = tempData[key];
|
|
54
|
-
const nextRow =
|
|
64
|
+
const nextRow = remadeRows[i + 1];
|
|
55
65
|
if (nextRow) {
|
|
56
66
|
if (nextRow[header] != undefined &&
|
|
57
67
|
nextRow[header] != obj[key]) {
|