plac-micro-common 1.3.101 → 1.3.103
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.
- package/dist/libs/pdf-form/templates/sio-form-en.template.d.ts +1 -1
- package/dist/libs/pdf-form/templates/sio-form-en.template.js +1 -1
- package/dist/libs/pdf-form/templates/sio-form-kh.template.d.ts +1 -1
- package/dist/libs/pdf-form/templates/sio-form-kh.template.js +2 -2
- package/dist/libs/pdf-form/templates/uw-form.template.d.ts +1 -1
- package/dist/libs/pdf-form/templates/uw-form.template.js +40 -3
- package/dist/types/report/_base_report.type.d.ts +4 -0
- package/dist/types/report/_base_report.type.js +2 -0
- package/dist/types/report/index.d.ts +1 -4
- package/dist/types/report/index.js +1 -0
- package/dist/types/report/rpt_cover_note.type.d.ts +15 -4
- package/package.json +1 -1
|
@@ -44,6 +44,10 @@ exports.UW_FORM_TEMPLATE = `
|
|
|
44
44
|
border-bottom: none !important;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
.form-table .sub {
|
|
48
|
+
border: none !important;
|
|
49
|
+
}
|
|
50
|
+
|
|
47
51
|
.form-field-line {
|
|
48
52
|
border-bottom: 1px solid #000;
|
|
49
53
|
min-height: 18px;
|
|
@@ -96,6 +100,14 @@ exports.UW_FORM_TEMPLATE = `
|
|
|
96
100
|
page-break-inside: avoid;
|
|
97
101
|
break-inside: avoid;
|
|
98
102
|
}
|
|
103
|
+
|
|
104
|
+
.underline-field {
|
|
105
|
+
display: inline-block;
|
|
106
|
+
width: 180px; /* Adjust as needed */
|
|
107
|
+
text-align: center;
|
|
108
|
+
border-bottom: 1px solid #000;
|
|
109
|
+
min-height: 20px;
|
|
110
|
+
}
|
|
99
111
|
</style>
|
|
100
112
|
|
|
101
113
|
</head>
|
|
@@ -104,6 +116,10 @@ exports.UW_FORM_TEMPLATE = `
|
|
|
104
116
|
+ '<input type="checkbox" ' + (value===true ? 'checked' : '' ) + ' />' + '<span>មាន / Yes</span>' + ' '
|
|
105
117
|
+ '<input type="checkbox" ' + (value===false ? 'checked' : '' ) + ' />' + '<span>មិនមាន / No</span>' + '</div>' ; } %>
|
|
106
118
|
|
|
119
|
+
<% function yesNotCheckbox(value, name) { return '<div class="flex items-center gap-2" style="margin-top:3px;">'
|
|
120
|
+
+ '<input type="checkbox" ' + (value===true ? 'checked' : '' ) + ' />' + '<span>មែន / Yes</span>' + ' '
|
|
121
|
+
+ '<input type="checkbox" ' + (value===false ? 'checked' : '' ) + ' />' + '<span>មិនមែន / No</span>' + '</div>' ; } %>
|
|
122
|
+
|
|
107
123
|
|
|
108
124
|
<% function renderField(value) { const hasValue=value && value.toString().trim();
|
|
109
125
|
return '<div style="border-bottom:1px solid #000;min-height:18px;width:100%;display:block;margin-top:4px;">' +
|
|
@@ -554,13 +570,34 @@ exports.UW_FORM_TEMPLATE = `
|
|
|
554
570
|
<span>ម្ចាស់បណ្ណសន្យារ៉ាប់រងជាពលរដ្ឋអាមេរិក ឬ ជាប់ពន្ធស្នាក់នៅអាមេរិក ឬ
|
|
555
571
|
មានសិទ្ធិកាន់</span>
|
|
556
572
|
<span> Green Card </span>
|
|
557
|
-
<span
|
|
573
|
+
<span>? </span>
|
|
558
574
|
<p>
|
|
559
575
|
<span>The Policyholder is USA citizen / USA resident for tax purpose or holding
|
|
560
576
|
Green
|
|
561
|
-
Card
|
|
577
|
+
Card ?</span>
|
|
562
578
|
</p>
|
|
563
|
-
|
|
579
|
+
<%- yesNotCheckbox(fatca_info.is_fatca) %>
|
|
580
|
+
<table class="table w-full table-fixed border-collapse form-table">
|
|
581
|
+
<colgroup>
|
|
582
|
+
<col style="width: 25%">
|
|
583
|
+
<col style="width: 70%">
|
|
584
|
+
</colgroup>
|
|
585
|
+
<tr>
|
|
586
|
+
<td class="sub p-2.5 pl-0">
|
|
587
|
+
<span class="label">US TIN#:</span>
|
|
588
|
+
<span class="underline-field">
|
|
589
|
+
<%= fatca_info.us_tin_no || " " %>
|
|
590
|
+
</span>
|
|
591
|
+
</td>
|
|
592
|
+
<td class="sub p-2.5 pl-0">
|
|
593
|
+
<span class="label">លេខកូដលើកលែងFATCA / FATCA Exemption Code (ប្រសិនបើមាន):</span>
|
|
594
|
+
<span class="underline-field">
|
|
595
|
+
<%= fatca_info.fatca_exempt_code || " " %>
|
|
596
|
+
</span>
|
|
597
|
+
</td>
|
|
598
|
+
</tr>
|
|
599
|
+
<tr>
|
|
600
|
+
</table>
|
|
564
601
|
</td>
|
|
565
602
|
</tr>
|
|
566
603
|
</thead>
|
|
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./_base_report.type"), exports);
|
|
17
18
|
__exportStar(require("./rpt_cover_note.type"), exports);
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
+
import { BaseReportResponse } from "./_base_report.type";
|
|
1
2
|
export interface ReportCoverNoteRow {
|
|
2
3
|
no: number;
|
|
3
4
|
receipt_no: string;
|
|
4
5
|
cover_note_no: string;
|
|
5
6
|
application_no: string;
|
|
7
|
+
application_year?: number | null;
|
|
6
8
|
ph_full_name: string;
|
|
7
9
|
la_full_name: string;
|
|
8
10
|
product_name: string;
|
|
9
11
|
sum_assured: number;
|
|
12
|
+
basic_premium?: number | null;
|
|
13
|
+
extra_premium?: number | null;
|
|
10
14
|
total_premium: number;
|
|
11
15
|
premium_paid_usd?: number | null;
|
|
12
16
|
premium_paid_khr?: number | null;
|
|
@@ -15,10 +19,17 @@ export interface ReportCoverNoteRow {
|
|
|
15
19
|
issued_by: string;
|
|
16
20
|
branch_code?: string | null;
|
|
17
21
|
branch_name?: string | null;
|
|
18
|
-
remark?: string | null;
|
|
19
|
-
policy_year?: string | null;
|
|
20
|
-
basic_premium: number;
|
|
21
|
-
extra_premium: number;
|
|
22
22
|
ia_code?: string | null;
|
|
23
23
|
ia_full_name?: string | null;
|
|
24
|
+
remark?: string | null;
|
|
25
|
+
}
|
|
26
|
+
export interface CoverNoteReportResponse extends BaseReportResponse<ReportCoverNoteRow> {
|
|
27
|
+
total: {
|
|
28
|
+
sum_assured: number;
|
|
29
|
+
basic_premium: number;
|
|
30
|
+
extra_premium: number;
|
|
31
|
+
total_premium: number;
|
|
32
|
+
premium_paid_usd: number;
|
|
33
|
+
premium_paid_khr: number;
|
|
34
|
+
};
|
|
24
35
|
}
|