@provis/provis-common-be-module 1.4.33 → 1.4.35
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 = {
|
|
@@ -117,7 +117,7 @@ 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]) {
|