phx-react 1.3.680 → 1.3.682

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.
@@ -7,5 +7,4 @@ export interface FormTuitionProps {
7
7
  setShowModalPromotionObject?: any;
8
8
  setShowModalService?: any;
9
9
  }
10
- export declare const KEY_COEFFICIENT_SEMESTER_I = 1;
11
10
  export declare const PHXFormTuition: React.FC<FormTuitionProps>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
- exports.PHXFormTuition = exports.KEY_COEFFICIENT_SEMESTER_I = void 0;
3
+ exports.PHXFormTuition = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  var react_1 = tslib_1.__importStar(require("react"));
6
6
  var client_1 = require("@apollo/client");
@@ -10,9 +10,9 @@ var Skeleton_1 = require("../Skeleton");
10
10
  var clientQueryV2_1 = tslib_1.__importDefault(require("../Func/clientQueryV2"));
11
11
  var gql_1 = require("../../query/gql");
12
12
  var EmptyRecord_1 = require("../EmptyRecord");
13
- exports.KEY_COEFFICIENT_SEMESTER_I = 1;
13
+ var constants_1 = require("../../utils/constants");
14
14
  var PHXFormTuition = function (_a) {
15
- var school_id = _a.school_id, user_code = _a.user_code, school_year_id = _a.school_year_id, setDiscountPromotionObject = _a.setDiscountPromotionObject, setShowModalPromotionObject = _a.setShowModalPromotionObject, setShowModalService = _a.setShowModalService;
15
+ var school_id = _a.school_id, school_year_id = _a.school_year_id, setDiscountPromotionObject = _a.setDiscountPromotionObject, setShowModalPromotionObject = _a.setShowModalPromotionObject, setShowModalService = _a.setShowModalService, user_code = _a.user_code;
16
16
  var getDataFeeListQuery = (0, client_1.useLazyQuery)(gql_1.getTuitionDebtRecordByUserCode, {
17
17
  fetchPolicy: 'network-only',
18
18
  notifyOnNetworkStatusChange: true
@@ -53,18 +53,33 @@ var PHXFormTuition = function (_a) {
53
53
  fetchData();
54
54
  }
55
55
  }, [school_year_id]);
56
- var checkIsCanHoverTuitionRaw = function (listFee) {
57
- return listFee === null || listFee === void 0 ? void 0 : listFee.some(function (item) { return item.total_promotion_tuition_policy; });
58
- };
56
+ var checkIsHasPromoPolicy = function (listFee) { return listFee === null || listFee === void 0 ? void 0 : listFee.some(function (item) { return item.total_promotion_tuition_policy; }); };
59
57
  var totalFeeByCode = function (listData, code) {
60
58
  var total = listData === null || listData === void 0 ? void 0 : listData.reduce(function (total, item) { return total + Number(item[code]); }, 0);
61
59
  return total;
62
60
  };
63
61
  var getDebtAndCreditLastYear = function (listDebtRecord) {
64
62
  // Tìm ra dư có và dư có và dư nợ của năm ngoái (chính là bản ghi học kỳ 1)
65
- var dataLastYear = listDebtRecord === null || listDebtRecord === void 0 ? void 0 : listDebtRecord.filter(function (item) { var _a; return ((_a = item.school_term) === null || _a === void 0 ? void 0 : _a.coefficient) === exports.KEY_COEFFICIENT_SEMESTER_I; });
63
+ var dataLastYear = listDebtRecord === null || listDebtRecord === void 0 ? void 0 : listDebtRecord.filter(function (item) { var _a; return ((_a = item.school_term) === null || _a === void 0 ? void 0 : _a.coefficient) === constants_1.KEY_COEFFICIENT_SEMESTER_I; });
64
+ return dataLastYear || [];
65
+ };
66
+ var getDebtAndCreditCurrentYear = function (listDebtRecord) {
67
+ // Tìm ra dư có và dư có và dư nợ của năm ngoái (chính là bản ghi học kỳ 1)
68
+ var dataLastYear = listDebtRecord === null || listDebtRecord === void 0 ? void 0 : listDebtRecord.filter(function (item) { var _a; return ((_a = item.school_term) === null || _a === void 0 ? void 0 : _a.coefficient) === constants_1.KEY_COEFFICIENT_SEMESTER_II; });
66
69
  return dataLastYear || [];
67
70
  };
71
+ var createRowDetail = function (title, key) {
72
+ var isHasData = listDebtRecordByStudent.some(function (item) { return item[key]; });
73
+ if (isHasData) {
74
+ return (react_1["default"].createElement("tr", null,
75
+ react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-5' }, title), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
76
+ 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[key]))); }),
77
+ react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })));
78
+ }
79
+ else {
80
+ return react_1["default"].createElement(react_1["default"].Fragment, null);
81
+ }
82
+ };
68
83
  return (react_1["default"].createElement(react_1["default"].Fragment, null, isLoadingTable ? (react_1["default"].createElement(Skeleton_1.PHXSkeleton, { type: 'table' })) : listDebtRecordByStudent.length > 0 ? (react_1["default"].createElement("div", { className: '-my-2 overflow-x-auto' },
69
84
  react_1["default"].createElement("div", { className: 'inline-block min-w-full py-2 align-middle' },
70
85
  react_1["default"].createElement("table", { className: 'min-w-full divide-y divide-gray-300' },
@@ -78,142 +93,108 @@ var PHXFormTuition = function (_a) {
78
93
  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"))),
79
94
  react_1["default"].createElement("tbody", { className: 'divide-y divide-gray-200 bg-white' },
80
95
  react_1["default"].createElement("tr", { className: 'bg-gray-100' },
81
- 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 :
82
- 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 -
83
- item.total_promotion_tuition_policy -
84
- item.total_promotion_tuition_seniority -
85
- item.total_promotion_tuition_scholar_ship -
86
- item.total_promotion_early))); }),
87
- 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') -
88
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') -
89
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
90
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_seniority') -
91
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early')))),
96
+ 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. D\u01B0 n\u1EE3 k\u1EF3 tr\u01B0\u1EDBc"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
97
+ 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 - item.last_period_credit_balance))); }),
98
+ react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
99
+ react_1["default"].createElement("tr", { className: 'bg-gray-100' },
100
+ 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. C\u00E1c kho\u1EA3n thu trong n\u0103m"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
101
+ 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 +
102
+ item.total_required_service +
103
+ item.total_not_required_service +
104
+ item.total_adjustment_additional))); }),
105
+ 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') +
106
+ totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
107
+ totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') +
108
+ totalFeeByCode(listDebtRecordByStudent, 'total_adjustment_additional')))),
92
109
  react_1["default"].createElement("tr", null,
93
- 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 :
110
+ 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 theo ch\u00EDnh s\u00E1ch"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
94
111
  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))); }),
95
112
  react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
96
- react_1["default"].createElement("tr", { className: "".concat(setShowModalPromotionObject
97
- ? checkIsCanHoverTuitionRaw(listDebtRecordByStudent)
98
- ? 'hover:cursor-pointer hover:bg-gray-100'
99
- : ''
100
- : ''), onClick: function () {
113
+ react_1["default"].createElement("tr", null,
114
+ 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 :
115
+ 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))); }),
116
+ 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")))),
117
+ createRowDetail('Phí dịch vụ không bắt buộc', 'total_not_required_service'),
118
+ createRowDetail('Phí phụ thu', 'total_adjustment_additional'),
119
+ react_1["default"].createElement("tr", { className: 'bg-gray-100' },
120
+ 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. C\u00E1c kho\u1EA3n ph\u00ED gi\u1EA3m tr\u1EEB"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
121
+ 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 +
122
+ item.total_promotion_tuition_scholar_ship +
123
+ item.total_promotion_tuition_policy +
124
+ item.total_promotion_tuition_seniority +
125
+ item.total_promotion_admission +
126
+ item.total_promotion_service +
127
+ item.total_adjustment_refund +
128
+ item.total_refund))); }),
129
+ 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_early') +
130
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') +
131
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') +
132
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_seniority') +
133
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_admission') +
134
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service') +
135
+ totalFeeByCode(listDebtRecordByStudent, 'total_adjustment_refund') +
136
+ totalFeeByCode(listDebtRecordByStudent, 'total_refund')))),
137
+ createRowDetail('Ưu đãi đóng sớm', 'total_promotion_early'),
138
+ createRowDetail('Ưu đãi học bổng', 'total_promotion_tuition_scholar_ship'),
139
+ createRowDetail('Ưu đãi học bổng', 'total_promotion_tuition_scholar_ship'),
140
+ checkIsHasPromoPolicy(listDebtRecordByStudent) && (react_1["default"].createElement("tr", { className: "".concat(setShowModalPromotionObject ? 'hover:cursor-pointer hover:bg-gray-100' : ''), onClick: function () {
101
141
  if (!setShowModalPromotionObject) {
102
142
  return;
103
143
  }
104
- var isCanClick = checkIsCanHoverTuitionRaw(listDebtRecordByStudent);
105
- if (isCanClick) {
106
- setShowModalPromotionObject(true);
107
- setDiscountPromotionObject(Number((totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') /
108
- totalFeeByCode(listDebtRecordByStudent, 'total_tuition')) *
109
- 100).toFixed(1));
110
- }
144
+ setShowModalPromotionObject(true);
145
+ setDiscountPromotionObject(Number((totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') /
146
+ totalFeeByCode(listDebtRecordByStudent, 'total_tuition')) *
147
+ 100).toFixed(1));
111
148
  } },
112
149
  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 :
113
150
  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))); }),
114
- react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
115
- react_1["default"].createElement("tr", null,
116
- 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 :
117
- 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))); }),
118
- react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
119
- react_1["default"].createElement("tr", null,
120
- 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 :
121
- 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))); }),
122
- react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
123
- react_1["default"].createElement("tr", null,
124
- 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 :
125
- 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))); }),
126
- react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
127
- react_1["default"].createElement("tr", { className: 'bg-gray-100' },
128
- 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 :
129
- 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))); }),
130
- 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') +
131
- totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') -
132
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service')))),
133
- react_1["default"].createElement("tr", null,
134
- 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 :
135
- 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))); }),
136
- 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")))),
137
- react_1["default"].createElement("tr", null,
138
- 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 :
139
- 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))); }),
140
- react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
141
- react_1["default"].createElement("tr", null,
142
- 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 :
143
- 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))); }),
144
- react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
145
- react_1["default"].createElement("tr", { className: 'bg-gray-100' },
146
- 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 k\u1EF3 h\u1ECDc tr\u01B0\u1EDBc"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
147
- 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))); }),
148
- react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
151
+ react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }))),
152
+ createRowDetail('Ưu đãi thâm niên', 'total_promotion_tuition_seniority'),
153
+ createRowDetail('Ưu đãi tuyển sinh', 'total_promotion_admission'),
154
+ createRowDetail('Ưu đãi phí dịch vụ', 'total_promotion_service'),
155
+ createRowDetail('Giảm trừ bổ xung', 'total_adjustment_refund'),
156
+ createRowDetail('Hoàn tiền dịch vụ', 'total_refund'),
149
157
  react_1["default"].createElement("tr", { className: 'bg-gray-100' },
150
- 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 k\u1EF3 h\u1ECDc tr\u01B0\u1EDBc"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
151
- 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))); }),
152
- react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
153
- react_1["default"].createElement("tr", { className: 'bg-gray-100' },
154
- 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 :
155
- 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))); }),
156
- 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')))),
157
- react_1["default"].createElement("tr", { className: 'bg-gray-100' },
158
- 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 :
158
+ 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. Ph\u1EA3i \u0111\u00F3ng (4=1+2-3)"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
159
159
  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' }, generateValueToView(item.last_period_debt_balance +
160
160
  item.total_tuition +
161
161
  item.total_required_service +
162
- item.total_not_required_service -
163
- item.total_promotion_service -
164
- item.total_promotion_tuition_policy -
165
- item.total_promotion_admission -
162
+ item.total_not_required_service +
163
+ item.total_adjustment_additional -
164
+ item.total_promotion_early -
166
165
  item.total_promotion_tuition_scholar_ship -
166
+ item.total_promotion_tuition_policy -
167
167
  item.total_promotion_tuition_seniority -
168
- item.total_promotion_early -
168
+ item.total_promotion_admission -
169
+ item.total_promotion_service -
170
+ item.total_adjustment_refund -
171
+ item.total_refund -
169
172
  item.last_period_credit_balance))); }),
170
173
  react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, generateValueToView(totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_debt_balance') +
171
174
  totalFeeByCode(listDebtRecordByStudent, 'total_tuition') +
172
175
  totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
173
- totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') -
174
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service') -
176
+ totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') +
177
+ totalFeeByCode(listDebtRecordByStudent, 'total_adjustment_additional') -
178
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early') -
179
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
175
180
  totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') -
181
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_seniority') -
176
182
  totalFeeByCode(listDebtRecordByStudent, 'total_promotion_admission') -
177
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
178
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
179
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early') -
183
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service') -
184
+ totalFeeByCode(listDebtRecordByStudent, 'total_adjustment_refund') -
185
+ totalFeeByCode(listDebtRecordByStudent, 'total_refund') -
180
186
  totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_credit_balance')))),
181
187
  react_1["default"].createElement("tr", { className: 'border-t bg-gray-100' },
182
- 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 :
188
+ 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. \u0110\u00E3 \u0111\u00F3ng"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
183
189
  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))); }),
184
190
  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')))),
185
191
  react_1["default"].createElement("tr", { className: 'border-t bg-gray-100' },
186
- 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 thi\u1EBFu/(th\u1EEBa)"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
187
- 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' }, generateValueToView(item.last_period_debt_balance +
188
- item.total_tuition +
189
- item.total_required_service +
190
- item.total_not_required_service -
191
- item.total_promotion_service -
192
- item.total_promotion_tuition_policy -
193
- item.total_promotion_admission -
194
- item.total_promotion_tuition_scholar_ship -
195
- item.total_promotion_tuition_seniority -
196
- item.total_promotion_early -
197
- item.total_payment -
198
- item.last_period_credit_balance))); }),
199
- react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, generateValueToView(totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_debt_balance') +
200
- totalFeeByCode(listDebtRecordByStudent, 'total_tuition') +
201
- totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
202
- totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') -
203
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service') -
204
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') -
205
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_admission') -
206
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
207
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
208
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early') -
209
- totalFeeByCode(listDebtRecordByStudent, 'total_payment') -
210
- totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_credit_balance')))),
211
- react_1["default"].createElement("tr", null,
212
- react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "9. \u0110\u00E3 ho\u00E0n tr\u1EA3"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
213
- 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_refund))); }),
214
- 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_refund')))),
192
+ 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. Ti\u1EC1n thi\u1EBFu/(th\u1EEBa)"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
193
+ 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' }, generateValueToView(item.last_debt_balance - item.last_credit_balance))); }),
194
+ react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, generateValueToView(totalFeeByCode(getDebtAndCreditCurrentYear(listDebtRecordByStudent), 'last_debt_balance') -
195
+ totalFeeByCode(getDebtAndCreditCurrentYear(listDebtRecordByStudent), 'last_credit_balance')))),
215
196
  react_1["default"].createElement("tr", null,
216
- react_1["default"].createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "10. File PDF thu ph\u00ED"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
197
+ 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 :
217
198
  listDebtRecordByStudent.map(function (itemDebt, index) {
218
199
  var _a, _b;
219
200
  var linkDeliveredEmail = ((_a = itemDebt.profile_student) === null || _a === void 0 ? void 0 : _a.tuition_notice_delivered_emails) || [];
@@ -1 +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,gFAAkD;AAClD,uCAAgE;AAChE,8CAA+C;AAWlC,QAAA,0BAA0B,GAAG,CAAC,CAAA;AAEpC,IAAM,cAAc,GAA+B,UAAC,EAOxC;QANjB,SAAS,eAAA,EACT,SAAS,eAAA,EACT,cAAc,oBAAA,EACd,0BAA0B,gCAAA,EAC1B,2BAA2B,iCAAA,EAC3B,mBAAmB,yBAAA;IAEZ,IAAA,mBAAmB,GAAI,IAAA,qBAAY,EAAC,oCAA8B,EAAE;QACzE,WAAW,EAAE,cAAc;QAC3B,2BAA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ACT,IAAI,aAAa,GAAG,EAAE,CAAA;4BACtB,IAAI,+BAA+B,CAAC,MAAM,GAAG,CAAC,EAAE;gCAC9C,aAAa,GAAG,MAAA,+BAA+B,CAAC,CAAC,CAAC,0CAAE,YAAY,CAAA;6BACjE;4BACD,OAAO,aAAa,CAAC,CAAC,CAAC,CACrB,yCAAI,GAAG,EAAE,KAAK,EAAE,SAAS,EAAC,oDAAoD;gCAC5E;oCACE,gBAAgB;oCAChB,SAAS,EAAC,qFAAqF,EAC/F,IAAI,EAAE,aAAa,EACnB,GAAG,EAAC,YAAY,EAChB,MAAM,EAAC,QAAQ,eAGb,CACD,CACN,CAAC,CAAC,CAAC,CACF,yCAAI,GAAG,EAAE,KAAK,EAAE,SAAS,EAAC,oDAAoD,UAEzE,CACN,CAAA;wBACH,CAAC,CAAC;wBAEF,yCAAI,SAAS,EAAC,oDAAoD,GAAG,CAClE,CACC,CACF,CACJ,CACF,CACP,CAAC,CAAC,CAAC,CACF,iCAAC,4BAAc,OAAG,CACnB,CACA,CACJ,CAAA;AACH,CAAC,CAAA;AApbY,QAAA,cAAc,kBAob1B"}
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,gFAAkD;AAClD,uCAAgE;AAChE,8CAA+C;AAC/C,mDAA+F;AAWxF,IAAM,cAAc,GAA+B,UAAC,EAOxC;QANjB,SAAS,eAAA,EACT,cAAc,oBAAA,EACd,0BAA0B,gCAAA,EAC1B,2BAA2B,iCAAA,EAC3B,mBAAmB,yBAAA,EACnB,SAAS,eAAA;IAEF,IAAA,mBAAmB,GAAI,IAAA,qBAAY,EAAC,oCAA8B,EAAE;QACzE,WAAW,EAAE,cAAc;QAC3B,2BAA2B,EAAE,IAAI;KAClC,CAAC,GAHwB,CAGxB;IACI,IAAA,KAAsC,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,CAAC,CAAA;AA7WY,QAAA,cAAc,kBA6W1B"}
@@ -8,5 +8,7 @@ export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
8
8
  error?: boolean;
9
9
  errorType?: 'required-field' | 'duplicate-field';
10
10
  description?: string;
11
+ disabled?: boolean;
12
+ defaultChecked?: boolean;
11
13
  }
12
14
  export declare const PHXRadio: React.FC<InputProps>;
@@ -5,14 +5,14 @@ var tslib_1 = require("tslib");
5
5
  var react_1 = tslib_1.__importDefault(require("react"));
6
6
  var types_1 = require("../types");
7
7
  var PHXRadio = function (_a) {
8
- var className = _a.className, error = _a.error, errorType = _a.errorType, label = _a.label, register = _a.register, title = _a.title, description = _a.description, rest = tslib_1.__rest(_a, ["className", "error", "errorType", "label", "register", "title", "description"]);
8
+ var className = _a.className, error = _a.error, errorType = _a.errorType, label = _a.label, register = _a.register, title = _a.title, description = _a.description, disabled = _a.disabled, defaultChecked = _a.defaultChecked, rest = tslib_1.__rest(_a, ["className", "error", "errorType", "label", "register", "title", "description", "disabled", "defaultChecked"]);
9
9
  return (react_1["default"].createElement("div", { className: className },
10
10
  react_1["default"].createElement("label", { className: (0, types_1.classNames)(label ? 'mb-1 block text-xs font-normal text-gray-700' : 'hidden') }, label),
11
11
  react_1["default"].createElement("div", { className: 'flex items-center' },
12
12
  react_1["default"].createElement("label", { className: 'flex items-center text-xs font-normal leading-5 text-gray-700 hover:cursor-pointer' },
13
- react_1["default"].createElement("input", tslib_1.__assign({}, register, rest, { className: (0, types_1.classNames)(error ? 'border-red-800 bg-red-50 hover:bg-red-50 focus:border-red-800 focus:bg-red-50' : '', 'h-4 w-4 border-gray-300 p-0 text-indigo-900 focus:ring-indigo-900'), type: 'radio' })),
14
- react_1["default"].createElement("span", { className: 'ml-2' }, title))),
15
- react_1["default"].createElement("p", { className: 'text-xs font-normal text-gray-500 ml-6' }, description),
13
+ react_1["default"].createElement("input", tslib_1.__assign({}, register, rest, { disabled: disabled, defaultChecked: defaultChecked, className: (0, types_1.classNames)(error ? 'border-red-800 bg-red-50 hover:bg-red-50 focus:border-red-800 focus:bg-red-50' : '', 'h-4 w-4 border-gray-300 p-0 text-indigo-900 focus:ring-indigo-900'), type: 'radio' })),
14
+ react_1["default"].createElement("span", { className: (0, types_1.classNames)('ml-2', disabled && !defaultChecked && 'opacity-80') }, title))),
15
+ react_1["default"].createElement("p", { className: (0, types_1.classNames)('text-xs font-normal text-gray-500 ml-6', disabled && !defaultChecked && 'opacity-80') }, description),
16
16
  error && errorType ? (react_1["default"].createElement("div", { className: 'ml-1 mt-1 flex items-center' },
17
17
  react_1["default"].createElement("svg", { className: 'mr-2 h-4 w-4 text-red-500', fill: 'none', stroke: 'currentColor', strokeWidth: '2', viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg' },
18
18
  react_1["default"].createElement("path", { d: 'M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z', strokeLinecap: 'round', strokeLinejoin: 'round' })),
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":";;;;AAAA,wDAAkD;AAElD,kCAAqC;AAY9B,IAAM,QAAQ,GAAyB,UAAC,EASlC;IARX,IAAA,SAAS,eAAA,EACT,KAAK,WAAA,EACL,SAAS,eAAA,EACT,KAAK,WAAA,EACL,QAAQ,cAAA,EACR,KAAK,WAAA,EACL,WAAW,iBAAA,EACR,IAAI,sBARsC,gFAS9C,CADQ;IACS,OAAA,CAChB,0CAAK,SAAS,EAAE,SAAS;QACvB,4CAAO,SAAS,EAAE,IAAA,kBAAU,EAAC,KAAK,CAAC,CAAC,CAAC,8CAA8C,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAG,KAAK,CAAS;QAChH,0CAAK,SAAS,EAAC,mBAAmB;YAChC,4CAAO,SAAS,EAAC,oFAAoF;gBACnG,+DACM,QAAQ,EACR,IAAI,IACR,SAAS,EAAE,IAAA,kB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, 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
- exports.getTuitionDebtRecordByUserCode = (0, client_1.gql)(templateObject_6 || (templateObject_6 = tslib_1.__makeTemplateObject(["\n query GetTuitionDebtRecordByUserCode($user_code: String, $school_year_id: Int, $school_id: Int) {\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 total_refund\n id\n school_term {\n school_year {\n name\n code\n }\n name\n code\n coefficient\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 }\n"], ["\n query GetTuitionDebtRecordByUserCode($user_code: String, $school_year_id: Int, $school_id: Int) {\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 total_refund\n id\n school_term {\n school_year {\n name\n code\n }\n name\n code\n coefficient\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 }\n"])));
12
+ exports.getTuitionDebtRecordByUserCode = (0, client_1.gql)(templateObject_6 || (templateObject_6 = tslib_1.__makeTemplateObject(["\n query GetTuitionDebtRecordByUserCode($user_code: String, $school_year_id: Int, $school_id: Int) {\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_policy\n total_promotion_tuition_scholar_ship\n total_promotion_tuition_seniority\n total_promotion_early\n total_promotion_admission\n total_required_service\n total_not_required_service\n total_tuition\n last_period_debt_balance\n last_period_credit_balance\n status\n last_credit_balance\n last_debt_balance\n total_refund\n total_adjustment_refund\n total_adjustment_additional\n id\n status\n school_term {\n school_year {\n name\n code\n }\n name\n code\n coefficient\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 }\n"], ["\n query GetTuitionDebtRecordByUserCode($user_code: String, $school_year_id: Int, $school_id: Int) {\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_policy\n total_promotion_tuition_scholar_ship\n total_promotion_tuition_seniority\n total_promotion_early\n total_promotion_admission\n total_required_service\n total_not_required_service\n total_tuition\n last_period_debt_balance\n last_period_credit_balance\n status\n last_credit_balance\n last_debt_balance\n total_refund\n total_adjustment_refund\n total_adjustment_additional\n id\n status\n school_term {\n school_year {\n name\n code\n }\n name\n code\n coefficient\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 }\n"])));
13
13
  exports.querySearchGlobal = (0, client_1.gql)(templateObject_7 || (templateObject_7 = tslib_1.__makeTemplateObject(["\n query QuerySearchGlobal($school_id: Int, $searchValue: String) {\n profile_student(\n where: {\n _or: [\n { user_code: { _eq: $searchValue } }\n { user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true }, full_name: { _eq: $searchValue } } }\n ]\n }\n ) {\n user_code\n user {\n id\n user_roles(where: { deleted_at: { _is_null: true }, user: { deleted_at: { _is_null: true } } }) {\n role {\n name\n role_code\n }\n }\n classroom_students {\n classroom {\n name\n }\n }\n id\n full_name\n }\n }\n\n profile_parent(\n where: {\n _or: [\n { user: { email: { _eq: $searchValue } } }\n { user: { full_name: { _eq: $searchValue } } }\n { user: { phone_number: { _eq: $searchValue } } }\n ]\n deleted_at: { _is_null: true }\n user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true } }\n }\n ) {\n user {\n id\n full_name\n user_roles(where: { deleted_at: { _is_null: true }, user: { deleted_at: { _is_null: true } } }) {\n role {\n name\n role_code\n }\n }\n relationship_users(\n where: {\n deleted_at: { _is_null: true }\n user: { deleted_at: { _is_null: true } }\n userByStudentId: { deleted_at: { _is_null: true } }\n }\n ) {\n userByStudentId {\n full_name\n }\n }\n }\n }\n\n profile_teacher(\n where: {\n _or: [\n { user_code: { _eq: $searchValue } }\n { user: { email: { _eq: $searchValue } } }\n { user: { full_name: { _eq: $searchValue } } }\n { user: { phone_number: { _eq: $searchValue } } }\n ]\n deleted_at: { _is_null: true }\n user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true } }\n }\n ) {\n user {\n id\n full_name\n email\n phone_number\n user_roles(where: { deleted_at: { _is_null: true }, user: { deleted_at: { _is_null: true } } }) {\n role {\n name\n role_code\n }\n }\n relationship_users(\n where: {\n deleted_at: { _is_null: true }\n user: { deleted_at: { _is_null: true } }\n userByStudentId: { deleted_at: { _is_null: true } }\n }\n ) {\n userByStudentId {\n full_name\n }\n }\n }\n }\n }\n"], ["\n query QuerySearchGlobal($school_id: Int, $searchValue: String) {\n profile_student(\n where: {\n _or: [\n { user_code: { _eq: $searchValue } }\n { user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true }, full_name: { _eq: $searchValue } } }\n ]\n }\n ) {\n user_code\n user {\n id\n user_roles(where: { deleted_at: { _is_null: true }, user: { deleted_at: { _is_null: true } } }) {\n role {\n name\n role_code\n }\n }\n classroom_students {\n classroom {\n name\n }\n }\n id\n full_name\n }\n }\n\n profile_parent(\n where: {\n _or: [\n { user: { email: { _eq: $searchValue } } }\n { user: { full_name: { _eq: $searchValue } } }\n { user: { phone_number: { _eq: $searchValue } } }\n ]\n deleted_at: { _is_null: true }\n user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true } }\n }\n ) {\n user {\n id\n full_name\n user_roles(where: { deleted_at: { _is_null: true }, user: { deleted_at: { _is_null: true } } }) {\n role {\n name\n role_code\n }\n }\n relationship_users(\n where: {\n deleted_at: { _is_null: true }\n user: { deleted_at: { _is_null: true } }\n userByStudentId: { deleted_at: { _is_null: true } }\n }\n ) {\n userByStudentId {\n full_name\n }\n }\n }\n }\n\n profile_teacher(\n where: {\n _or: [\n { user_code: { _eq: $searchValue } }\n { user: { email: { _eq: $searchValue } } }\n { user: { full_name: { _eq: $searchValue } } }\n { user: { phone_number: { _eq: $searchValue } } }\n ]\n deleted_at: { _is_null: true }\n user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true } }\n }\n ) {\n user {\n id\n full_name\n email\n phone_number\n user_roles(where: { deleted_at: { _is_null: true }, user: { deleted_at: { _is_null: true } } }) {\n role {\n name\n role_code\n }\n }\n relationship_users(\n where: {\n deleted_at: { _is_null: true }\n user: { deleted_at: { _is_null: true } }\n userByStudentId: { deleted_at: { _is_null: true } }\n }\n ) {\n userByStudentId {\n full_name\n }\n }\n }\n }\n }\n"])));
14
14
  exports.queryGetProfile = (0, client_1.gql)(templateObject_8 || (templateObject_8 = tslib_1.__makeTemplateObject(["\n query QueryGetProfile($user_id: Int!, $school_id: Int!) {\n profile_staff(\n where: {\n staff_id: { _eq: $user_id }\n deleted_at: { _is_null: true }\n user: { deleted_at: { _is_null: true }, school_id: { _eq: $school_id } }\n }\n ) {\n is_quit_job\n }\n profile_teacher(\n where: {\n teacher_id: { _eq: $user_id }\n deleted_at: { _is_null: true }\n user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true } }\n }\n ) {\n is_quit_job\n }\n }\n"], ["\n query QueryGetProfile($user_id: Int!, $school_id: Int!) {\n profile_staff(\n where: {\n staff_id: { _eq: $user_id }\n deleted_at: { _is_null: true }\n user: { deleted_at: { _is_null: true }, school_id: { _eq: $school_id } }\n }\n ) {\n is_quit_job\n }\n profile_teacher(\n where: {\n teacher_id: { _eq: $user_id }\n deleted_at: { _is_null: true }\n user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true } }\n }\n ) {\n is_quit_job\n }\n }\n"])));
15
15
  exports.queryProfile = (0, client_1.gql)(templateObject_9 || (templateObject_9 = tslib_1.__makeTemplateObject(["\n query QueryGetProfile($email: String!) {\n profile_staff(\n where: { deleted_at: { _is_null: true }, user: { email: { _eq: $email }, deleted_at: { _is_null: true } } }\n ) {\n is_quit_job\n }\n profile_teacher(\n where: { deleted_at: { _is_null: true }, user: { email: { _eq: $email }, deleted_at: { _is_null: true } } }\n ) {\n is_quit_job\n }\n }\n"], ["\n query QueryGetProfile($email: String!) {\n profile_staff(\n where: { deleted_at: { _is_null: true }, user: { email: { _eq: $email }, deleted_at: { _is_null: true } } }\n ) {\n is_quit_job\n }\n profile_teacher(\n where: { deleted_at: { _is_null: true }, user: { email: { _eq: $email }, deleted_at: { _is_null: true } } }\n ) {\n is_quit_job\n }\n }\n"])));
@@ -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;AAEY,QAAA,8BAA8B,OAAG,YAAG,szEAAA,0uEA4FhD,KAAA;AAEY,QAAA,iBAAiB,OAAG,YAAG,msFAAA,unFAoGnC,KAAA;AAEY,QAAA,eAAe,OAAG,YAAG,onBAAA,wiBAqBjC,KAAA;AAEY,QAAA,YAAY,OAAG,YAAG,udAAA,2YAa9B,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,w8EAAA,43EAkGhD,KAAA;AAEY,QAAA,iBAAiB,OAAG,YAAG,msFAAA,unFAoGnC,KAAA;AAEY,QAAA,eAAe,OAAG,YAAG,onBAAA,wiBAqBjC,KAAA;AAEY,QAAA,YAAY,OAAG,YAAG,udAAA,2YAa9B,KAAA"}
@@ -38,3 +38,5 @@ export declare const BUS_SERVICE_TYPE_BTN = "BTN";
38
38
  export declare const BUS_SERVICE_TYPE_BUS = "BUS";
39
39
  export declare const AUTHENTICATED = "authenticated";
40
40
  export declare const SIZE_DEFAULT = "original";
41
+ export declare const KEY_COEFFICIENT_SEMESTER_I = 1;
42
+ export declare const KEY_COEFFICIENT_SEMESTER_II = 2;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  exports.__esModule = true;
3
- exports.SIZE_DEFAULT = exports.AUTHENTICATED = exports.BUS_SERVICE_TYPE_BUS = exports.BUS_SERVICE_TYPE_BTN = exports.PARENT_MOM = exports.PARENT_DAD = exports.KEY_PROFILE_TEACHER = exports.KEY_PARENT_STUDENT = exports.KEY_PROFILE_STUDENT = exports.DF_MENU_HOVER_BG_COLOR = exports.DF_MENU_ICON_ACTICE_COLOR = exports.DF_MENU_ICON_AND_TEXT_HOVER_COLOR = exports.DF_MENU_ICON_HOVER_COLOR = exports.DF_MENU_ICON_COLOR = exports.DF_MENU_BG_ACTIVE_COLOR = exports.DF_MENU_TEXT_COLOR = exports.DF_MENU_BG_COLOR = exports.DF_SEARCH_TEXT_COLOR = exports.DF_SEARCH_BORDER_HOVER_COLOR = exports.DF_SEARCH_BORDER_COLOR = exports.DF_SEARCH_BG_COLOR = exports.DF_SEARCH_ICON_COLOR = exports.DF_SKELETON_COLOR = exports.DF_HEADER_BG_COLOR = exports.DEFAULT_LOGO_DASHBOARD = exports.DEFAULT_LOGO_LOGIN = exports.DEFAULT_AVATAR = exports.ITEM_LOCAL_STORAGE = exports.ROLE_TEACHER = exports.TEACHER_TYPE_LEADER = exports.ROLE_SV = exports.KEY_QUERY_SETTING = exports.KEY_SETTING = exports.KEY_LOGIN_LOGO = exports.switchSchool = exports.superAdmin = exports.admin = exports.loginPage = exports.AUTH_TOKEN = exports.isLoggedCookie = void 0;
3
+ exports.KEY_COEFFICIENT_SEMESTER_II = exports.KEY_COEFFICIENT_SEMESTER_I = exports.SIZE_DEFAULT = exports.AUTHENTICATED = exports.BUS_SERVICE_TYPE_BUS = exports.BUS_SERVICE_TYPE_BTN = exports.PARENT_MOM = exports.PARENT_DAD = exports.KEY_PROFILE_TEACHER = exports.KEY_PARENT_STUDENT = exports.KEY_PROFILE_STUDENT = exports.DF_MENU_HOVER_BG_COLOR = exports.DF_MENU_ICON_ACTICE_COLOR = exports.DF_MENU_ICON_AND_TEXT_HOVER_COLOR = exports.DF_MENU_ICON_HOVER_COLOR = exports.DF_MENU_ICON_COLOR = exports.DF_MENU_BG_ACTIVE_COLOR = exports.DF_MENU_TEXT_COLOR = exports.DF_MENU_BG_COLOR = exports.DF_SEARCH_TEXT_COLOR = exports.DF_SEARCH_BORDER_HOVER_COLOR = exports.DF_SEARCH_BORDER_COLOR = exports.DF_SEARCH_BG_COLOR = exports.DF_SEARCH_ICON_COLOR = exports.DF_SKELETON_COLOR = exports.DF_HEADER_BG_COLOR = exports.DEFAULT_LOGO_DASHBOARD = exports.DEFAULT_LOGO_LOGIN = exports.DEFAULT_AVATAR = exports.ITEM_LOCAL_STORAGE = exports.ROLE_TEACHER = exports.TEACHER_TYPE_LEADER = exports.ROLE_SV = exports.KEY_QUERY_SETTING = exports.KEY_SETTING = exports.KEY_LOGIN_LOGO = exports.switchSchool = exports.superAdmin = exports.admin = exports.loginPage = exports.AUTH_TOKEN = exports.isLoggedCookie = void 0;
4
4
  exports.isLoggedCookie = 'isLoggedIn';
5
5
  exports.AUTH_TOKEN = 'authToken';
6
6
  exports.loginPage = '/login';
@@ -42,4 +42,6 @@ exports.BUS_SERVICE_TYPE_BUS = 'BUS'; // tại điểm
42
42
  exports.AUTHENTICATED = 'authenticated';
43
43
  // link size default của ảnh
44
44
  exports.SIZE_DEFAULT = 'original';
45
+ exports.KEY_COEFFICIENT_SEMESTER_I = 1;
46
+ exports.KEY_COEFFICIENT_SEMESTER_II = 2;
45
47
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG,YAAY,CAAA;AAC7B,QAAA,UAAU,GAAG,WAAW,CAAA;AACxB,QAAA,SAAS,GAAG,QAAQ,CAAA;AAEpB,QAAA,KAAK,GAAG,OAAO,CAAA;AACf,QAAA,UAAU,GAAG,KAAK,CAAA;AAClB,QAAA,YAAY,GAAG,QAAQ,CAAA;AACvB,QAAA,cAAc,GAAG,YAAY,CAAA;AAC7B,QAAA,WAAW,GAAG,cAAc,CAAA;AAC5B,QAAA,iBAAiB,GAAG,YAAY,CAAA;AAChC,QAAA,OAAO,GAAG,IAAI,CAAA;AACd,Q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A;AAE/B,QAAA,mBAAmB,GAAG,iBAAiB,CAAA;AACvC,QAAA,kBAAkB,GAAG,gBAAgB,CAAA;AACrC,QAAA,mBAAmB,GAAG,iBAAiB,CAAA;AAEvC,QAAA,UAAU,GAAG,KAAK,CAAA;AAClB,QAAA,UAAU,GAAG,KAAK,CAAA;AAElB,QAAA,oBAAoB,GAAG,KAAK,CAAA,CAAC,UAAU;AACvC,QAAA,oBAAoB,GAAG,KAAK,CAAA,CAAC,WAAW;AACxC,QAAA,aAAa,GAAG,eAAe,CAAA;AAE5C,4BAA4B;AACf,QAAA,YAAY,GAAG,UAAU,CAAA;AAEzB,QAAA,0BAA0B,GAAG,CAAC,CAAA;AAC9B,QAAA,2BAA2B,GAAG,CAAC,CAAA"}
@@ -7,5 +7,4 @@ export interface FormTuitionProps {
7
7
  setShowModalPromotionObject?: any;
8
8
  setShowModalService?: any;
9
9
  }
10
- export declare const KEY_COEFFICIENT_SEMESTER_I = 1;
11
10
  export declare const PHXFormTuition: React.FC<FormTuitionProps>;
@@ -7,9 +7,9 @@ import { PHXSkeleton } from '../Skeleton';
7
7
  import PHXClientQuery from '../Func/clientQueryV2';
8
8
  import { getTuitionDebtRecordByUserCode } from '../../query/gql';
9
9
  import { PHXEmptyRecord } from '../EmptyRecord';
10
- export var KEY_COEFFICIENT_SEMESTER_I = 1;
10
+ import { KEY_COEFFICIENT_SEMESTER_I, KEY_COEFFICIENT_SEMESTER_II } from '../../utils/constants';
11
11
  export var PHXFormTuition = function (_a) {
12
- var school_id = _a.school_id, user_code = _a.user_code, school_year_id = _a.school_year_id, setDiscountPromotionObject = _a.setDiscountPromotionObject, setShowModalPromotionObject = _a.setShowModalPromotionObject, setShowModalService = _a.setShowModalService;
12
+ var school_id = _a.school_id, school_year_id = _a.school_year_id, setDiscountPromotionObject = _a.setDiscountPromotionObject, setShowModalPromotionObject = _a.setShowModalPromotionObject, setShowModalService = _a.setShowModalService, user_code = _a.user_code;
13
13
  var getDataFeeListQuery = useLazyQuery(getTuitionDebtRecordByUserCode, {
14
14
  fetchPolicy: 'network-only',
15
15
  notifyOnNetworkStatusChange: true
@@ -50,9 +50,7 @@ export var PHXFormTuition = function (_a) {
50
50
  fetchData();
51
51
  }
52
52
  }, [school_year_id]);
53
- var checkIsCanHoverTuitionRaw = function (listFee) {
54
- return listFee === null || listFee === void 0 ? void 0 : listFee.some(function (item) { return item.total_promotion_tuition_policy; });
55
- };
53
+ var checkIsHasPromoPolicy = function (listFee) { return listFee === null || listFee === void 0 ? void 0 : listFee.some(function (item) { return item.total_promotion_tuition_policy; }); };
56
54
  var totalFeeByCode = function (listData, code) {
57
55
  var total = listData === null || listData === void 0 ? void 0 : listData.reduce(function (total, item) { return total + Number(item[code]); }, 0);
58
56
  return total;
@@ -62,6 +60,23 @@ export var PHXFormTuition = function (_a) {
62
60
  var dataLastYear = listDebtRecord === null || listDebtRecord === void 0 ? void 0 : listDebtRecord.filter(function (item) { var _a; return ((_a = item.school_term) === null || _a === void 0 ? void 0 : _a.coefficient) === KEY_COEFFICIENT_SEMESTER_I; });
63
61
  return dataLastYear || [];
64
62
  };
63
+ var getDebtAndCreditCurrentYear = function (listDebtRecord) {
64
+ // Tìm ra dư có và dư có và dư nợ của năm ngoái (chính là bản ghi học kỳ 1)
65
+ var dataLastYear = listDebtRecord === null || listDebtRecord === void 0 ? void 0 : listDebtRecord.filter(function (item) { var _a; return ((_a = item.school_term) === null || _a === void 0 ? void 0 : _a.coefficient) === KEY_COEFFICIENT_SEMESTER_II; });
66
+ return dataLastYear || [];
67
+ };
68
+ var createRowDetail = function (title, key) {
69
+ var isHasData = listDebtRecordByStudent.some(function (item) { return item[key]; });
70
+ if (isHasData) {
71
+ return (React.createElement("tr", null,
72
+ React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-5' }, title), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
73
+ 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[key]))); }),
74
+ React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })));
75
+ }
76
+ else {
77
+ return React.createElement(React.Fragment, null);
78
+ }
79
+ };
65
80
  return (React.createElement(React.Fragment, null, isLoadingTable ? (React.createElement(PHXSkeleton, { type: 'table' })) : listDebtRecordByStudent.length > 0 ? (React.createElement("div", { className: '-my-2 overflow-x-auto' },
66
81
  React.createElement("div", { className: 'inline-block min-w-full py-2 align-middle' },
67
82
  React.createElement("table", { className: 'min-w-full divide-y divide-gray-300' },
@@ -75,142 +90,108 @@ export var PHXFormTuition = function (_a) {
75
90
  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"))),
76
91
  React.createElement("tbody", { className: 'divide-y divide-gray-200 bg-white' },
77
92
  React.createElement("tr", { className: 'bg-gray-100' },
78
- 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 :
79
- 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 -
80
- item.total_promotion_tuition_policy -
81
- item.total_promotion_tuition_seniority -
82
- item.total_promotion_tuition_scholar_ship -
83
- item.total_promotion_early))); }),
84
- React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'total_tuition') -
85
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') -
86
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
87
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_seniority') -
88
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early')))),
93
+ React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "1. D\u01B0 n\u1EE3 k\u1EF3 tr\u01B0\u1EDBc"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
94
+ 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 - item.last_period_credit_balance))); }),
95
+ React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
96
+ React.createElement("tr", { className: 'bg-gray-100' },
97
+ React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "2. C\u00E1c kho\u1EA3n thu trong n\u0103m"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
98
+ 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 +
99
+ item.total_required_service +
100
+ item.total_not_required_service +
101
+ item.total_adjustment_additional))); }),
102
+ React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'total_tuition') +
103
+ totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
104
+ totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') +
105
+ totalFeeByCode(listDebtRecordByStudent, 'total_adjustment_additional')))),
89
106
  React.createElement("tr", null,
90
- 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 :
107
+ 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 theo ch\u00EDnh s\u00E1ch"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
91
108
  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))); }),
92
109
  React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
93
- React.createElement("tr", { className: "".concat(setShowModalPromotionObject
94
- ? checkIsCanHoverTuitionRaw(listDebtRecordByStudent)
95
- ? 'hover:cursor-pointer hover:bg-gray-100'
96
- : ''
97
- : ''), onClick: function () {
110
+ React.createElement("tr", null,
111
+ 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 :
112
+ 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))); }),
113
+ 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")))),
114
+ createRowDetail('Phí dịch vụ không bắt buộc', 'total_not_required_service'),
115
+ createRowDetail('Phí phụ thu', 'total_adjustment_additional'),
116
+ React.createElement("tr", { className: 'bg-gray-100' },
117
+ React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "3. C\u00E1c kho\u1EA3n ph\u00ED gi\u1EA3m tr\u1EEB"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
118
+ 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 +
119
+ item.total_promotion_tuition_scholar_ship +
120
+ item.total_promotion_tuition_policy +
121
+ item.total_promotion_tuition_seniority +
122
+ item.total_promotion_admission +
123
+ item.total_promotion_service +
124
+ item.total_adjustment_refund +
125
+ item.total_refund))); }),
126
+ React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early') +
127
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') +
128
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') +
129
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_seniority') +
130
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_admission') +
131
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service') +
132
+ totalFeeByCode(listDebtRecordByStudent, 'total_adjustment_refund') +
133
+ totalFeeByCode(listDebtRecordByStudent, 'total_refund')))),
134
+ createRowDetail('Ưu đãi đóng sớm', 'total_promotion_early'),
135
+ createRowDetail('Ưu đãi học bổng', 'total_promotion_tuition_scholar_ship'),
136
+ createRowDetail('Ưu đãi học bổng', 'total_promotion_tuition_scholar_ship'),
137
+ checkIsHasPromoPolicy(listDebtRecordByStudent) && (React.createElement("tr", { className: "".concat(setShowModalPromotionObject ? 'hover:cursor-pointer hover:bg-gray-100' : ''), onClick: function () {
98
138
  if (!setShowModalPromotionObject) {
99
139
  return;
100
140
  }
101
- var isCanClick = checkIsCanHoverTuitionRaw(listDebtRecordByStudent);
102
- if (isCanClick) {
103
- setShowModalPromotionObject(true);
104
- setDiscountPromotionObject(Number((totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') /
105
- totalFeeByCode(listDebtRecordByStudent, 'total_tuition')) *
106
- 100).toFixed(1));
107
- }
141
+ setShowModalPromotionObject(true);
142
+ setDiscountPromotionObject(Number((totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') /
143
+ totalFeeByCode(listDebtRecordByStudent, 'total_tuition')) *
144
+ 100).toFixed(1));
108
145
  } },
109
146
  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 :
110
147
  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))); }),
111
- React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
112
- React.createElement("tr", null,
113
- 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 :
114
- 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))); }),
115
- React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
116
- React.createElement("tr", null,
117
- 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 :
118
- 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))); }),
119
- React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
120
- React.createElement("tr", null,
121
- 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 :
122
- 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))); }),
123
- React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
124
- React.createElement("tr", { className: 'bg-gray-100' },
125
- 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 :
126
- 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))); }),
127
- React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
128
- totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') -
129
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service')))),
130
- React.createElement("tr", null,
131
- 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 :
132
- 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))); }),
133
- 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")))),
134
- React.createElement("tr", null,
135
- 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 :
136
- 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))); }),
137
- React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
138
- React.createElement("tr", null,
139
- 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 :
140
- 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))); }),
141
- React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
142
- React.createElement("tr", { className: 'bg-gray-100' },
143
- 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 k\u1EF3 h\u1ECDc tr\u01B0\u1EDBc"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
144
- 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))); }),
145
- React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
148
+ React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }))),
149
+ createRowDetail('Ưu đãi thâm niên', 'total_promotion_tuition_seniority'),
150
+ createRowDetail('Ưu đãi tuyển sinh', 'total_promotion_admission'),
151
+ createRowDetail('Ưu đãi phí dịch vụ', 'total_promotion_service'),
152
+ createRowDetail('Giảm trừ bổ xung', 'total_adjustment_refund'),
153
+ createRowDetail('Hoàn tiền dịch vụ', 'total_refund'),
146
154
  React.createElement("tr", { className: 'bg-gray-100' },
147
- 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 k\u1EF3 h\u1ECDc tr\u01B0\u1EDBc"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
148
- 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))); }),
149
- React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' })),
150
- React.createElement("tr", { className: 'bg-gray-100' },
151
- 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 :
152
- 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))); }),
153
- React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'total_promotion_admission')))),
154
- React.createElement("tr", { className: 'bg-gray-100' },
155
- 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 :
155
+ React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "4. Ph\u1EA3i \u0111\u00F3ng (4=1+2-3)"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
156
156
  listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, generateValueToView(item.last_period_debt_balance +
157
157
  item.total_tuition +
158
158
  item.total_required_service +
159
- item.total_not_required_service -
160
- item.total_promotion_service -
161
- item.total_promotion_tuition_policy -
162
- item.total_promotion_admission -
159
+ item.total_not_required_service +
160
+ item.total_adjustment_additional -
161
+ item.total_promotion_early -
163
162
  item.total_promotion_tuition_scholar_ship -
163
+ item.total_promotion_tuition_policy -
164
164
  item.total_promotion_tuition_seniority -
165
- item.total_promotion_early -
165
+ item.total_promotion_admission -
166
+ item.total_promotion_service -
167
+ item.total_adjustment_refund -
168
+ item.total_refund -
166
169
  item.last_period_credit_balance))); }),
167
170
  React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, generateValueToView(totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_debt_balance') +
168
171
  totalFeeByCode(listDebtRecordByStudent, 'total_tuition') +
169
172
  totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
170
- totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') -
171
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service') -
173
+ totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') +
174
+ totalFeeByCode(listDebtRecordByStudent, 'total_adjustment_additional') -
175
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early') -
176
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
172
177
  totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') -
178
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_seniority') -
173
179
  totalFeeByCode(listDebtRecordByStudent, 'total_promotion_admission') -
174
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
175
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
176
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early') -
180
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service') -
181
+ totalFeeByCode(listDebtRecordByStudent, 'total_adjustment_refund') -
182
+ totalFeeByCode(listDebtRecordByStudent, 'total_refund') -
177
183
  totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_credit_balance')))),
178
184
  React.createElement("tr", { className: 'border-t bg-gray-100' },
179
- 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 :
185
+ React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "5. \u0110\u00E3 \u0111\u00F3ng"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
180
186
  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))); }),
181
187
  React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'total_payment')))),
182
188
  React.createElement("tr", { className: 'border-t bg-gray-100' },
183
- 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 thi\u1EBFu/(th\u1EEBa)"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
184
- listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, generateValueToView(item.last_period_debt_balance +
185
- item.total_tuition +
186
- item.total_required_service +
187
- item.total_not_required_service -
188
- item.total_promotion_service -
189
- item.total_promotion_tuition_policy -
190
- item.total_promotion_admission -
191
- item.total_promotion_tuition_scholar_ship -
192
- item.total_promotion_tuition_seniority -
193
- item.total_promotion_early -
194
- item.total_payment -
195
- item.last_period_credit_balance))); }),
196
- React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, generateValueToView(totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_debt_balance') +
197
- totalFeeByCode(listDebtRecordByStudent, 'total_tuition') +
198
- totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
199
- totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') -
200
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service') -
201
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') -
202
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_admission') -
203
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
204
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
205
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early') -
206
- totalFeeByCode(listDebtRecordByStudent, 'total_payment') -
207
- totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_credit_balance')))),
208
- React.createElement("tr", null,
209
- React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "9. \u0110\u00E3 ho\u00E0n tr\u1EA3"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
210
- 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_refund))); }),
211
- React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'total_refund')))),
189
+ React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "6. Ti\u1EC1n thi\u1EBFu/(th\u1EEBa)"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
190
+ listDebtRecordByStudent.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, generateValueToView(item.last_debt_balance - item.last_credit_balance))); }),
191
+ React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, generateValueToView(totalFeeByCode(getDebtAndCreditCurrentYear(listDebtRecordByStudent), 'last_debt_balance') -
192
+ totalFeeByCode(getDebtAndCreditCurrentYear(listDebtRecordByStudent), 'last_credit_balance')))),
212
193
  React.createElement("tr", null,
213
- React.createElement("td", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-xs font-medium text-gray-900 sm:pl-2' }, "10. File PDF thu ph\u00ED"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
194
+ 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 :
214
195
  listDebtRecordByStudent.map(function (itemDebt, index) {
215
196
  var _a, _b;
216
197
  var linkDeliveredEmail = ((_a = itemDebt.profile_student) === null || _a === void 0 ? void 0 : _a.tuition_notice_delivered_emails) || [];
@@ -1 +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,EAA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AC,eAAe,0CAAE,+BAA+B,KAAI,EAAE,CAAA;4BAC1F,IAAM,+BAA+B,GACnC,CAAA,kBAAkB,aAAlB,kBAAkB,uBAAlB,kBAAkB,CAAE,MAAM,CACxB,UAAC,IAAS,gBAAK,OAAA,CAAA,MAAA,QAAQ,CAAC,WAAW,0CAAE,EAAE,OAAK,MAAA,IAAI,CAAC,uBAAuB,0CAAE,cAAc,CAAA,CAAA,EAAA,CACzF,KAAI,EAAE,CAAA;4BACT,IAAI,aAAa,GAAG,EAAE,CAAA;4BACtB,IAAI,+BAA+B,CAAC,MAAM,GAAG,CAAC,EAAE;gCAC9C,aAAa,GAAG,MAAA,+BAA+B,CAAC,CAAC,CAAC,0CAAE,YAAY,CAAA;6BACjE;4BACD,OAAO,aAAa,CAAC,CAAC,CAAC,CACrB,4BAAI,GAAG,EAAE,KAAK,EAAE,SAAS,EAAC,oDAAoD;gCAC5E;oCACE,gBAAgB;oCAChB,SAAS,EAAC,qFAAqF,EAC/F,IAAI,EAAE,aAAa,EACnB,GAAG,EAAC,YAAY,EAChB,MAAM,EAAC,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,cAAc,OAAG,CACnB,CACA,CACJ,CAAA;AACH,CAAC,CAAA"}
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,O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;6BACjE;4BACD,OAAO,aAAa,CAAC,CAAC,CAAC,CACrB,4BAAI,GAAG,EAAE,KAAK,EAAE,SAAS,EAAC,oDAAoD;gCAC5E;oCACE,gBAAgB;oCAChB,SAAS,EAAC,qFAAqF,EAC/F,IAAI,EAAE,aAAa,EACnB,GAAG,EAAC,YAAY,EAChB,MAAM,EAAC,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,cAAc,OAAG,CACnB,CACA,CACJ,CAAA;AACH,CAAC,CAAA"}
@@ -8,5 +8,7 @@ export interface InputProps extends InputHTMLAttributes<HTMLInputElement> {
8
8
  error?: boolean;
9
9
  errorType?: 'required-field' | 'duplicate-field';
10
10
  description?: string;
11
+ disabled?: boolean;
12
+ defaultChecked?: boolean;
11
13
  }
12
14
  export declare const PHXRadio: React.FC<InputProps>;
@@ -2,14 +2,14 @@ import { __assign, __rest } from "tslib";
2
2
  import React from 'react';
3
3
  import { classNames } from '../types';
4
4
  export var PHXRadio = function (_a) {
5
- var className = _a.className, error = _a.error, errorType = _a.errorType, label = _a.label, register = _a.register, title = _a.title, description = _a.description, rest = __rest(_a, ["className", "error", "errorType", "label", "register", "title", "description"]);
5
+ var className = _a.className, error = _a.error, errorType = _a.errorType, label = _a.label, register = _a.register, title = _a.title, description = _a.description, disabled = _a.disabled, defaultChecked = _a.defaultChecked, rest = __rest(_a, ["className", "error", "errorType", "label", "register", "title", "description", "disabled", "defaultChecked"]);
6
6
  return (React.createElement("div", { className: className },
7
7
  React.createElement("label", { className: classNames(label ? 'mb-1 block text-xs font-normal text-gray-700' : 'hidden') }, label),
8
8
  React.createElement("div", { className: 'flex items-center' },
9
9
  React.createElement("label", { className: 'flex items-center text-xs font-normal leading-5 text-gray-700 hover:cursor-pointer' },
10
- React.createElement("input", __assign({}, register, rest, { className: classNames(error ? 'border-red-800 bg-red-50 hover:bg-red-50 focus:border-red-800 focus:bg-red-50' : '', 'h-4 w-4 border-gray-300 p-0 text-indigo-900 focus:ring-indigo-900'), type: 'radio' })),
11
- React.createElement("span", { className: 'ml-2' }, title))),
12
- React.createElement("p", { className: 'text-xs font-normal text-gray-500 ml-6' }, description),
10
+ React.createElement("input", __assign({}, register, rest, { disabled: disabled, defaultChecked: defaultChecked, className: classNames(error ? 'border-red-800 bg-red-50 hover:bg-red-50 focus:border-red-800 focus:bg-red-50' : '', 'h-4 w-4 border-gray-300 p-0 text-indigo-900 focus:ring-indigo-900'), type: 'radio' })),
11
+ React.createElement("span", { className: classNames('ml-2', disabled && !defaultChecked && 'opacity-80') }, title))),
12
+ React.createElement("p", { className: classNames('text-xs font-normal text-gray-500 ml-6', disabled && !defaultChecked && 'opacity-80') }, description),
13
13
  error && errorType ? (React.createElement("div", { className: 'ml-1 mt-1 flex items-center' },
14
14
  React.createElement("svg", { className: 'mr-2 h-4 w-4 text-red-500', fill: 'none', stroke: 'currentColor', strokeWidth: '2', viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg' },
15
15
  React.createElement("path", { d: 'M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z', strokeLinecap: 'round', strokeLinejoin: 'round' })),
@@ -1 +1 @@
1
- {"version":3,"file":"Radio.js","sourceRoot":"","sources":["../../../../src/components/Radio/Radio.tsx"],"names":[],"mappings":";AAAA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAYrC,MAAM,CAAC,IAAM,QAAQ,GAAyB,UAAC,EASlC;IARX,IAAA,SAAS,eAAA,EACT,KAAK,WAAA,EACL,SAAS,eAAA,EACT,KAAK,WAAA,EACL,QAAQ,cAAA,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AAO,EACrB,cAAc,EAAC,OAAO,GACtB,CACE;YAEN,2BAAG,SAAS,EAAC,sBAAsB,IAChC,SAAS,KAAK,gBAAgB,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,sBAAsB,CAClF,CACA,CACP,CAAC,CAAC,CAAC,IAAI,CACJ,CACP,CAAA;CAAA,CAAA"}
@@ -6,7 +6,7 @@ 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
- export var getTuitionDebtRecordByUserCode = gql(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n query GetTuitionDebtRecordByUserCode($user_code: String, $school_year_id: Int, $school_id: Int) {\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 total_refund\n id\n school_term {\n school_year {\n name\n code\n }\n name\n code\n coefficient\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 }\n"], ["\n query GetTuitionDebtRecordByUserCode($user_code: String, $school_year_id: Int, $school_id: Int) {\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 total_refund\n id\n school_term {\n school_year {\n name\n code\n }\n name\n code\n coefficient\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 }\n"])));
9
+ export var getTuitionDebtRecordByUserCode = gql(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n query GetTuitionDebtRecordByUserCode($user_code: String, $school_year_id: Int, $school_id: Int) {\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_policy\n total_promotion_tuition_scholar_ship\n total_promotion_tuition_seniority\n total_promotion_early\n total_promotion_admission\n total_required_service\n total_not_required_service\n total_tuition\n last_period_debt_balance\n last_period_credit_balance\n status\n last_credit_balance\n last_debt_balance\n total_refund\n total_adjustment_refund\n total_adjustment_additional\n id\n status\n school_term {\n school_year {\n name\n code\n }\n name\n code\n coefficient\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 }\n"], ["\n query GetTuitionDebtRecordByUserCode($user_code: String, $school_year_id: Int, $school_id: Int) {\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_policy\n total_promotion_tuition_scholar_ship\n total_promotion_tuition_seniority\n total_promotion_early\n total_promotion_admission\n total_required_service\n total_not_required_service\n total_tuition\n last_period_debt_balance\n last_period_credit_balance\n status\n last_credit_balance\n last_debt_balance\n total_refund\n total_adjustment_refund\n total_adjustment_additional\n id\n status\n school_term {\n school_year {\n name\n code\n }\n name\n code\n coefficient\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 }\n"])));
10
10
  export var querySearchGlobal = gql(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n query QuerySearchGlobal($school_id: Int, $searchValue: String) {\n profile_student(\n where: {\n _or: [\n { user_code: { _eq: $searchValue } }\n { user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true }, full_name: { _eq: $searchValue } } }\n ]\n }\n ) {\n user_code\n user {\n id\n user_roles(where: { deleted_at: { _is_null: true }, user: { deleted_at: { _is_null: true } } }) {\n role {\n name\n role_code\n }\n }\n classroom_students {\n classroom {\n name\n }\n }\n id\n full_name\n }\n }\n\n profile_parent(\n where: {\n _or: [\n { user: { email: { _eq: $searchValue } } }\n { user: { full_name: { _eq: $searchValue } } }\n { user: { phone_number: { _eq: $searchValue } } }\n ]\n deleted_at: { _is_null: true }\n user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true } }\n }\n ) {\n user {\n id\n full_name\n user_roles(where: { deleted_at: { _is_null: true }, user: { deleted_at: { _is_null: true } } }) {\n role {\n name\n role_code\n }\n }\n relationship_users(\n where: {\n deleted_at: { _is_null: true }\n user: { deleted_at: { _is_null: true } }\n userByStudentId: { deleted_at: { _is_null: true } }\n }\n ) {\n userByStudentId {\n full_name\n }\n }\n }\n }\n\n profile_teacher(\n where: {\n _or: [\n { user_code: { _eq: $searchValue } }\n { user: { email: { _eq: $searchValue } } }\n { user: { full_name: { _eq: $searchValue } } }\n { user: { phone_number: { _eq: $searchValue } } }\n ]\n deleted_at: { _is_null: true }\n user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true } }\n }\n ) {\n user {\n id\n full_name\n email\n phone_number\n user_roles(where: { deleted_at: { _is_null: true }, user: { deleted_at: { _is_null: true } } }) {\n role {\n name\n role_code\n }\n }\n relationship_users(\n where: {\n deleted_at: { _is_null: true }\n user: { deleted_at: { _is_null: true } }\n userByStudentId: { deleted_at: { _is_null: true } }\n }\n ) {\n userByStudentId {\n full_name\n }\n }\n }\n }\n }\n"], ["\n query QuerySearchGlobal($school_id: Int, $searchValue: String) {\n profile_student(\n where: {\n _or: [\n { user_code: { _eq: $searchValue } }\n { user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true }, full_name: { _eq: $searchValue } } }\n ]\n }\n ) {\n user_code\n user {\n id\n user_roles(where: { deleted_at: { _is_null: true }, user: { deleted_at: { _is_null: true } } }) {\n role {\n name\n role_code\n }\n }\n classroom_students {\n classroom {\n name\n }\n }\n id\n full_name\n }\n }\n\n profile_parent(\n where: {\n _or: [\n { user: { email: { _eq: $searchValue } } }\n { user: { full_name: { _eq: $searchValue } } }\n { user: { phone_number: { _eq: $searchValue } } }\n ]\n deleted_at: { _is_null: true }\n user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true } }\n }\n ) {\n user {\n id\n full_name\n user_roles(where: { deleted_at: { _is_null: true }, user: { deleted_at: { _is_null: true } } }) {\n role {\n name\n role_code\n }\n }\n relationship_users(\n where: {\n deleted_at: { _is_null: true }\n user: { deleted_at: { _is_null: true } }\n userByStudentId: { deleted_at: { _is_null: true } }\n }\n ) {\n userByStudentId {\n full_name\n }\n }\n }\n }\n\n profile_teacher(\n where: {\n _or: [\n { user_code: { _eq: $searchValue } }\n { user: { email: { _eq: $searchValue } } }\n { user: { full_name: { _eq: $searchValue } } }\n { user: { phone_number: { _eq: $searchValue } } }\n ]\n deleted_at: { _is_null: true }\n user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true } }\n }\n ) {\n user {\n id\n full_name\n email\n phone_number\n user_roles(where: { deleted_at: { _is_null: true }, user: { deleted_at: { _is_null: true } } }) {\n role {\n name\n role_code\n }\n }\n relationship_users(\n where: {\n deleted_at: { _is_null: true }\n user: { deleted_at: { _is_null: true } }\n userByStudentId: { deleted_at: { _is_null: true } }\n }\n ) {\n userByStudentId {\n full_name\n }\n }\n }\n }\n }\n"])));
11
11
  export var queryGetProfile = gql(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n query QueryGetProfile($user_id: Int!, $school_id: Int!) {\n profile_staff(\n where: {\n staff_id: { _eq: $user_id }\n deleted_at: { _is_null: true }\n user: { deleted_at: { _is_null: true }, school_id: { _eq: $school_id } }\n }\n ) {\n is_quit_job\n }\n profile_teacher(\n where: {\n teacher_id: { _eq: $user_id }\n deleted_at: { _is_null: true }\n user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true } }\n }\n ) {\n is_quit_job\n }\n }\n"], ["\n query QueryGetProfile($user_id: Int!, $school_id: Int!) {\n profile_staff(\n where: {\n staff_id: { _eq: $user_id }\n deleted_at: { _is_null: true }\n user: { deleted_at: { _is_null: true }, school_id: { _eq: $school_id } }\n }\n ) {\n is_quit_job\n }\n profile_teacher(\n where: {\n teacher_id: { _eq: $user_id }\n deleted_at: { _is_null: true }\n user: { school_id: { _eq: $school_id }, deleted_at: { _is_null: true } }\n }\n ) {\n is_quit_job\n }\n }\n"])));
12
12
  export var queryProfile = gql(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n query QueryGetProfile($email: String!) {\n profile_staff(\n where: { deleted_at: { _is_null: true }, user: { email: { _eq: $email }, deleted_at: { _is_null: true } } }\n ) {\n is_quit_job\n }\n profile_teacher(\n where: { deleted_at: { _is_null: true }, user: { email: { _eq: $email }, deleted_at: { _is_null: true } } }\n ) {\n is_quit_job\n }\n }\n"], ["\n query QueryGetProfile($email: String!) {\n profile_staff(\n where: { deleted_at: { _is_null: true }, user: { email: { _eq: $email }, deleted_at: { _is_null: true } } }\n ) {\n is_quit_job\n }\n profile_teacher(\n where: { deleted_at: { _is_null: true }, user: { email: { _eq: $email }, deleted_at: { _is_null: true } } }\n ) {\n is_quit_job\n }\n }\n"])));
@@ -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,CAK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MAAM,CAAC,IAAM,iBAAiB,GAAG,GAAG,0rFAAA,unFAoGnC,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,eAAe,GAAG,GAAG,2mBAAA,wiBAqBjC,IAAA,CAAA;AAED,MAAM,CAAC,IAAM,YAAY,GAAG,GAAG,8cAAA,2YAa9B,IAAA,CAAA"}
@@ -38,3 +38,5 @@ export declare const BUS_SERVICE_TYPE_BTN = "BTN";
38
38
  export declare const BUS_SERVICE_TYPE_BUS = "BUS";
39
39
  export declare const AUTHENTICATED = "authenticated";
40
40
  export declare const SIZE_DEFAULT = "original";
41
+ export declare const KEY_COEFFICIENT_SEMESTER_I = 1;
42
+ export declare const KEY_COEFFICIENT_SEMESTER_II = 2;
@@ -39,4 +39,6 @@ export var BUS_SERVICE_TYPE_BUS = 'BUS'; // tại điểm
39
39
  export var AUTHENTICATED = 'authenticated';
40
40
  // link size default của ảnh
41
41
  export var SIZE_DEFAULT = 'original';
42
+ export var KEY_COEFFICIENT_SEMESTER_I = 1;
43
+ export var KEY_COEFFICIENT_SEMESTER_II = 2;
42
44
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,cAAc,GAAG,YAAY,CAAA;AAC1C,MAAM,CAAC,IAAM,UAAU,GAAG,WAAW,CAAA;AACrC,MAAM,CAAC,IAAM,SAAS,GAAG,QAAQ,CAAA;AAEjC,MAAM,CAAC,IAAM,KAAK,GAAG,OAAO,CAAA;AAC5B,MAAM,CAAC,IAAM,UAAU,GAAG,KAAK,CAAA;AAC/B,MAAM,CAAC,IAAM,YAAY,GAAG,QAAQ,CAAA;AACpC,MAAM,CAAC,IAAM,cAAc,GAAG,YAAY,CAAA;AAC1C,MAAM,CAAC,IAAM,WAAW,GAAG,cAAc,CAAA;AACzC,MAAM,CAAC,IAAM,iBAAiB,GAAG,YAAY,CAAA;AAC7C,MAAM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AE5C,4BAA4B;AAC5B,MAAM,CAAC,IAAM,YAAY,GAAG,UAAU,CAAA;AAEtC,MAAM,CAAC,IAAM,0BAA0B,GAAG,CAAC,CAAA;AAC3C,MAAM,CAAC,IAAM,2BAA2B,GAAG,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "phx-react",
3
- "version": "1.3.680",
3
+ "version": "1.3.682",
4
4
  "description": "PHX REACT",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",