@provis/provis-common-be-module 2.2.13 → 2.2.15
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.
|
@@ -205,15 +205,18 @@ class MainRepository extends typeorm_1.Repository {
|
|
|
205
205
|
if (valueSearch) {
|
|
206
206
|
if (index == 0) {
|
|
207
207
|
if (isFirstJoin) {
|
|
208
|
+
// where for first join in left join after primary, ex claim ... and (this) claimCargo ...
|
|
208
209
|
query = query.andWhere(`${relation.model}.${valueSearch.query}`, { [valueSearch.key]: valueSearch.value });
|
|
209
210
|
isFirstJoin = false;
|
|
210
211
|
}
|
|
211
212
|
else {
|
|
212
|
-
|
|
213
|
+
// for next join in left join , ex claim ... and claimCargo ... or (this) claimKalog ...
|
|
214
|
+
query = query.orWhere(`${relation.model}.${valueSearch.query}`, { [valueSearch.key]: valueSearch.value });
|
|
213
215
|
}
|
|
214
216
|
index++;
|
|
215
217
|
}
|
|
216
218
|
else {
|
|
219
|
+
// for next where in left join , ex claim ... and claimCargo ... or claimKalog ... and (this) claimKalog ...
|
|
217
220
|
query = query.andWhere(`${relation.model}.${valueSearch.query}`, { [valueSearch.key]: valueSearch.value });
|
|
218
221
|
}
|
|
219
222
|
}
|
|
@@ -22,9 +22,17 @@ const quotation = {
|
|
|
22
22
|
id: "Catatan Komisi"
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
|
+
TYPE_QUOTATION_ATTACHMENT_POLICY: {
|
|
26
|
+
code: 'POLICY',
|
|
27
|
+
desc: {
|
|
28
|
+
en: "Policy",
|
|
29
|
+
id: "Polis"
|
|
30
|
+
},
|
|
31
|
+
},
|
|
25
32
|
LIST: [],
|
|
26
33
|
};
|
|
27
34
|
quotation.LIST.push(quotation.TYPE_QUOTATION_ATTACHMENT_PREMIUM_NOTE);
|
|
28
35
|
quotation.LIST.push(quotation.TYPE_QUOTATION_ATTACHMENT_COMMISSION_NOTE);
|
|
29
36
|
quotation.LIST.push(quotation.TYPE_QUOTATION_ATTACHMENT_DOC_OTHER);
|
|
37
|
+
quotation.LIST.push(quotation.TYPE_QUOTATION_ATTACHMENT_POLICY);
|
|
30
38
|
exports.default = quotation;
|