phx-react 1.3.572 → 1.3.573
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/cjs/components/FormTuition/FormTuition.d.ts +13 -0
- package/dist/cjs/components/FormTuition/FormTuition.js +216 -0
- package/dist/cjs/components/FormTuition/FormTuition.js.map +1 -0
- package/dist/cjs/components/FormTuition/index.d.ts +1 -0
- package/dist/cjs/components/FormTuition/index.js +5 -0
- package/dist/cjs/components/FormTuition/index.js.map +1 -0
- package/dist/cjs/demo/FormTuitionDemo.d.ts +3 -0
- package/dist/cjs/demo/FormTuitionDemo.js +12 -0
- package/dist/cjs/demo/FormTuitionDemo.js.map +1 -0
- package/dist/cjs/index.d.ts +2 -1
- package/dist/cjs/index.js +4 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/query/gql.d.ts +1 -0
- package/dist/cjs/query/gql.js +3 -2
- package/dist/cjs/query/gql.js.map +1 -1
- package/dist/cjs/utils/format-number.d.ts +3 -0
- package/dist/cjs/utils/format-number.js +19 -0
- package/dist/cjs/utils/format-number.js.map +1 -0
- package/dist/esm/components/FormTuition/FormTuition.d.ts +13 -0
- package/dist/esm/components/FormTuition/FormTuition.js +212 -0
- package/dist/esm/components/FormTuition/FormTuition.js.map +1 -0
- package/dist/esm/components/FormTuition/index.d.ts +1 -0
- package/dist/esm/components/FormTuition/index.js +2 -0
- package/dist/esm/components/FormTuition/index.js.map +1 -0
- package/dist/esm/demo/FormTuitionDemo.d.ts +3 -0
- package/dist/esm/demo/FormTuitionDemo.js +9 -0
- package/dist/esm/demo/FormTuitionDemo.js.map +1 -0
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/query/gql.d.ts +1 -0
- package/dist/esm/query/gql.js +2 -1
- package/dist/esm/query/gql.js.map +1 -1
- package/dist/esm/utils/format-number.d.ts +3 -0
- package/dist/esm/utils/format-number.js +15 -0
- package/dist/esm/utils/format-number.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface FormTuitionProps {
|
|
3
|
+
school_id: number;
|
|
4
|
+
user_code: any;
|
|
5
|
+
school_year_id: number;
|
|
6
|
+
program_id: number;
|
|
7
|
+
program_education_id: number;
|
|
8
|
+
studentType: number;
|
|
9
|
+
setDiscountPromotionObject?: any;
|
|
10
|
+
setShowModalPromotionObject?: any;
|
|
11
|
+
setShowModalService?: any;
|
|
12
|
+
}
|
|
13
|
+
export declare const PHXFormTuition: React.FC<FormTuitionProps>;
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.PHXFormTuition = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var react_1 = tslib_1.__importStar(require("react"));
|
|
6
|
+
var client_1 = require("@apollo/client");
|
|
7
|
+
var format_number_1 = require("../../utils/format-number");
|
|
8
|
+
var Button_1 = require("../Button");
|
|
9
|
+
var Skeleton_1 = require("../Skeleton");
|
|
10
|
+
var clientQueryV2_1 = tslib_1.__importDefault(require("../Func/clientQueryV2"));
|
|
11
|
+
var gql_1 = require("../../query/gql");
|
|
12
|
+
var PHXFormTuition = function (_a) {
|
|
13
|
+
var school_id = _a.school_id, user_code = _a.user_code, school_year_id = _a.school_year_id, program_id = _a.program_id, program_education_id = _a.program_education_id, studentType = _a.studentType, setDiscountPromotionObject = _a.setDiscountPromotionObject, setShowModalPromotionObject = _a.setShowModalPromotionObject, setShowModalService = _a.setShowModalService;
|
|
14
|
+
var _b = (0, client_1.useLazyQuery)(gql_1.getTuitionDebtRecordByUserCode, {
|
|
15
|
+
fetchPolicy: 'network-only',
|
|
16
|
+
notifyOnNetworkStatusChange: true
|
|
17
|
+
}), getDataFeeListQuery = _b[0], data = _b[1].data;
|
|
18
|
+
var fetchData = function () { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
|
|
19
|
+
return tslib_1.__generator(this, function (_a) {
|
|
20
|
+
switch (_a.label) {
|
|
21
|
+
case 0: return [4 /*yield*/, (0, clientQueryV2_1["default"])(getDataFeeListQuery, {
|
|
22
|
+
variables: {
|
|
23
|
+
school_id: school_id,
|
|
24
|
+
user_code: user_code,
|
|
25
|
+
school_year_id: school_year_id,
|
|
26
|
+
program_id: program_id,
|
|
27
|
+
program_education_id: program_education_id,
|
|
28
|
+
studentType: studentType
|
|
29
|
+
}
|
|
30
|
+
})];
|
|
31
|
+
case 1:
|
|
32
|
+
_a.sent();
|
|
33
|
+
return [2 /*return*/];
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
}); };
|
|
37
|
+
(0, react_1.useEffect)(function () {
|
|
38
|
+
if (school_year_id) {
|
|
39
|
+
fetchData();
|
|
40
|
+
}
|
|
41
|
+
}, [school_year_id]);
|
|
42
|
+
var _c = (0, react_1.useState)([]), listDebtRecordByStudent = _c[0], setListDebtRecordByStudent = _c[1];
|
|
43
|
+
(0, react_1.useEffect)(function () {
|
|
44
|
+
if (data) {
|
|
45
|
+
setListDebtRecordByStudent(data.tuition_fee_debt_record);
|
|
46
|
+
}
|
|
47
|
+
}, [data]);
|
|
48
|
+
var checkIsCanHoverTuitionRaw = function (listFee) {
|
|
49
|
+
return listFee === null || listFee === void 0 ? void 0 : listFee.some(function (item) { return item.total_promotion_tuition_policy; });
|
|
50
|
+
};
|
|
51
|
+
var totalFeeByCode = function (listData, code) {
|
|
52
|
+
var total = listData === null || listData === void 0 ? void 0 : listData.reduce(function (total, item) { return total + Number(item[code]); }, 0);
|
|
53
|
+
return total;
|
|
54
|
+
};
|
|
55
|
+
return (react_1["default"].createElement(react_1["default"].Fragment, null, listDebtRecordByStudent.length > 0 ? (react_1["default"].createElement("div", { className: '-my-2 overflow-x-auto' },
|
|
56
|
+
react_1["default"].createElement("div", { className: 'inline-block min-w-full py-2 align-middle' },
|
|
57
|
+
react_1["default"].createElement("table", { className: 'min-w-full divide-y divide-gray-300' },
|
|
58
|
+
react_1["default"].createElement("thead", null,
|
|
59
|
+
react_1["default"].createElement("tr", null,
|
|
60
|
+
react_1["default"].createElement("th", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-left text-xs font-semibold text-gray-500 sm:pl-2', scope: 'col' }, "Chi ti\u1EBFt kho\u1EA3n ph\u00ED"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
61
|
+
listDebtRecordByStudent.map(function (item, index) {
|
|
62
|
+
var _a;
|
|
63
|
+
return (react_1["default"].createElement("th", { key: index, className: 'py-2 pl-4 pr-3 text-left text-xs font-semibold text-gray-500 sm:pl-2', scope: 'col' }, ((_a = item.school_term) === null || _a === void 0 ? void 0 : _a.name) || ''));
|
|
64
|
+
}),
|
|
65
|
+
react_1["default"].createElement("th", { className: 'whitespace-nowrap px-2 py-2 text-left text-xs font-semibold text-gray-500 sm:pl-2', scope: 'col' }, "C\u1EA3 n\u0103m"))),
|
|
66
|
+
react_1["default"].createElement("tbody", { className: 'divide-y divide-gray-200 bg-white' },
|
|
67
|
+
react_1["default"].createElement("tr", { className: 'bg-gray-100' },
|
|
68
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "1. H\u1ECDc ph\u00ED"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
69
|
+
listDebtRecordByStudent.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.total_tuition -
|
|
70
|
+
item.total_promotion_tuition_policy -
|
|
71
|
+
item.total_promotion_tuition_seniority -
|
|
72
|
+
item.total_promotion_tuition_scholar_ship -
|
|
73
|
+
item.total_promotion_early))); }),
|
|
74
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(totalFeeByCode(listDebtRecordByStudent, 'total_tuition') -
|
|
75
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') -
|
|
76
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
|
|
77
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_seniority') -
|
|
78
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early')))),
|
|
79
|
+
react_1["default"].createElement("tr", null,
|
|
80
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-5' }, "H\u1ECDc ph\u00ED ni\u00EAm y\u1EBFt"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
81
|
+
listDebtRecordByStudent.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.total_tuition))); }),
|
|
82
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
|
|
83
|
+
react_1["default"].createElement("tr", { className: "".concat(setShowModalPromotionObject
|
|
84
|
+
? checkIsCanHoverTuitionRaw(listDebtRecordByStudent)
|
|
85
|
+
? 'hover:cursor-pointer hover:bg-gray-100'
|
|
86
|
+
: ''
|
|
87
|
+
: ''), onClick: function () {
|
|
88
|
+
if (!setShowModalPromotionObject) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
var isCanClick = checkIsCanHoverTuitionRaw(listDebtRecordByStudent);
|
|
92
|
+
if (isCanClick) {
|
|
93
|
+
setShowModalPromotionObject(true);
|
|
94
|
+
setDiscountPromotionObject(Number((totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') /
|
|
95
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_tuition')) *
|
|
96
|
+
100).toFixed(1));
|
|
97
|
+
}
|
|
98
|
+
} },
|
|
99
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-5' }, "\u01AFu \u0111\u00E3i \u0111\u1ED1i t\u01B0\u1EE3ng"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
100
|
+
listDebtRecordByStudent.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.total_promotion_tuition_policy))); }),
|
|
101
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
|
|
102
|
+
react_1["default"].createElement("tr", null,
|
|
103
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-5' }, "\u01AFu \u0111\u00E3i h\u1ECDc b\u1ED5ng"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
104
|
+
listDebtRecordByStudent.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.total_promotion_tuition_scholar_ship))); }),
|
|
105
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
|
|
106
|
+
react_1["default"].createElement("tr", null,
|
|
107
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-5' }, "\u01AFu \u0111\u00E3i th\u00E2m ni\u00EAn"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
108
|
+
listDebtRecordByStudent.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.total_promotion_tuition_seniority))); }),
|
|
109
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
|
|
110
|
+
react_1["default"].createElement("tr", null,
|
|
111
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-5' }, "\u01AFu \u0111\u00E3i \u0111\u00F3ng s\u1EDBm"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
112
|
+
listDebtRecordByStudent.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.total_promotion_early))); }),
|
|
113
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
|
|
114
|
+
react_1["default"].createElement("tr", { className: 'bg-gray-100' },
|
|
115
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "2. Ph\u00ED d\u1ECBch v\u1EE5"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
116
|
+
listDebtRecordByStudent.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.total_required_service + item.total_not_required_service - item.total_promotion_service))); }),
|
|
117
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
|
|
118
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') -
|
|
119
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service')))),
|
|
120
|
+
react_1["default"].createElement("tr", null,
|
|
121
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-5' }, "Ph\u00ED d\u1ECBch v\u1EE5 b\u1EAFt bu\u1ED9c"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
122
|
+
listDebtRecordByStudent.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.total_required_service))); }),
|
|
123
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, setShowModalService && (react_1["default"].createElement(Button_1.PHXButton, { onClick: function () { return setShowModalService(true); }, secondary: true, size: 'micro' }, "Chi ti\u1EBFt")))),
|
|
124
|
+
react_1["default"].createElement("tr", null,
|
|
125
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-5' }, "Ph\u00ED d\u1ECBch v\u1EE5 kh\u00F4ng b\u1EAFt bu\u1ED9c"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
126
|
+
listDebtRecordByStudent.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.total_not_required_service))); }),
|
|
127
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
|
|
128
|
+
react_1["default"].createElement("tr", null,
|
|
129
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-5' }, "\u01AFu \u0111\u00E3i ph\u00ED d\u1ECBch v\u1EE5"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
130
|
+
listDebtRecordByStudent.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.total_promotion_service))); }),
|
|
131
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
|
|
132
|
+
react_1["default"].createElement("tr", { className: 'bg-gray-100' },
|
|
133
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "3. Ti\u1EC1n thi\u1EBFu n\u0103m h\u1ECDc tr\u01B0\u1EDBc"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
134
|
+
listDebtRecordByStudent.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.last_period_debt_balance))); }),
|
|
135
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(totalFeeByCode(listDebtRecordByStudent, 'last_period_debt_balance')))),
|
|
136
|
+
react_1["default"].createElement("tr", { className: 'bg-gray-100' },
|
|
137
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "4. Ti\u1EC1n th\u1EEBa n\u0103m h\u1ECDc tr\u01B0\u1EDBc"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
138
|
+
listDebtRecordByStudent.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.last_period_credit_balance))); }),
|
|
139
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(totalFeeByCode(listDebtRecordByStudent, 'last_period_credit_balance')))),
|
|
140
|
+
react_1["default"].createElement("tr", { className: 'bg-gray-100' },
|
|
141
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "5. \u01AFu \u0111\u00E3i ghi danh"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
142
|
+
listDebtRecordByStudent.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.total_promotion_admission))); }),
|
|
143
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(totalFeeByCode(listDebtRecordByStudent, 'total_promotion_admission')))),
|
|
144
|
+
react_1["default"].createElement("tr", { className: 'bg-gray-100' },
|
|
145
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "6. Ph\u1EA3i \u0111\u00F3ng (6=1+2+3-4-5)"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
146
|
+
listDebtRecordByStudent.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.last_period_debt_balance +
|
|
147
|
+
item.total_tuition +
|
|
148
|
+
item.total_required_service +
|
|
149
|
+
item.total_not_required_service -
|
|
150
|
+
item.total_promotion_service -
|
|
151
|
+
item.total_promotion_tuition_policy -
|
|
152
|
+
item.total_promotion_admission -
|
|
153
|
+
item.total_promotion_tuition_scholar_ship -
|
|
154
|
+
item.total_promotion_tuition_seniority -
|
|
155
|
+
item.total_promotion_early -
|
|
156
|
+
item.last_period_credit_balance))); }),
|
|
157
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(totalFeeByCode(listDebtRecordByStudent, 'last_period_debt_balance') +
|
|
158
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_tuition') +
|
|
159
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
|
|
160
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') -
|
|
161
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service') -
|
|
162
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') -
|
|
163
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_admission') -
|
|
164
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
|
|
165
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
|
|
166
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early') -
|
|
167
|
+
totalFeeByCode(listDebtRecordByStudent, 'last_period_credit_balance')))),
|
|
168
|
+
react_1["default"].createElement("tr", { className: 'border-t bg-gray-100' },
|
|
169
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "7. \u0110\u00E3 \u0111\u00F3ng"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
170
|
+
listDebtRecordByStudent.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.total_payment))); }),
|
|
171
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(totalFeeByCode(listDebtRecordByStudent, 'total_payment')))),
|
|
172
|
+
react_1["default"].createElement("tr", { className: 'border-t bg-gray-100' },
|
|
173
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "8. Ti\u1EC1n th\u1EEBa/(thi\u1EBFu)"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
174
|
+
listDebtRecordByStudent.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.last_period_debt_balance +
|
|
175
|
+
item.total_tuition +
|
|
176
|
+
item.total_required_service +
|
|
177
|
+
item.total_not_required_service -
|
|
178
|
+
item.total_promotion_service -
|
|
179
|
+
item.total_promotion_tuition_policy -
|
|
180
|
+
item.total_promotion_admission -
|
|
181
|
+
item.total_promotion_tuition_scholar_ship -
|
|
182
|
+
item.total_promotion_tuition_seniority -
|
|
183
|
+
item.total_promotion_early -
|
|
184
|
+
item.total_payment -
|
|
185
|
+
item.last_period_credit_balance))); }),
|
|
186
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(totalFeeByCode(listDebtRecordByStudent, 'last_period_debt_balance') +
|
|
187
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_tuition') +
|
|
188
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
|
|
189
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') -
|
|
190
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service') -
|
|
191
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') -
|
|
192
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_admission') -
|
|
193
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
|
|
194
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
|
|
195
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early') -
|
|
196
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_payment') -
|
|
197
|
+
totalFeeByCode(listDebtRecordByStudent, 'last_period_credit_balance')))),
|
|
198
|
+
react_1["default"].createElement("tr", null,
|
|
199
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "7. File PDF thu ph\u00ED"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
200
|
+
listDebtRecordByStudent.map(function (itemDebt, index) {
|
|
201
|
+
var _a, _b;
|
|
202
|
+
var linkDeliveredEmail = ((_a = itemDebt.profile_student) === null || _a === void 0 ? void 0 : _a.tuition_notice_delivered_emails) || [];
|
|
203
|
+
var listEmailFilterWithSchoolTermId = (linkDeliveredEmail === null || linkDeliveredEmail === void 0 ? void 0 : linkDeliveredEmail.filter(function (item) { var _a, _b; return ((_a = itemDebt.school_term) === null || _a === void 0 ? void 0 : _a.id) === ((_b = item.tuition_notice_campaign) === null || _b === void 0 ? void 0 : _b.school_term_id); })) || [];
|
|
204
|
+
var linkPdfNewest = '';
|
|
205
|
+
if (listEmailFilterWithSchoolTermId.length > 0) {
|
|
206
|
+
linkPdfNewest = (_b = listEmailFilterWithSchoolTermId[0]) === null || _b === void 0 ? void 0 : _b.link_pdf_cdn;
|
|
207
|
+
}
|
|
208
|
+
return linkPdfNewest ? (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' },
|
|
209
|
+
react_1["default"].createElement("a", {
|
|
210
|
+
// ref={linkRef}
|
|
211
|
+
className: 'pt-3 text-xs text-blue-600 hover:cursor-pointer hover:text-blue-800 hover:underline', href: linkPdfNewest, rel: 'noreferrer', target: '_blank' }, "pdf file"))) : (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, "---"));
|
|
212
|
+
}),
|
|
213
|
+
react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }))))))) : (react_1["default"].createElement(Skeleton_1.PHXSkeleton, { type: 'table' }))));
|
|
214
|
+
};
|
|
215
|
+
exports.PHXFormTuition = PHXFormTuition;
|
|
216
|
+
//# sourceMappingURL=FormTuition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormTuition.js","sourceRoot":"","sources":["../../../../src/components/FormTuition/FormTuition.tsx"],"names":[],"mappings":";;;;AAAA,qDAAkD;AAClD,yCAA6C;AAC7C,2DAAiD;AACjD,oCAAqC;AACrC,wCAAyC;AACzC,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,cAAc,kBAka1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormTuition';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/FormTuition/index.tsx"],"names":[],"mappings":";;;AAAA,wDAA6B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
var react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
+
var FormTuition_1 = require("../components/FormTuition");
|
|
6
|
+
var apollo_wrapper_1 = require("../lib/apollo-wrapper");
|
|
7
|
+
var TuitionDemo = function () {
|
|
8
|
+
return (react_1["default"].createElement(apollo_wrapper_1.ApolloWrapper, null,
|
|
9
|
+
react_1["default"].createElement(FormTuition_1.PHXFormTuition, { school_id: 1, user_code: 'PHX-006', school_year_id: 19, program_id: 1, program_education_id: 4, studentType: 5 })));
|
|
10
|
+
};
|
|
11
|
+
exports["default"] = TuitionDemo;
|
|
12
|
+
//# sourceMappingURL=FormTuitionDemo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormTuitionDemo.js","sourceRoot":"","sources":["../../../src/demo/FormTuitionDemo.tsx"],"names":[],"mappings":";;;AAAA,wDAAyB;AACzB,yDAA0D;AAC1D,wDAAqD;AAErD,IAAM,WAAW,GAAG;IAClB,OAAO,CACL,iCAAC,8BAAa;QACZ,iCAAC,4BAAc,IACb,SAAS,EAAE,CAAC,EACZ,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,EAAE,EAClB,UAAU,EAAE,CAAC,EACb,oBAAoB,EAAE,CAAC,EACvB,WAAW,EAAE,CAAC,GACd,CACY,CACjB,CAAA;AACH,CAAC,CAAA;AACD,qBAAe,WAAW,CAAA"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { PHXSelectBox } from './components/SelectBox';
|
|
|
14
14
|
import { PHXRadio } from './components/Radio';
|
|
15
15
|
import { PHXCheckbox } from './components/Checkbox';
|
|
16
16
|
import { PHXFormStep } from './components/FormStep';
|
|
17
|
+
import { PHXFormTuition } from './components/FormTuition';
|
|
17
18
|
import { PHXNotifications } from './components/Notifications';
|
|
18
19
|
import { PHXSkeleton } from './components/Skeleton';
|
|
19
20
|
import PHXFuncGetLoggedInfo from './components/Func/getLoginInfo';
|
|
@@ -49,4 +50,4 @@ import PHXGetActiveYearAndNextYear from './components/Func/getActiveAndNextSchoo
|
|
|
49
50
|
import { PHXDateRangePicker } from './components/DateRangePicker';
|
|
50
51
|
import PHXFetchAPI from './components/Func/serverQuery';
|
|
51
52
|
import { PBFMainWrap } from './components/PBFMainWrap';
|
|
52
|
-
export { PHXButton, PHXCard, PHXSpinner, PHXMainWrap, PHXFormWrap, PHXHeaderBar, PHXTable, PHXInput, PHXSelect, PHXSelectBox, PHXRadio, PHXCheckbox, PHXFormStep, PHXNotifications, PHXStep, PHXSkeleton, PHXFuncGetLoggedInfo, PHXClientQuery, PHXClientMutation, PHXTextarea, PHXModal, PHXTabs, PHXChoiceList, PHXDescriptionLists, PHXBadge, PHXLogin, PHXLoginSso, PHXBanner, PHXButtonGroup, PHXCombobox, PHXFormLayout, PHXHorizontalStack, PHXTextEditor, PHXUploadFile, PHXTableLogImportExport, PHXSearchResultList, PHXDatePicker, PHXLoginPn28, PHXEmptyRecord, PHXPagePermission, PHXTimePicker, PHXDropdown, PHXUploadAvatar, PHXGetHttpLinkConfig, PHXDateRangePicker, PHXUseDebounce, PHXResourceList, PHXGetCurrentYearWithTerm, PHXFetchAPI, PHXGetActiveYearAndNextYear, PBFMainWrap, };
|
|
53
|
+
export { PHXButton, PHXCard, PHXSpinner, PHXMainWrap, PHXFormWrap, PHXHeaderBar, PHXTable, PHXInput, PHXSelect, PHXSelectBox, PHXRadio, PHXCheckbox, PHXFormStep, PHXFormTuition, PHXNotifications, PHXStep, PHXSkeleton, PHXFuncGetLoggedInfo, PHXClientQuery, PHXClientMutation, PHXTextarea, PHXModal, PHXTabs, PHXChoiceList, PHXDescriptionLists, PHXBadge, PHXLogin, PHXLoginSso, PHXBanner, PHXButtonGroup, PHXCombobox, PHXFormLayout, PHXHorizontalStack, PHXTextEditor, PHXUploadFile, PHXTableLogImportExport, PHXSearchResultList, PHXDatePicker, PHXLoginPn28, PHXEmptyRecord, PHXPagePermission, PHXTimePicker, PHXDropdown, PHXUploadAvatar, PHXGetHttpLinkConfig, PHXDateRangePicker, PHXUseDebounce, PHXResourceList, PHXGetCurrentYearWithTerm, PHXFetchAPI, PHXGetActiveYearAndNextYear, PBFMainWrap, };
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
exports.__esModule = true;
|
|
3
|
-
exports.
|
|
4
|
-
exports.PBFMainWrap = void 0;
|
|
3
|
+
exports.PHXFetchAPI = exports.PHXGetCurrentYearWithTerm = exports.PHXResourceList = exports.PHXUseDebounce = exports.PHXDateRangePicker = exports.PHXGetHttpLinkConfig = exports.PHXUploadAvatar = exports.PHXDropdown = exports.PHXTimePicker = exports.PHXPagePermission = exports.PHXEmptyRecord = exports.PHXLoginPn28 = exports.PHXDatePicker = exports.PHXSearchResultList = exports.PHXTableLogImportExport = exports.PHXUploadFile = exports.PHXTextEditor = exports.PHXHorizontalStack = exports.PHXFormLayout = exports.PHXCombobox = exports.PHXButtonGroup = exports.PHXBanner = exports.PHXLoginSso = exports.PHXLogin = exports.PHXBadge = exports.PHXDescriptionLists = exports.PHXChoiceList = exports.PHXTabs = exports.PHXModal = exports.PHXTextarea = exports.PHXClientMutation = exports.PHXClientQuery = exports.PHXFuncGetLoggedInfo = exports.PHXSkeleton = exports.PHXStep = exports.PHXNotifications = exports.PHXFormTuition = exports.PHXFormStep = exports.PHXCheckbox = exports.PHXRadio = exports.PHXSelectBox = exports.PHXSelect = exports.PHXInput = exports.PHXTable = exports.PHXHeaderBar = exports.PHXFormWrap = exports.PHXMainWrap = exports.PHXSpinner = exports.PHXCard = exports.PHXButton = void 0;
|
|
4
|
+
exports.PBFMainWrap = exports.PHXGetActiveYearAndNextYear = void 0;
|
|
5
5
|
var tslib_1 = require("tslib");
|
|
6
6
|
var UploadFile_1 = require("./components/UploadFile");
|
|
7
7
|
exports.PHXUploadFile = UploadFile_1.PHXUploadFile;
|
|
@@ -35,6 +35,8 @@ var Checkbox_1 = require("./components/Checkbox");
|
|
|
35
35
|
exports.PHXCheckbox = Checkbox_1.PHXCheckbox;
|
|
36
36
|
var FormStep_1 = require("./components/FormStep");
|
|
37
37
|
exports.PHXFormStep = FormStep_1.PHXFormStep;
|
|
38
|
+
var FormTuition_1 = require("./components/FormTuition");
|
|
39
|
+
exports.PHXFormTuition = FormTuition_1.PHXFormTuition;
|
|
38
40
|
var Notifications_1 = require("./components/Notifications");
|
|
39
41
|
exports.PHXNotifications = Notifications_1.PHXNotifications;
|
|
40
42
|
var Skeleton_1 = require("./components/Skeleton");
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAAA,sDAAuD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAAA,sDAAuD;AAwFrD,wBAxFO,0BAAa,CAwFP;AAvFf,sDAAuD;AAoFrD,wBApFO,0BAAa,CAoFP;AAnFf,0CAA2C;AAmEzC,kBAnEO,cAAO,CAmEP;AAlET,8CAA+C;AAmD7C,oBAnDO,kBAAS,CAmDP;AAlDX,0CAA2C;AAmDzC,kBAnDO,cAAO,CAmDP;AAlDT,gDAAiD;AAmD/C,qBAnDO,oBAAU,CAmDP;AAlDZ,kDAAmD;AAmDjD,sBAnDO,sBAAW,CAmDP;AAlDb,4CAA6C;AAqD3C,mBArDO,gBAAQ,CAqDP;AApDV,kDAAmD;AAk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0BAAa,CAqDP;AApDf,0EAA2E;AAsDzE,kCAtDO,8CAAuB,CAsDP;AArDzB,kEAAmE;AAsDjE,8BAtDO,sCAAmB,CAsDP;AArDrB,sDAAuD;AAsDrD,wBAtDO,0BAAa,CAsDP;AArDf,oDAAqD;AAsDnD,uBAtDO,wBAAY,CAsDP;AArDd,wDAAyD;AAsDvD,yBAtDO,4BAAc,CAsDP;AArDhB,8DAA+D;AAsD7D,4BAtDO,kCAAiB,CAsDP;AArDnB,sDAAuD;AAsDrD,wBAtDO,0BAAa,CAsDP;AArDf,kDAAmD;AAsDjD,sBAtDO,sBAAW,CAsDP;AArDb,gGAAoE;AAsDlE,0BAtDK,yBAAe,CAsDL;AArDjB,kGAAsE;AAsDpE,+BAtDK,8BAAoB,CAsDL;AArDtB,sFAA0D;AAuDxD,yBAvDK,wBAAc,CAuDL;AAtDhB,0DAA2D;AAuDzD,0BAvDO,8BAAe,CAuDP;AAtDjB,0FAAuE;AAuDrE,oCAvDK,0BAAyB,CAuDL;AAtD3B,oHAAsF;AAwDpF,sCAxDK,uCAA2B,CAwDL;AAvD7B,gEAAiE;AAkD/D,6BAlDO,oCAAkB,CAkDP;AAjDpB,sFAAuD;AAqDrD,sBArDK,wBAAW,CAqDL;AApDb,wDAAsD;AAsDpD,sBAtDO,yBAAW,CAsDP"}
|
package/dist/cjs/query/gql.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ export declare const getCampaignName: import("@apollo/client").DocumentNode;
|
|
|
3
3
|
export declare const GET_PERMISSION_DETAIL_USER: import("@apollo/client").DocumentNode;
|
|
4
4
|
export declare const querySchoolYear: import("@apollo/client").DocumentNode;
|
|
5
5
|
export declare const getActiveAndNextSchoolYear: import("@apollo/client").DocumentNode;
|
|
6
|
+
export declare const getTuitionDebtRecordByUserCode: import("@apollo/client").DocumentNode;
|
package/dist/cjs/query/gql.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
exports.__esModule = true;
|
|
3
|
-
exports.getActiveAndNextSchoolYear = exports.querySchoolYear = exports.GET_PERMISSION_DETAIL_USER = exports.getCampaignName = exports.GET_SCHOOL = void 0;
|
|
3
|
+
exports.getTuitionDebtRecordByUserCode = exports.getActiveAndNextSchoolYear = exports.querySchoolYear = exports.GET_PERMISSION_DETAIL_USER = exports.getCampaignName = exports.GET_SCHOOL = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var client_1 = require("@apollo/client");
|
|
6
6
|
var constants_1 = require("../utils/constants");
|
|
@@ -9,5 +9,6 @@ exports.getCampaignName = (0, client_1.gql)(templateObject_2 || (templateObject_
|
|
|
9
9
|
exports.GET_PERMISSION_DETAIL_USER = (0, client_1.gql)(templateObject_3 || (templateObject_3 = tslib_1.__makeTemplateObject(["\n query GetUserPermission($id: Int, $school_id: Int) {\n permission_user(\n where: {\n deleted_at: { _is_null: true }\n is_active: { _eq: true }\n school_id: { _eq: $school_id }\n user_id: { _eq: $id }\n permission: { deleted_at: { _is_null: true } }\n }\n ) {\n permission {\n code\n }\n }\n permission_role(\n where: {\n deleted_at: { _is_null: true }\n is_active: { _eq: true }\n role: {\n school_id: { _eq: $school_id }\n deleted_at: { _is_null: true }\n user_roles: { deleted_at: { _is_null: true }, is_active: { _eq: true }, user_id: { _eq: $id } }\n }\n }\n ) {\n permission {\n code\n }\n id\n }\n }\n"], ["\n query GetUserPermission($id: Int, $school_id: Int) {\n permission_user(\n where: {\n deleted_at: { _is_null: true }\n is_active: { _eq: true }\n school_id: { _eq: $school_id }\n user_id: { _eq: $id }\n permission: { deleted_at: { _is_null: true } }\n }\n ) {\n permission {\n code\n }\n }\n permission_role(\n where: {\n deleted_at: { _is_null: true }\n is_active: { _eq: true }\n role: {\n school_id: { _eq: $school_id }\n deleted_at: { _is_null: true }\n user_roles: { deleted_at: { _is_null: true }, is_active: { _eq: true }, user_id: { _eq: $id } }\n }\n }\n ) {\n permission {\n code\n }\n id\n }\n }\n"])));
|
|
10
10
|
exports.querySchoolYear = (0, client_1.gql)(templateObject_4 || (templateObject_4 = tslib_1.__makeTemplateObject(["\n query MyQuery($school_id: Int!, $gte: timestamptz!, $lte: timestamptz!) {\n school_year(\n where: {\n deleted_at: { _is_null: true }\n school_course: { school_id: { _eq: $school_id } }\n end_at: { _gte: $gte }\n start_at: { _lte: $lte }\n }\n ) {\n id\n name\n code\n start_at\n end_at\n school_terms(where: { deleted_at: { _is_null: true } }) {\n id\n code\n name\n coefficient\n start_at\n end_at\n }\n current_term: school_terms(\n where: { deleted_at: { _is_null: true }, end_at: { _gte: $gte }, start_at: { _lte: $lte } }\n ) {\n id\n code\n name\n coefficient\n start_at\n end_at\n }\n }\n }\n"], ["\n query MyQuery($school_id: Int!, $gte: timestamptz!, $lte: timestamptz!) {\n school_year(\n where: {\n deleted_at: { _is_null: true }\n school_course: { school_id: { _eq: $school_id } }\n end_at: { _gte: $gte }\n start_at: { _lte: $lte }\n }\n ) {\n id\n name\n code\n start_at\n end_at\n school_terms(where: { deleted_at: { _is_null: true } }) {\n id\n code\n name\n coefficient\n start_at\n end_at\n }\n current_term: school_terms(\n where: { deleted_at: { _is_null: true }, end_at: { _gte: $gte }, start_at: { _lte: $lte } }\n ) {\n id\n code\n name\n coefficient\n start_at\n end_at\n }\n }\n }\n"])));
|
|
11
11
|
exports.getActiveAndNextSchoolYear = (0, client_1.gql)(templateObject_5 || (templateObject_5 = tslib_1.__makeTemplateObject(["\n query GetActiveAndNextSchoolYear($startAt: timestamptz, $endAt: timestamptz, $school_id: Int) {\n school_year(\n where: {\n deleted_at: { _is_null: true }\n start_at: { _lte: $startAt }\n end_at: { _gte: $endAt }\n school_course: { school_id: { _eq: $school_id } }\n }\n order_by: { id: asc }\n ) {\n code\n end_at\n id\n name\n start_at\n school_terms(where: { deleted_at: { _is_null: true } }, order_by: { id: asc }) {\n name\n code\n id\n }\n school_course {\n course_name\n id\n code\n }\n }\n }\n"], ["\n query GetActiveAndNextSchoolYear($startAt: timestamptz, $endAt: timestamptz, $school_id: Int) {\n school_year(\n where: {\n deleted_at: { _is_null: true }\n start_at: { _lte: $startAt }\n end_at: { _gte: $endAt }\n school_course: { school_id: { _eq: $school_id } }\n }\n order_by: { id: asc }\n ) {\n code\n end_at\n id\n name\n start_at\n school_terms(where: { deleted_at: { _is_null: true } }, order_by: { id: asc }) {\n name\n code\n id\n }\n school_course {\n course_name\n id\n code\n }\n }\n }\n"])));
|
|
12
|
-
|
|
12
|
+
exports.getTuitionDebtRecordByUserCode = (0, client_1.gql)(templateObject_6 || (templateObject_6 = tslib_1.__makeTemplateObject(["\n query GetTuitionDebtRecordByUserCode(\n $user_code: String\n $school_year_id: Int\n $school_id: Int\n $program_id: Int\n $program_education_id: Int\n $studentType: [Int!]!\n ) {\n tuition_fee_service_register(\n where: {\n deleted_at: { _is_null: true }\n user_code: { _eq: $user_code }\n school_year_id: { _eq: $school_year_id }\n school_id: { _eq: $school_id }\n }\n ) {\n user_code\n school_id\n school_year_id\n service_type\n tuition_fee_service_general_semester {\n amount\n code\n id\n }\n tuition_fee_service_general_year {\n amount\n code\n id\n }\n tuition_fee_service_semester {\n amount\n code\n id\n }\n tuition_fee_service_year {\n amount\n code\n id\n }\n }\n tuition_fee_debt_record(\n order_by: { school_term_id: asc }\n where: {\n deleted_at: { _is_null: true }\n school_id: { _eq: $school_id }\n user_code: { _eq: $user_code }\n school_term: { school_year_id: { _eq: $school_year_id } }\n }\n ) {\n total_promotion_service\n total_payment\n total_promotion_tuition_seniority\n total_promotion_tuition_scholar_ship\n total_promotion_tuition_policy\n total_promotion_admission\n total_promotion_early\n total_required_service\n total_not_required_service\n total_tuition\n last_period_credit_balance\n last_period_debt_balance\n id\n school_term {\n school_year {\n name\n code\n }\n name\n code\n id\n }\n profile_student {\n tuition_notice_delivered_emails(order_by: { created_at: desc }) {\n link_pdf_cdn\n tuition_notice_campaign {\n school_term_id\n }\n }\n grade {\n name\n }\n program_map_educational_level {\n program {\n code\n name\n }\n }\n user {\n relationshipUsersByStudentId {\n id\n parent_id\n relationship_code\n user {\n gender\n full_name\n phone_number\n }\n }\n full_name\n classroom_students {\n classroom {\n name\n }\n }\n }\n tuition_student_profiles(where: { deleted_at: { _is_null: true }, school_year_id: { _eq: $school_year_id } }) {\n grade {\n name\n }\n program_map_educational_level {\n id\n educational_level_id\n program_id\n program {\n code\n name\n }\n }\n tuition_student_discount_type {\n id\n description\n code\n }\n }\n }\n user_code\n }\n tuition_fee_service_general_year(\n where: {\n school_year_id: { _eq: $school_year_id }\n school_id: { _eq: $school_id }\n deleted_at: { _is_null: true }\n program_id: { _eq: $program_id }\n student_type: { _in: $studentType }\n }\n ) {\n id\n amount\n code\n service_type\n tuition_fee_project_code {\n fee_type\n description\n }\n tuition_fee_service_general_semesters(\n order_by: { school_term_id: asc }\n where: { deleted_at: { _is_null: true }, student_type: { _in: $studentType } }\n ) {\n id\n amount\n code\n school_term {\n id\n name\n }\n }\n }\n tuition_fee_service_year(\n where: {\n student_type: { _in: $studentType }\n school_year_id: { _eq: $school_year_id }\n school_id: { _eq: $school_id }\n deleted_at: { _is_null: true }\n program_map_educational_level: { id: { _eq: $program_education_id } }\n }\n ) {\n id\n amount\n code\n service_type\n tuition_fee_project_code {\n fee_type\n description\n }\n tuition_fee_service_semesters(\n order_by: { school_term_id: asc }\n where: { deleted_at: { _is_null: true }, student_type: { _in: $studentType } }\n ) {\n id\n amount\n code\n school_term {\n id\n name\n }\n }\n }\n }\n"], ["\n query GetTuitionDebtRecordByUserCode(\n $user_code: String\n $school_year_id: Int\n $school_id: Int\n $program_id: Int\n $program_education_id: Int\n $studentType: [Int!]!\n ) {\n tuition_fee_service_register(\n where: {\n deleted_at: { _is_null: true }\n user_code: { _eq: $user_code }\n school_year_id: { _eq: $school_year_id }\n school_id: { _eq: $school_id }\n }\n ) {\n user_code\n school_id\n school_year_id\n service_type\n tuition_fee_service_general_semester {\n amount\n code\n id\n }\n tuition_fee_service_general_year {\n amount\n code\n id\n }\n tuition_fee_service_semester {\n amount\n code\n id\n }\n tuition_fee_service_year {\n amount\n code\n id\n }\n }\n tuition_fee_debt_record(\n order_by: { school_term_id: asc }\n where: {\n deleted_at: { _is_null: true }\n school_id: { _eq: $school_id }\n user_code: { _eq: $user_code }\n school_term: { school_year_id: { _eq: $school_year_id } }\n }\n ) {\n total_promotion_service\n total_payment\n total_promotion_tuition_seniority\n total_promotion_tuition_scholar_ship\n total_promotion_tuition_policy\n total_promotion_admission\n total_promotion_early\n total_required_service\n total_not_required_service\n total_tuition\n last_period_credit_balance\n last_period_debt_balance\n id\n school_term {\n school_year {\n name\n code\n }\n name\n code\n id\n }\n profile_student {\n tuition_notice_delivered_emails(order_by: { created_at: desc }) {\n link_pdf_cdn\n tuition_notice_campaign {\n school_term_id\n }\n }\n grade {\n name\n }\n program_map_educational_level {\n program {\n code\n name\n }\n }\n user {\n relationshipUsersByStudentId {\n id\n parent_id\n relationship_code\n user {\n gender\n full_name\n phone_number\n }\n }\n full_name\n classroom_students {\n classroom {\n name\n }\n }\n }\n tuition_student_profiles(where: { deleted_at: { _is_null: true }, school_year_id: { _eq: $school_year_id } }) {\n grade {\n name\n }\n program_map_educational_level {\n id\n educational_level_id\n program_id\n program {\n code\n name\n }\n }\n tuition_student_discount_type {\n id\n description\n code\n }\n }\n }\n user_code\n }\n tuition_fee_service_general_year(\n where: {\n school_year_id: { _eq: $school_year_id }\n school_id: { _eq: $school_id }\n deleted_at: { _is_null: true }\n program_id: { _eq: $program_id }\n student_type: { _in: $studentType }\n }\n ) {\n id\n amount\n code\n service_type\n tuition_fee_project_code {\n fee_type\n description\n }\n tuition_fee_service_general_semesters(\n order_by: { school_term_id: asc }\n where: { deleted_at: { _is_null: true }, student_type: { _in: $studentType } }\n ) {\n id\n amount\n code\n school_term {\n id\n name\n }\n }\n }\n tuition_fee_service_year(\n where: {\n student_type: { _in: $studentType }\n school_year_id: { _eq: $school_year_id }\n school_id: { _eq: $school_id }\n deleted_at: { _is_null: true }\n program_map_educational_level: { id: { _eq: $program_education_id } }\n }\n ) {\n id\n amount\n code\n service_type\n tuition_fee_project_code {\n fee_type\n description\n }\n tuition_fee_service_semesters(\n order_by: { school_term_id: asc }\n where: { deleted_at: { _is_null: true }, student_type: { _in: $studentType } }\n ) {\n id\n amount\n code\n school_term {\n id\n name\n }\n }\n }\n }\n"])));
|
|
13
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
13
14
|
//# sourceMappingURL=gql.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gql.js","sourceRoot":"","sources":["../../../src/query/gql.ts"],"names":[],"mappings":";;;;AAAA,yCAAoC;AACpC,gDAAsD;AAEzC,QAAA,UAAU,OAAG,YAAG,ynBAAA,0eAcoD,EAAiB,iEAKjG,KALgF,6BAAiB,EAKjG;AAEY,QAAA,eAAe,OAAG,YAAG,oMAAA,wHAOjC,KAAA;AACY,QAAA,0BAA0B,OAAG,YAAG,y1BAAA,6wBAgC5C,KAAA;AACY,QAAA,eAAe,OAAG,YAAG,s2BAAA,0xBAmCjC,KAAA;AACY,QAAA,0BAA0B,OAAG,YAAG,mtBAAA,uoBA4B5C,KAAA"}
|
|
1
|
+
{"version":3,"file":"gql.js","sourceRoot":"","sources":["../../../src/query/gql.ts"],"names":[],"mappings":";;;;AAAA,yCAAoC;AACpC,gDAAsD;AAEzC,QAAA,UAAU,OAAG,YAAG,ynBAAA,0eAcoD,EAAiB,iEAKjG,KALgF,6BAAiB,EAKjG;AAEY,QAAA,eAAe,OAAG,YAAG,oMAAA,wHAOjC,KAAA;AACY,QAAA,0BAA0B,OAAG,YAAG,y1BAAA,6wBAgC5C,KAAA;AACY,QAAA,eAAe,OAAG,YAAG,s2BAAA,0xBAmCjC,KAAA;AACY,QAAA,0BAA0B,OAAG,YAAG,mtBAAA,uoBA4B5C,KAAA;AAEY,QAAA,8BAA8B,OAAG,YAAG,u/IAAA,26IA8LhD,KAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.formatNumber = exports.toVND = void 0;
|
|
4
|
+
var tslib_1 = require("tslib");
|
|
5
|
+
var formatNumber = function (number, locale, option) {
|
|
6
|
+
var _a;
|
|
7
|
+
return new Intl.NumberFormat(locale !== null && locale !== void 0 ? locale : 'VND', tslib_1.__assign(tslib_1.__assign({}, option), { currency: (_a = option === null || option === void 0 ? void 0 : option.currency) !== null && _a !== void 0 ? _a : 'VND' })).format(number);
|
|
8
|
+
};
|
|
9
|
+
exports.formatNumber = formatNumber;
|
|
10
|
+
function toVND(n) {
|
|
11
|
+
return new Intl.NumberFormat('vi-VN', {
|
|
12
|
+
style: 'currency',
|
|
13
|
+
currency: 'VND',
|
|
14
|
+
minimumFractionDigits: 0,
|
|
15
|
+
maximumFractionDigits: 4
|
|
16
|
+
}).format(n);
|
|
17
|
+
}
|
|
18
|
+
exports.toVND = toVND;
|
|
19
|
+
//# sourceMappingURL=format-number.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-number.js","sourceRoot":"","sources":["../../../src/utils/format-number.ts"],"names":[],"mappings":";;;;AAAA,IAAM,YAAY,GAAG,UAAC,MAAc,EAAE,MAAe,EAAE,MAAiC;;IACtF,OAAA,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,KAAK,wCAChC,MAAM,KACT,QAAQ,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,mCAAI,KAAK,IACnC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;CAAA,CAAA;AAWH,oCAAY;AAT5B,SAAS,KAAK,CAAC,CAAS;IACtB,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE;QACpC,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;QACf,qBAAqB,EAAE,CAAC;QACxB,qBAAqB,EAAE,CAAC;KACzB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AACd,CAAC;AAEQ,sBAAK"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface FormTuitionProps {
|
|
3
|
+
school_id: number;
|
|
4
|
+
user_code: any;
|
|
5
|
+
school_year_id: number;
|
|
6
|
+
program_id: number;
|
|
7
|
+
program_education_id: number;
|
|
8
|
+
studentType: number;
|
|
9
|
+
setDiscountPromotionObject?: any;
|
|
10
|
+
setShowModalPromotionObject?: any;
|
|
11
|
+
setShowModalService?: any;
|
|
12
|
+
}
|
|
13
|
+
export declare const PHXFormTuition: React.FC<FormTuitionProps>;
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { __awaiter, __generator } from "tslib";
|
|
2
|
+
import React, { useEffect, useState } from 'react';
|
|
3
|
+
import { useLazyQuery } from '@apollo/client';
|
|
4
|
+
import { toVND } from '../../utils/format-number';
|
|
5
|
+
import { PHXButton } from '../Button';
|
|
6
|
+
import { PHXSkeleton } from '../Skeleton';
|
|
7
|
+
import PHXClientQuery from '../Func/clientQueryV2';
|
|
8
|
+
import { getTuitionDebtRecordByUserCode } from '../../query/gql';
|
|
9
|
+
export var PHXFormTuition = function (_a) {
|
|
10
|
+
var school_id = _a.school_id, user_code = _a.user_code, school_year_id = _a.school_year_id, program_id = _a.program_id, program_education_id = _a.program_education_id, studentType = _a.studentType, setDiscountPromotionObject = _a.setDiscountPromotionObject, setShowModalPromotionObject = _a.setShowModalPromotionObject, setShowModalService = _a.setShowModalService;
|
|
11
|
+
var _b = useLazyQuery(getTuitionDebtRecordByUserCode, {
|
|
12
|
+
fetchPolicy: 'network-only',
|
|
13
|
+
notifyOnNetworkStatusChange: true
|
|
14
|
+
}), getDataFeeListQuery = _b[0], data = _b[1].data;
|
|
15
|
+
var fetchData = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
16
|
+
return __generator(this, function (_a) {
|
|
17
|
+
switch (_a.label) {
|
|
18
|
+
case 0: return [4 /*yield*/, PHXClientQuery(getDataFeeListQuery, {
|
|
19
|
+
variables: {
|
|
20
|
+
school_id: school_id,
|
|
21
|
+
user_code: user_code,
|
|
22
|
+
school_year_id: school_year_id,
|
|
23
|
+
program_id: program_id,
|
|
24
|
+
program_education_id: program_education_id,
|
|
25
|
+
studentType: studentType
|
|
26
|
+
}
|
|
27
|
+
})];
|
|
28
|
+
case 1:
|
|
29
|
+
_a.sent();
|
|
30
|
+
return [2 /*return*/];
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
}); };
|
|
34
|
+
useEffect(function () {
|
|
35
|
+
if (school_year_id) {
|
|
36
|
+
fetchData();
|
|
37
|
+
}
|
|
38
|
+
}, [school_year_id]);
|
|
39
|
+
var _c = useState([]), listDebtRecordByStudent = _c[0], setListDebtRecordByStudent = _c[1];
|
|
40
|
+
useEffect(function () {
|
|
41
|
+
if (data) {
|
|
42
|
+
setListDebtRecordByStudent(data.tuition_fee_debt_record);
|
|
43
|
+
}
|
|
44
|
+
}, [data]);
|
|
45
|
+
var checkIsCanHoverTuitionRaw = function (listFee) {
|
|
46
|
+
return listFee === null || listFee === void 0 ? void 0 : listFee.some(function (item) { return item.total_promotion_tuition_policy; });
|
|
47
|
+
};
|
|
48
|
+
var totalFeeByCode = function (listData, code) {
|
|
49
|
+
var total = listData === null || listData === void 0 ? void 0 : listData.reduce(function (total, item) { return total + Number(item[code]); }, 0);
|
|
50
|
+
return total;
|
|
51
|
+
};
|
|
52
|
+
return (React.createElement(React.Fragment, null, listDebtRecordByStudent.length > 0 ? (React.createElement("div", { className: '-my-2 overflow-x-auto' },
|
|
53
|
+
React.createElement("div", { className: 'inline-block min-w-full py-2 align-middle' },
|
|
54
|
+
React.createElement("table", { className: 'min-w-full divide-y divide-gray-300' },
|
|
55
|
+
React.createElement("thead", null,
|
|
56
|
+
React.createElement("tr", null,
|
|
57
|
+
React.createElement("th", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-left text-xs font-semibold text-gray-500 sm:pl-2', scope: 'col' }, "Chi ti\u1EBFt kho\u1EA3n ph\u00ED"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
58
|
+
listDebtRecordByStudent.map(function (item, index) {
|
|
59
|
+
var _a;
|
|
60
|
+
return (React.createElement("th", { key: index, className: 'py-2 pl-4 pr-3 text-left text-xs font-semibold text-gray-500 sm:pl-2', scope: 'col' }, ((_a = item.school_term) === null || _a === void 0 ? void 0 : _a.name) || ''));
|
|
61
|
+
}),
|
|
62
|
+
React.createElement("th", { className: 'whitespace-nowrap px-2 py-2 text-left text-xs font-semibold text-gray-500 sm:pl-2', scope: 'col' }, "C\u1EA3 n\u0103m"))),
|
|
63
|
+
React.createElement("tbody", { className: 'divide-y divide-gray-200 bg-white' },
|
|
64
|
+
React.createElement("tr", { className: 'bg-gray-100' },
|
|
65
|
+
React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "1. H\u1ECDc ph\u00ED"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
66
|
+
listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(item.total_tuition -
|
|
67
|
+
item.total_promotion_tuition_policy -
|
|
68
|
+
item.total_promotion_tuition_seniority -
|
|
69
|
+
item.total_promotion_tuition_scholar_ship -
|
|
70
|
+
item.total_promotion_early))); }),
|
|
71
|
+
React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'total_tuition') -
|
|
72
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') -
|
|
73
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
|
|
74
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_seniority') -
|
|
75
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early')))),
|
|
76
|
+
React.createElement("tr", null,
|
|
77
|
+
React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-5' }, "H\u1ECDc ph\u00ED ni\u00EAm y\u1EBFt"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
78
|
+
listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(item.total_tuition))); }),
|
|
79
|
+
React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
|
|
80
|
+
React.createElement("tr", { className: "".concat(setShowModalPromotionObject
|
|
81
|
+
? checkIsCanHoverTuitionRaw(listDebtRecordByStudent)
|
|
82
|
+
? 'hover:cursor-pointer hover:bg-gray-100'
|
|
83
|
+
: ''
|
|
84
|
+
: ''), onClick: function () {
|
|
85
|
+
if (!setShowModalPromotionObject) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
var isCanClick = checkIsCanHoverTuitionRaw(listDebtRecordByStudent);
|
|
89
|
+
if (isCanClick) {
|
|
90
|
+
setShowModalPromotionObject(true);
|
|
91
|
+
setDiscountPromotionObject(Number((totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') /
|
|
92
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_tuition')) *
|
|
93
|
+
100).toFixed(1));
|
|
94
|
+
}
|
|
95
|
+
} },
|
|
96
|
+
React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-5' }, "\u01AFu \u0111\u00E3i \u0111\u1ED1i t\u01B0\u1EE3ng"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
97
|
+
listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(item.total_promotion_tuition_policy))); }),
|
|
98
|
+
React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
|
|
99
|
+
React.createElement("tr", null,
|
|
100
|
+
React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-5' }, "\u01AFu \u0111\u00E3i h\u1ECDc b\u1ED5ng"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
101
|
+
listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(item.total_promotion_tuition_scholar_ship))); }),
|
|
102
|
+
React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
|
|
103
|
+
React.createElement("tr", null,
|
|
104
|
+
React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-5' }, "\u01AFu \u0111\u00E3i th\u00E2m ni\u00EAn"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
105
|
+
listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(item.total_promotion_tuition_seniority))); }),
|
|
106
|
+
React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
|
|
107
|
+
React.createElement("tr", null,
|
|
108
|
+
React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-5' }, "\u01AFu \u0111\u00E3i \u0111\u00F3ng s\u1EDBm"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
109
|
+
listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(item.total_promotion_early))); }),
|
|
110
|
+
React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
|
|
111
|
+
React.createElement("tr", { className: 'bg-gray-100' },
|
|
112
|
+
React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "2. Ph\u00ED d\u1ECBch v\u1EE5"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
113
|
+
listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(item.total_required_service + item.total_not_required_service - item.total_promotion_service))); }),
|
|
114
|
+
React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
|
|
115
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') -
|
|
116
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service')))),
|
|
117
|
+
React.createElement("tr", null,
|
|
118
|
+
React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-5' }, "Ph\u00ED d\u1ECBch v\u1EE5 b\u1EAFt bu\u1ED9c"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
119
|
+
listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(item.total_required_service))); }),
|
|
120
|
+
React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, setShowModalService && (React.createElement(PHXButton, { onClick: function () { return setShowModalService(true); }, secondary: true, size: 'micro' }, "Chi ti\u1EBFt")))),
|
|
121
|
+
React.createElement("tr", null,
|
|
122
|
+
React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-5' }, "Ph\u00ED d\u1ECBch v\u1EE5 kh\u00F4ng b\u1EAFt bu\u1ED9c"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
123
|
+
listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(item.total_not_required_service))); }),
|
|
124
|
+
React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
|
|
125
|
+
React.createElement("tr", null,
|
|
126
|
+
React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-5' }, "\u01AFu \u0111\u00E3i ph\u00ED d\u1ECBch v\u1EE5"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
127
|
+
listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(item.total_promotion_service))); }),
|
|
128
|
+
React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
|
|
129
|
+
React.createElement("tr", { className: 'bg-gray-100' },
|
|
130
|
+
React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "3. Ti\u1EC1n thi\u1EBFu n\u0103m h\u1ECDc tr\u01B0\u1EDBc"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
131
|
+
listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(item.last_period_debt_balance))); }),
|
|
132
|
+
React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'last_period_debt_balance')))),
|
|
133
|
+
React.createElement("tr", { className: 'bg-gray-100' },
|
|
134
|
+
React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "4. Ti\u1EC1n th\u1EEBa n\u0103m h\u1ECDc tr\u01B0\u1EDBc"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
135
|
+
listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(item.last_period_credit_balance))); }),
|
|
136
|
+
React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'last_period_credit_balance')))),
|
|
137
|
+
React.createElement("tr", { className: 'bg-gray-100' },
|
|
138
|
+
React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "5. \u01AFu \u0111\u00E3i ghi danh"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
139
|
+
listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(item.total_promotion_admission))); }),
|
|
140
|
+
React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'total_promotion_admission')))),
|
|
141
|
+
React.createElement("tr", { className: 'bg-gray-100' },
|
|
142
|
+
React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "6. Ph\u1EA3i \u0111\u00F3ng (6=1+2+3-4-5)"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
143
|
+
listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(item.last_period_debt_balance +
|
|
144
|
+
item.total_tuition +
|
|
145
|
+
item.total_required_service +
|
|
146
|
+
item.total_not_required_service -
|
|
147
|
+
item.total_promotion_service -
|
|
148
|
+
item.total_promotion_tuition_policy -
|
|
149
|
+
item.total_promotion_admission -
|
|
150
|
+
item.total_promotion_tuition_scholar_ship -
|
|
151
|
+
item.total_promotion_tuition_seniority -
|
|
152
|
+
item.total_promotion_early -
|
|
153
|
+
item.last_period_credit_balance))); }),
|
|
154
|
+
React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'last_period_debt_balance') +
|
|
155
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_tuition') +
|
|
156
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
|
|
157
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') -
|
|
158
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service') -
|
|
159
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') -
|
|
160
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_admission') -
|
|
161
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
|
|
162
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
|
|
163
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early') -
|
|
164
|
+
totalFeeByCode(listDebtRecordByStudent, 'last_period_credit_balance')))),
|
|
165
|
+
React.createElement("tr", { className: 'border-t bg-gray-100' },
|
|
166
|
+
React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "7. \u0110\u00E3 \u0111\u00F3ng"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
167
|
+
listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(item.total_payment))); }),
|
|
168
|
+
React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'total_payment')))),
|
|
169
|
+
React.createElement("tr", { className: 'border-t bg-gray-100' },
|
|
170
|
+
React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "8. Ti\u1EC1n th\u1EEBa/(thi\u1EBFu)"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
171
|
+
listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(item.last_period_debt_balance +
|
|
172
|
+
item.total_tuition +
|
|
173
|
+
item.total_required_service +
|
|
174
|
+
item.total_not_required_service -
|
|
175
|
+
item.total_promotion_service -
|
|
176
|
+
item.total_promotion_tuition_policy -
|
|
177
|
+
item.total_promotion_admission -
|
|
178
|
+
item.total_promotion_tuition_scholar_ship -
|
|
179
|
+
item.total_promotion_tuition_seniority -
|
|
180
|
+
item.total_promotion_early -
|
|
181
|
+
item.total_payment -
|
|
182
|
+
item.last_period_credit_balance))); }),
|
|
183
|
+
React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'last_period_debt_balance') +
|
|
184
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_tuition') +
|
|
185
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
|
|
186
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') -
|
|
187
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service') -
|
|
188
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') -
|
|
189
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_admission') -
|
|
190
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
|
|
191
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
|
|
192
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early') -
|
|
193
|
+
totalFeeByCode(listDebtRecordByStudent, 'total_payment') -
|
|
194
|
+
totalFeeByCode(listDebtRecordByStudent, 'last_period_credit_balance')))),
|
|
195
|
+
React.createElement("tr", null,
|
|
196
|
+
React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "7. File PDF thu ph\u00ED"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
|
|
197
|
+
listDebtRecordByStudent.map(function (itemDebt, index) {
|
|
198
|
+
var _a, _b;
|
|
199
|
+
var linkDeliveredEmail = ((_a = itemDebt.profile_student) === null || _a === void 0 ? void 0 : _a.tuition_notice_delivered_emails) || [];
|
|
200
|
+
var listEmailFilterWithSchoolTermId = (linkDeliveredEmail === null || linkDeliveredEmail === void 0 ? void 0 : linkDeliveredEmail.filter(function (item) { var _a, _b; return ((_a = itemDebt.school_term) === null || _a === void 0 ? void 0 : _a.id) === ((_b = item.tuition_notice_campaign) === null || _b === void 0 ? void 0 : _b.school_term_id); })) || [];
|
|
201
|
+
var linkPdfNewest = '';
|
|
202
|
+
if (listEmailFilterWithSchoolTermId.length > 0) {
|
|
203
|
+
linkPdfNewest = (_b = listEmailFilterWithSchoolTermId[0]) === null || _b === void 0 ? void 0 : _b.link_pdf_cdn;
|
|
204
|
+
}
|
|
205
|
+
return linkPdfNewest ? (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' },
|
|
206
|
+
React.createElement("a", {
|
|
207
|
+
// ref={linkRef}
|
|
208
|
+
className: 'pt-3 text-xs text-blue-600 hover:cursor-pointer hover:text-blue-800 hover:underline', href: linkPdfNewest, rel: 'noreferrer', target: '_blank' }, "pdf file"))) : (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, "---"));
|
|
209
|
+
}),
|
|
210
|
+
React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }))))))) : (React.createElement(PHXSkeleton, { type: 'table' }))));
|
|
211
|
+
};
|
|
212
|
+
//# sourceMappingURL=FormTuition.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormTuition.js","sourceRoot":"","sources":["../../../../src/components/FormTuition/FormTuition.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,cAAc,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAA;AAchE,MAAM,CAAC,IAAM,cAAc,GAA+B,UAAC,EAUxC;QATjB,SAAS,eAAA,EACT,SAAS,eAAA,EACT,cAAc,oBAAA,EACd,UAAU,gBAAA,EACV,oBAAoB,0BAAA,EACpB,WAAW,iBAAA,EACX,0BAA0B,gCAAA,EAC1B,2BAA2B,iCAAA,EAC3B,mBAAmB,yBAAA;IAEb,IAAA,KAAkC,YAAY,CAAC,8BAA8B,EAAE;QACnF,WAAW,EAAE,cAAc;QAC3B,2BAA2B,EAAE,IAAI;KAClC,CAAC,EAHK,mBAAmB,QAAA,EAAI,IAAI,aAGhC,CAAA;IAEF,IAAM,SAAS,GAAG;;;wBAChB,qBAAM,cAAc,CAAC,mBAAmB,EAAE;wBACxC,SAAS,EAAE;4BACT,SAAS,WAAA;4BACT,SAAS,WAAA;4BACT,cAAc,gBAAA;4BACd,UAAU,YAAA;4BACV,oBAAoB,sBAAA;4BACpB,WAAW,aAAA;yBACZ;qBACF,CAAC,EAAA;;oBATF,SASE,CAAA;;;;SACH,CAAA;IAED,SAAS,CAAC;QACR,IAAI,cAAc,EAAE;YACl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QAAQ,eAGb,CACD,CACN,CAAC,CAAC,CAAC,CACF,4BAAI,GAAG,EAAE,KAAK,EAAE,SAAS,EAAC,oDAAoD,UAEzE,CACN,CAAA;wBACH,CAAC,CAAC;wBAEF,4BAAI,SAAS,EAAC,oDAAoD,GAAG,CAClE,CACC,CACF,CACJ,CACF,CACP,CAAC,CAAC,CAAC,CACF,oBAAC,WAAW,IAAC,IAAI,EAAC,OAAO,GAAG,CAC7B,CACA,CACJ,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './FormTuition';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/FormTuition/index.tsx"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PHXFormTuition } from '../components/FormTuition';
|
|
3
|
+
import { ApolloWrapper } from '../lib/apollo-wrapper';
|
|
4
|
+
var TuitionDemo = function () {
|
|
5
|
+
return (React.createElement(ApolloWrapper, null,
|
|
6
|
+
React.createElement(PHXFormTuition, { school_id: 1, user_code: 'PHX-006', school_year_id: 19, program_id: 1, program_education_id: 4, studentType: 5 })));
|
|
7
|
+
};
|
|
8
|
+
export default TuitionDemo;
|
|
9
|
+
//# sourceMappingURL=FormTuitionDemo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormTuitionDemo.js","sourceRoot":"","sources":["../../../src/demo/FormTuitionDemo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAErD,IAAM,WAAW,GAAG;IAClB,OAAO,CACL,oBAAC,aAAa;QACZ,oBAAC,cAAc,IACb,SAAS,EAAE,CAAC,EACZ,SAAS,EAAE,SAAS,EACpB,cAAc,EAAE,EAAE,EAClB,UAAU,EAAE,CAAC,EACb,oBAAoB,EAAE,CAAC,EACvB,WAAW,EAAE,CAAC,GACd,CACY,CACjB,CAAA;AACH,CAAC,CAAA;AACD,eAAe,WAAW,CAAA"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { PHXSelectBox } from './components/SelectBox';
|
|
|
14
14
|
import { PHXRadio } from './components/Radio';
|
|
15
15
|
import { PHXCheckbox } from './components/Checkbox';
|
|
16
16
|
import { PHXFormStep } from './components/FormStep';
|
|
17
|
+
import { PHXFormTuition } from './components/FormTuition';
|
|
17
18
|
import { PHXNotifications } from './components/Notifications';
|
|
18
19
|
import { PHXSkeleton } from './components/Skeleton';
|
|
19
20
|
import PHXFuncGetLoggedInfo from './components/Func/getLoginInfo';
|
|
@@ -49,4 +50,4 @@ import PHXGetActiveYearAndNextYear from './components/Func/getActiveAndNextSchoo
|
|
|
49
50
|
import { PHXDateRangePicker } from './components/DateRangePicker';
|
|
50
51
|
import PHXFetchAPI from './components/Func/serverQuery';
|
|
51
52
|
import { PBFMainWrap } from './components/PBFMainWrap';
|
|
52
|
-
export { PHXButton, PHXCard, PHXSpinner, PHXMainWrap, PHXFormWrap, PHXHeaderBar, PHXTable, PHXInput, PHXSelect, PHXSelectBox, PHXRadio, PHXCheckbox, PHXFormStep, PHXNotifications, PHXStep, PHXSkeleton, PHXFuncGetLoggedInfo, PHXClientQuery, PHXClientMutation, PHXTextarea, PHXModal, PHXTabs, PHXChoiceList, PHXDescriptionLists, PHXBadge, PHXLogin, PHXLoginSso, PHXBanner, PHXButtonGroup, PHXCombobox, PHXFormLayout, PHXHorizontalStack, PHXTextEditor, PHXUploadFile, PHXTableLogImportExport, PHXSearchResultList, PHXDatePicker, PHXLoginPn28, PHXEmptyRecord, PHXPagePermission, PHXTimePicker, PHXDropdown, PHXUploadAvatar, PHXGetHttpLinkConfig, PHXDateRangePicker, PHXUseDebounce, PHXResourceList, PHXGetCurrentYearWithTerm, PHXFetchAPI, PHXGetActiveYearAndNextYear, PBFMainWrap, };
|
|
53
|
+
export { PHXButton, PHXCard, PHXSpinner, PHXMainWrap, PHXFormWrap, PHXHeaderBar, PHXTable, PHXInput, PHXSelect, PHXSelectBox, PHXRadio, PHXCheckbox, PHXFormStep, PHXFormTuition, PHXNotifications, PHXStep, PHXSkeleton, PHXFuncGetLoggedInfo, PHXClientQuery, PHXClientMutation, PHXTextarea, PHXModal, PHXTabs, PHXChoiceList, PHXDescriptionLists, PHXBadge, PHXLogin, PHXLoginSso, PHXBanner, PHXButtonGroup, PHXCombobox, PHXFormLayout, PHXHorizontalStack, PHXTextEditor, PHXUploadFile, PHXTableLogImportExport, PHXSearchResultList, PHXDatePicker, PHXLoginPn28, PHXEmptyRecord, PHXPagePermission, PHXTimePicker, PHXDropdown, PHXUploadAvatar, PHXGetHttpLinkConfig, PHXDateRangePicker, PHXUseDebounce, PHXResourceList, PHXGetCurrentYearWithTerm, PHXFetchAPI, PHXGetActiveYearAndNextYear, PBFMainWrap, };
|
package/dist/esm/index.js
CHANGED
|
@@ -14,6 +14,7 @@ import { PHXSelectBox } from './components/SelectBox';
|
|
|
14
14
|
import { PHXRadio } from './components/Radio';
|
|
15
15
|
import { PHXCheckbox } from './components/Checkbox';
|
|
16
16
|
import { PHXFormStep } from './components/FormStep';
|
|
17
|
+
import { PHXFormTuition } from './components/FormTuition';
|
|
17
18
|
import { PHXNotifications } from './components/Notifications';
|
|
18
19
|
import { PHXSkeleton } from './components/Skeleton';
|
|
19
20
|
import PHXFuncGetLoggedInfo from './components/Func/getLoginInfo';
|
|
@@ -49,5 +50,5 @@ import PHXGetActiveYearAndNextYear from './components/Func/getActiveAndNextSchoo
|
|
|
49
50
|
import { PHXDateRangePicker } from './components/DateRangePicker';
|
|
50
51
|
import PHXFetchAPI from './components/Func/serverQuery';
|
|
51
52
|
import { PBFMainWrap } from './components/PBFMainWrap';
|
|
52
|
-
export { PHXButton, PHXCard, PHXSpinner, PHXMainWrap, PHXFormWrap, PHXHeaderBar, PHXTable, PHXInput, PHXSelect, PHXSelectBox, PHXRadio, PHXCheckbox, PHXFormStep, PHXNotifications, PHXStep, PHXSkeleton, PHXFuncGetLoggedInfo, PHXClientQuery, PHXClientMutation, PHXTextarea, PHXModal, PHXTabs, PHXChoiceList, PHXDescriptionLists, PHXBadge, PHXLogin, PHXLoginSso, PHXBanner, PHXButtonGroup, PHXCombobox, PHXFormLayout, PHXHorizontalStack, PHXTextEditor, PHXUploadFile, PHXTableLogImportExport, PHXSearchResultList, PHXDatePicker, PHXLoginPn28, PHXEmptyRecord, PHXPagePermission, PHXTimePicker, PHXDropdown, PHXUploadAvatar, PHXGetHttpLinkConfig, PHXDateRangePicker, PHXUseDebounce, PHXResourceList, PHXGetCurrentYearWithTerm, PHXFetchAPI, PHXGetActiveYearAndNextYear, PBFMainWrap, };
|
|
53
|
+
export { PHXButton, PHXCard, PHXSpinner, PHXMainWrap, PHXFormWrap, PHXHeaderBar, PHXTable, PHXInput, PHXSelect, PHXSelectBox, PHXRadio, PHXCheckbox, PHXFormStep, PHXFormTuition, PHXNotifications, PHXStep, PHXSkeleton, PHXFuncGetLoggedInfo, PHXClientQuery, PHXClientMutation, PHXTextarea, PHXModal, PHXTabs, PHXChoiceList, PHXDescriptionLists, PHXBadge, PHXLogin, PHXLoginSso, PHXBanner, PHXButtonGroup, PHXCombobox, PHXFormLayout, PHXHorizontalStack, PHXTextEditor, PHXUploadFile, PHXTableLogImportExport, PHXSearchResultList, PHXDatePicker, PHXLoginPn28, PHXEmptyRecord, PHXPagePermission, PHXTimePicker, PHXDropdown, PHXUploadAvatar, PHXGetHttpLinkConfig, PHXDateRangePicker, PHXUseDebounce, PHXResourceList, PHXGetCurrentYearWithTerm, PHXFetchAPI, PHXGetActiveYearAndNextYear, PBFMainWrap, };
|
|
53
54
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@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O,EACP,aAAa,EACb,mBAAmB,EACnB,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,SAAS,EACT,cAAc,EACd,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,uBAAuB,EACvB,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,yBAAyB,EACzB,WAAW,EACX,2BAA2B,EAC3B,WAAW,GACZ,CAAA"}
|
package/dist/esm/query/gql.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ export declare const getCampaignName: import("@apollo/client").DocumentNode;
|
|
|
3
3
|
export declare const GET_PERMISSION_DETAIL_USER: import("@apollo/client").DocumentNode;
|
|
4
4
|
export declare const querySchoolYear: import("@apollo/client").DocumentNode;
|
|
5
5
|
export declare const getActiveAndNextSchoolYear: import("@apollo/client").DocumentNode;
|
|
6
|
+
export declare const getTuitionDebtRecordByUserCode: import("@apollo/client").DocumentNode;
|
package/dist/esm/query/gql.js
CHANGED
|
@@ -6,5 +6,6 @@ export var getCampaignName = gql(templateObject_2 || (templateObject_2 = __makeT
|
|
|
6
6
|
export var GET_PERMISSION_DETAIL_USER = gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query GetUserPermission($id: Int, $school_id: Int) {\n permission_user(\n where: {\n deleted_at: { _is_null: true }\n is_active: { _eq: true }\n school_id: { _eq: $school_id }\n user_id: { _eq: $id }\n permission: { deleted_at: { _is_null: true } }\n }\n ) {\n permission {\n code\n }\n }\n permission_role(\n where: {\n deleted_at: { _is_null: true }\n is_active: { _eq: true }\n role: {\n school_id: { _eq: $school_id }\n deleted_at: { _is_null: true }\n user_roles: { deleted_at: { _is_null: true }, is_active: { _eq: true }, user_id: { _eq: $id } }\n }\n }\n ) {\n permission {\n code\n }\n id\n }\n }\n"], ["\n query GetUserPermission($id: Int, $school_id: Int) {\n permission_user(\n where: {\n deleted_at: { _is_null: true }\n is_active: { _eq: true }\n school_id: { _eq: $school_id }\n user_id: { _eq: $id }\n permission: { deleted_at: { _is_null: true } }\n }\n ) {\n permission {\n code\n }\n }\n permission_role(\n where: {\n deleted_at: { _is_null: true }\n is_active: { _eq: true }\n role: {\n school_id: { _eq: $school_id }\n deleted_at: { _is_null: true }\n user_roles: { deleted_at: { _is_null: true }, is_active: { _eq: true }, user_id: { _eq: $id } }\n }\n }\n ) {\n permission {\n code\n }\n id\n }\n }\n"])));
|
|
7
7
|
export var querySchoolYear = gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n query MyQuery($school_id: Int!, $gte: timestamptz!, $lte: timestamptz!) {\n school_year(\n where: {\n deleted_at: { _is_null: true }\n school_course: { school_id: { _eq: $school_id } }\n end_at: { _gte: $gte }\n start_at: { _lte: $lte }\n }\n ) {\n id\n name\n code\n start_at\n end_at\n school_terms(where: { deleted_at: { _is_null: true } }) {\n id\n code\n name\n coefficient\n start_at\n end_at\n }\n current_term: school_terms(\n where: { deleted_at: { _is_null: true }, end_at: { _gte: $gte }, start_at: { _lte: $lte } }\n ) {\n id\n code\n name\n coefficient\n start_at\n end_at\n }\n }\n }\n"], ["\n query MyQuery($school_id: Int!, $gte: timestamptz!, $lte: timestamptz!) {\n school_year(\n where: {\n deleted_at: { _is_null: true }\n school_course: { school_id: { _eq: $school_id } }\n end_at: { _gte: $gte }\n start_at: { _lte: $lte }\n }\n ) {\n id\n name\n code\n start_at\n end_at\n school_terms(where: { deleted_at: { _is_null: true } }) {\n id\n code\n name\n coefficient\n start_at\n end_at\n }\n current_term: school_terms(\n where: { deleted_at: { _is_null: true }, end_at: { _gte: $gte }, start_at: { _lte: $lte } }\n ) {\n id\n code\n name\n coefficient\n start_at\n end_at\n }\n }\n }\n"])));
|
|
8
8
|
export var getActiveAndNextSchoolYear = gql(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n query GetActiveAndNextSchoolYear($startAt: timestamptz, $endAt: timestamptz, $school_id: Int) {\n school_year(\n where: {\n deleted_at: { _is_null: true }\n start_at: { _lte: $startAt }\n end_at: { _gte: $endAt }\n school_course: { school_id: { _eq: $school_id } }\n }\n order_by: { id: asc }\n ) {\n code\n end_at\n id\n name\n start_at\n school_terms(where: { deleted_at: { _is_null: true } }, order_by: { id: asc }) {\n name\n code\n id\n }\n school_course {\n course_name\n id\n code\n }\n }\n }\n"], ["\n query GetActiveAndNextSchoolYear($startAt: timestamptz, $endAt: timestamptz, $school_id: Int) {\n school_year(\n where: {\n deleted_at: { _is_null: true }\n start_at: { _lte: $startAt }\n end_at: { _gte: $endAt }\n school_course: { school_id: { _eq: $school_id } }\n }\n order_by: { id: asc }\n ) {\n code\n end_at\n id\n name\n start_at\n school_terms(where: { deleted_at: { _is_null: true } }, order_by: { id: asc }) {\n name\n code\n id\n }\n school_course {\n course_name\n id\n code\n }\n }\n }\n"])));
|
|
9
|
-
var
|
|
9
|
+
export var getTuitionDebtRecordByUserCode = gql(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n query GetTuitionDebtRecordByUserCode(\n $user_code: String\n $school_year_id: Int\n $school_id: Int\n $program_id: Int\n $program_education_id: Int\n $studentType: [Int!]!\n ) {\n tuition_fee_service_register(\n where: {\n deleted_at: { _is_null: true }\n user_code: { _eq: $user_code }\n school_year_id: { _eq: $school_year_id }\n school_id: { _eq: $school_id }\n }\n ) {\n user_code\n school_id\n school_year_id\n service_type\n tuition_fee_service_general_semester {\n amount\n code\n id\n }\n tuition_fee_service_general_year {\n amount\n code\n id\n }\n tuition_fee_service_semester {\n amount\n code\n id\n }\n tuition_fee_service_year {\n amount\n code\n id\n }\n }\n tuition_fee_debt_record(\n order_by: { school_term_id: asc }\n where: {\n deleted_at: { _is_null: true }\n school_id: { _eq: $school_id }\n user_code: { _eq: $user_code }\n school_term: { school_year_id: { _eq: $school_year_id } }\n }\n ) {\n total_promotion_service\n total_payment\n total_promotion_tuition_seniority\n total_promotion_tuition_scholar_ship\n total_promotion_tuition_policy\n total_promotion_admission\n total_promotion_early\n total_required_service\n total_not_required_service\n total_tuition\n last_period_credit_balance\n last_period_debt_balance\n id\n school_term {\n school_year {\n name\n code\n }\n name\n code\n id\n }\n profile_student {\n tuition_notice_delivered_emails(order_by: { created_at: desc }) {\n link_pdf_cdn\n tuition_notice_campaign {\n school_term_id\n }\n }\n grade {\n name\n }\n program_map_educational_level {\n program {\n code\n name\n }\n }\n user {\n relationshipUsersByStudentId {\n id\n parent_id\n relationship_code\n user {\n gender\n full_name\n phone_number\n }\n }\n full_name\n classroom_students {\n classroom {\n name\n }\n }\n }\n tuition_student_profiles(where: { deleted_at: { _is_null: true }, school_year_id: { _eq: $school_year_id } }) {\n grade {\n name\n }\n program_map_educational_level {\n id\n educational_level_id\n program_id\n program {\n code\n name\n }\n }\n tuition_student_discount_type {\n id\n description\n code\n }\n }\n }\n user_code\n }\n tuition_fee_service_general_year(\n where: {\n school_year_id: { _eq: $school_year_id }\n school_id: { _eq: $school_id }\n deleted_at: { _is_null: true }\n program_id: { _eq: $program_id }\n student_type: { _in: $studentType }\n }\n ) {\n id\n amount\n code\n service_type\n tuition_fee_project_code {\n fee_type\n description\n }\n tuition_fee_service_general_semesters(\n order_by: { school_term_id: asc }\n where: { deleted_at: { _is_null: true }, student_type: { _in: $studentType } }\n ) {\n id\n amount\n code\n school_term {\n id\n name\n }\n }\n }\n tuition_fee_service_year(\n where: {\n student_type: { _in: $studentType }\n school_year_id: { _eq: $school_year_id }\n school_id: { _eq: $school_id }\n deleted_at: { _is_null: true }\n program_map_educational_level: { id: { _eq: $program_education_id } }\n }\n ) {\n id\n amount\n code\n service_type\n tuition_fee_project_code {\n fee_type\n description\n }\n tuition_fee_service_semesters(\n order_by: { school_term_id: asc }\n where: { deleted_at: { _is_null: true }, student_type: { _in: $studentType } }\n ) {\n id\n amount\n code\n school_term {\n id\n name\n }\n }\n }\n }\n"], ["\n query GetTuitionDebtRecordByUserCode(\n $user_code: String\n $school_year_id: Int\n $school_id: Int\n $program_id: Int\n $program_education_id: Int\n $studentType: [Int!]!\n ) {\n tuition_fee_service_register(\n where: {\n deleted_at: { _is_null: true }\n user_code: { _eq: $user_code }\n school_year_id: { _eq: $school_year_id }\n school_id: { _eq: $school_id }\n }\n ) {\n user_code\n school_id\n school_year_id\n service_type\n tuition_fee_service_general_semester {\n amount\n code\n id\n }\n tuition_fee_service_general_year {\n amount\n code\n id\n }\n tuition_fee_service_semester {\n amount\n code\n id\n }\n tuition_fee_service_year {\n amount\n code\n id\n }\n }\n tuition_fee_debt_record(\n order_by: { school_term_id: asc }\n where: {\n deleted_at: { _is_null: true }\n school_id: { _eq: $school_id }\n user_code: { _eq: $user_code }\n school_term: { school_year_id: { _eq: $school_year_id } }\n }\n ) {\n total_promotion_service\n total_payment\n total_promotion_tuition_seniority\n total_promotion_tuition_scholar_ship\n total_promotion_tuition_policy\n total_promotion_admission\n total_promotion_early\n total_required_service\n total_not_required_service\n total_tuition\n last_period_credit_balance\n last_period_debt_balance\n id\n school_term {\n school_year {\n name\n code\n }\n name\n code\n id\n }\n profile_student {\n tuition_notice_delivered_emails(order_by: { created_at: desc }) {\n link_pdf_cdn\n tuition_notice_campaign {\n school_term_id\n }\n }\n grade {\n name\n }\n program_map_educational_level {\n program {\n code\n name\n }\n }\n user {\n relationshipUsersByStudentId {\n id\n parent_id\n relationship_code\n user {\n gender\n full_name\n phone_number\n }\n }\n full_name\n classroom_students {\n classroom {\n name\n }\n }\n }\n tuition_student_profiles(where: { deleted_at: { _is_null: true }, school_year_id: { _eq: $school_year_id } }) {\n grade {\n name\n }\n program_map_educational_level {\n id\n educational_level_id\n program_id\n program {\n code\n name\n }\n }\n tuition_student_discount_type {\n id\n description\n code\n }\n }\n }\n user_code\n }\n tuition_fee_service_general_year(\n where: {\n school_year_id: { _eq: $school_year_id }\n school_id: { _eq: $school_id }\n deleted_at: { _is_null: true }\n program_id: { _eq: $program_id }\n student_type: { _in: $studentType }\n }\n ) {\n id\n amount\n code\n service_type\n tuition_fee_project_code {\n fee_type\n description\n }\n tuition_fee_service_general_semesters(\n order_by: { school_term_id: asc }\n where: { deleted_at: { _is_null: true }, student_type: { _in: $studentType } }\n ) {\n id\n amount\n code\n school_term {\n id\n name\n }\n }\n }\n tuition_fee_service_year(\n where: {\n student_type: { _in: $studentType }\n school_year_id: { _eq: $school_year_id }\n school_id: { _eq: $school_id }\n deleted_at: { _is_null: true }\n program_map_educational_level: { id: { _eq: $program_education_id } }\n }\n ) {\n id\n amount\n code\n service_type\n tuition_fee_project_code {\n fee_type\n description\n }\n tuition_fee_service_semesters(\n order_by: { school_term_id: asc }\n where: { deleted_at: { _is_null: true }, student_type: { _in: $studentType } }\n ) {\n id\n amount\n code\n school_term {\n id\n name\n }\n }\n }\n }\n"])));
|
|
10
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
|
|
10
11
|
//# sourceMappingURL=gql.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gql.js","sourceRoot":"","sources":["../../../src/query/gql.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtD,MAAM,CAAC,IAAM,UAAU,GAAG,GAAG,gnBAAA,0eAcoD,EAAiB,iEAKjG,KALgF,iBAAiB,CAKjG,CAAA;AAED,MAAM,CAAC,IAAM,eAAe,GAAG,GAAG,2LAAA,wHAOjC,IAAA,CAAA;AACD,MAAM,CAAC,IAAM,0BAA0B,GAAG,GAAG,g1BAAA,6wBAgC5C,IAAA,CAAA;AACD,MAAM,CAAC,IAAM,eAAe,GAAG,GAAG,61BAAA,0xBAmCjC,IAAA,CAAA;AACD,MAAM,CAAC,IAAM,0BAA0B,GAAG,GAAG,0sBAAA,uoBA4B5C,IAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"gql.js","sourceRoot":"","sources":["../../../src/query/gql.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AAEtD,MAAM,CAAC,IAAM,UAAU,GAAG,GAAG,gnBAAA,0eAcoD,EAAiB,iEAKjG,KALgF,iBAAiB,CAKjG,CAAA;AAED,MAAM,CAAC,IAAM,eAAe,GAAG,GAAG,2LAAA,wHAOjC,IAAA,CAAA;AACD,MAAM,CAAC,IAAM,0BAA0B,GAAG,GAAG,g1BAAA,6wBAgC5C,IAAA,CAAA;AACD,MAAM,CAAC,IAAM,eAAe,GAAG,GAAG,61BAAA,0xBAmCjC,IAAA,CAAA;AACD,MAAM,CAAC,IAAM,0BAA0B,GAAG,GAAG,0sBAAA,uoBA4B5C,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,8BAA8B,GAAG,GAAG,8+IAAA,26IA8LhD,IAAA,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __assign } from "tslib";
|
|
2
|
+
var formatNumber = function (number, locale, option) {
|
|
3
|
+
var _a;
|
|
4
|
+
return new Intl.NumberFormat(locale !== null && locale !== void 0 ? locale : 'VND', __assign(__assign({}, option), { currency: (_a = option === null || option === void 0 ? void 0 : option.currency) !== null && _a !== void 0 ? _a : 'VND' })).format(number);
|
|
5
|
+
};
|
|
6
|
+
function toVND(n) {
|
|
7
|
+
return new Intl.NumberFormat('vi-VN', {
|
|
8
|
+
style: 'currency',
|
|
9
|
+
currency: 'VND',
|
|
10
|
+
minimumFractionDigits: 0,
|
|
11
|
+
maximumFractionDigits: 4
|
|
12
|
+
}).format(n);
|
|
13
|
+
}
|
|
14
|
+
export { toVND, formatNumber };
|
|
15
|
+
//# sourceMappingURL=format-number.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-number.js","sourceRoot":"","sources":["../../../src/utils/format-number.ts"],"names":[],"mappings":";AAAA,IAAM,YAAY,GAAG,UAAC,MAAc,EAAE,MAAe,EAAE,MAAiC;;IACtF,OAAA,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,KAAK,wBAChC,MAAM,KACT,QAAQ,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,mCAAI,KAAK,IACnC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;CAAA,CAAA;AAEnB,SAAS,KAAK,CAAC,CAAS;IACtB,OAAO,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE;QACpC,KAAK,EAAE,UAAU;QACjB,QAAQ,EAAE,KAAK;QACf,qBAAqB,EAAE,CAAC;QACxB,qBAAqB,EAAE,CAAC;KACzB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAA;AACd,CAAC;AAED,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,CAAA"}
|