phx-uikit 1.0.9 → 1.0.11

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.
Files changed (93) hide show
  1. package/dist/cjs/components/Container/Container.d.ts +7 -0
  2. package/dist/cjs/components/Container/Container.js +14 -0
  3. package/dist/cjs/components/Container/Container.js.map +1 -0
  4. package/dist/cjs/components/Container/index.d.ts +1 -0
  5. package/dist/cjs/components/Container/index.js +5 -0
  6. package/dist/cjs/components/Container/index.js.map +1 -0
  7. package/dist/cjs/components/FormTuition/FormTuition.d.ts +1 -1
  8. package/dist/cjs/components/FormTuition/FormTuition.js +174 -180
  9. package/dist/cjs/components/FormTuition/FormTuition.js.map +1 -1
  10. package/dist/cjs/components/Func/clientMutationV2.d.ts +2 -1
  11. package/dist/cjs/components/Func/clientMutationV2.js +6 -7
  12. package/dist/cjs/components/Func/clientMutationV2.js.map +1 -1
  13. package/dist/cjs/components/Func/clientQueryV2.d.ts +2 -1
  14. package/dist/cjs/components/Func/clientQueryV2.js +6 -7
  15. package/dist/cjs/components/Func/clientQueryV2.js.map +1 -1
  16. package/dist/cjs/components/Modal/Modal.d.ts +1 -1
  17. package/dist/cjs/components/Modal/Modal.js +1 -1
  18. package/dist/cjs/components/Modal/Modal.js.map +1 -1
  19. package/dist/cjs/components/Radio/Radio.d.ts +3 -0
  20. package/dist/cjs/components/Radio/Radio.js +4 -3
  21. package/dist/cjs/components/Radio/Radio.js.map +1 -1
  22. package/dist/cjs/components/ResourceList/ResourceList.js +1 -1
  23. package/dist/cjs/components/ResourceList/component/list.js +2 -8
  24. package/dist/cjs/components/ResourceList/component/list.js.map +1 -1
  25. package/dist/cjs/components/SearchResultList/SearchResultList.d.ts +1 -0
  26. package/dist/cjs/components/SearchResultList/SearchResultList.js +17 -7
  27. package/dist/cjs/components/SearchResultList/SearchResultList.js.map +1 -1
  28. package/dist/cjs/components/SelectBox/SelectBox.js +4 -61
  29. package/dist/cjs/components/SelectBox/SelectBox.js.map +1 -1
  30. package/dist/cjs/components/UploadFile/ButtonUpload.d.ts +6 -1
  31. package/dist/cjs/components/UploadFile/ButtonUpload.js +4 -9
  32. package/dist/cjs/components/UploadFile/ButtonUpload.js.map +1 -1
  33. package/dist/cjs/components/UploadFile/FormUpload.d.ts +1 -1
  34. package/dist/cjs/components/UploadFile/FormUpload.js +85 -34
  35. package/dist/cjs/components/UploadFile/FormUpload.js.map +1 -1
  36. package/dist/cjs/components/UploadFile/UploadFile.d.ts +1 -1
  37. package/dist/cjs/components/UploadFile/UploadFile.js +36 -58
  38. package/dist/cjs/components/UploadFile/UploadFile.js.map +1 -1
  39. package/dist/cjs/index.d.ts +2 -1
  40. package/dist/cjs/index.js +4 -2
  41. package/dist/cjs/index.js.map +1 -1
  42. package/dist/cjs/query/gql.js +1 -1
  43. package/dist/cjs/query/gql.js.map +1 -1
  44. package/dist/cjs/utils/constants.d.ts +2 -0
  45. package/dist/cjs/utils/constants.js +3 -1
  46. package/dist/cjs/utils/constants.js.map +1 -1
  47. package/dist/esm/components/Container/Container.d.ts +7 -0
  48. package/dist/esm/components/Container/Container.js +9 -0
  49. package/dist/esm/components/Container/Container.js.map +1 -0
  50. package/dist/esm/components/Container/index.d.ts +1 -0
  51. package/dist/esm/components/Container/index.js +2 -0
  52. package/dist/esm/components/Container/index.js.map +1 -0
  53. package/dist/esm/components/FormTuition/FormTuition.d.ts +1 -1
  54. package/dist/esm/components/FormTuition/FormTuition.js +172 -178
  55. package/dist/esm/components/FormTuition/FormTuition.js.map +1 -1
  56. package/dist/esm/components/Func/clientMutationV2.d.ts +2 -1
  57. package/dist/esm/components/Func/clientMutationV2.js +6 -7
  58. package/dist/esm/components/Func/clientMutationV2.js.map +1 -1
  59. package/dist/esm/components/Func/clientQueryV2.d.ts +2 -1
  60. package/dist/esm/components/Func/clientQueryV2.js +6 -7
  61. package/dist/esm/components/Func/clientQueryV2.js.map +1 -1
  62. package/dist/esm/components/Modal/Modal.d.ts +1 -1
  63. package/dist/esm/components/Modal/Modal.js +1 -1
  64. package/dist/esm/components/Modal/Modal.js.map +1 -1
  65. package/dist/esm/components/Radio/Radio.d.ts +3 -0
  66. package/dist/esm/components/Radio/Radio.js +4 -3
  67. package/dist/esm/components/Radio/Radio.js.map +1 -1
  68. package/dist/esm/components/ResourceList/ResourceList.js +1 -1
  69. package/dist/esm/components/ResourceList/component/list.js +2 -8
  70. package/dist/esm/components/ResourceList/component/list.js.map +1 -1
  71. package/dist/esm/components/SearchResultList/SearchResultList.d.ts +1 -0
  72. package/dist/esm/components/SearchResultList/SearchResultList.js +17 -7
  73. package/dist/esm/components/SearchResultList/SearchResultList.js.map +1 -1
  74. package/dist/esm/components/SelectBox/SelectBox.js +5 -62
  75. package/dist/esm/components/SelectBox/SelectBox.js.map +1 -1
  76. package/dist/esm/components/UploadFile/ButtonUpload.d.ts +6 -1
  77. package/dist/esm/components/UploadFile/ButtonUpload.js +4 -9
  78. package/dist/esm/components/UploadFile/ButtonUpload.js.map +1 -1
  79. package/dist/esm/components/UploadFile/FormUpload.d.ts +1 -1
  80. package/dist/esm/components/UploadFile/FormUpload.js +87 -35
  81. package/dist/esm/components/UploadFile/FormUpload.js.map +1 -1
  82. package/dist/esm/components/UploadFile/UploadFile.d.ts +1 -1
  83. package/dist/esm/components/UploadFile/UploadFile.js +37 -59
  84. package/dist/esm/components/UploadFile/UploadFile.js.map +1 -1
  85. package/dist/esm/index.d.ts +2 -1
  86. package/dist/esm/index.js +2 -1
  87. package/dist/esm/index.js.map +1 -1
  88. package/dist/esm/query/gql.js +1 -1
  89. package/dist/esm/query/gql.js.map +1 -1
  90. package/dist/esm/utils/constants.d.ts +2 -0
  91. package/dist/esm/utils/constants.js +2 -0
  92. package/dist/esm/utils/constants.js.map +1 -1
  93. package/package.json +1 -1
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export interface FooterBarProps {
3
+ className?: string;
4
+ children?: any;
5
+ size?: 'small' | 'medium' | 'large' | 'extra-large';
6
+ }
7
+ export declare const PHXContainer: ({ children, className, size }: FooterBarProps) => React.JSX.Element;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.PHXContainer = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var react_1 = tslib_1.__importDefault(require("react"));
6
+ var types_1 = require("../types");
7
+ var PHXContainer = function (_a) {
8
+ var children = _a.children, className = _a.className, _b = _a.size, size = _b === void 0 ? 'large' : _b;
9
+ var sizeClassName = (0, types_1.classNames)(size === 'small' && 'mx-auto w-full md:w-5/6 xl:w-1/2', size === 'medium' && 'mx-auto w-full md:w-5/6 lg:w-3/4', size === 'large' && 'mx-auto w-full md:w-11/12 lg:w-11/12 xl:w-5/6', size === 'extra-large' && 'mx-auto w-full md:w-md lg:w-11/12');
10
+ return (react_1["default"].createElement("div", { className: className },
11
+ react_1["default"].createElement("div", { className: sizeClassName }, children)));
12
+ };
13
+ exports.PHXContainer = PHXContainer;
14
+ //# sourceMappingURL=Container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Container.js","sourceRoot":"","sources":["../../../../src/components/Container/Container.tsx"],"names":[],"mappings":";;;;AAAA,wDAAyB;AACzB,kCAAqC;AAQ9B,IAAM,YAAY,GAAG,UAAC,EAAuD;QAArD,QAAQ,cAAA,EAAE,SAAS,eAAA,EAAE,YAAc,EAAd,IAAI,mBAAG,OAAO,KAAA;IAChE,IAAM,aAAa,GAAG,IAAA,kBAAU,EAC9B,IAAI,KAAK,OAAO,IAAI,kCAAkC,EACtD,IAAI,KAAK,QAAQ,IAAI,kCAAkC,EACvD,IAAI,KAAK,OAAO,IAAI,+CAA+C,EACnE,IAAI,KAAK,aAAa,IAAI,mCAAmC,CAC9D,CAAA;IAED,OAAO,CACL,0CAAK,SAAS,EAAE,SAAS;QACvB,0CAAK,SAAS,EAAE,aAAa,IAAG,QAAQ,CAAO,CAC3C,CACP,CAAA;AACH,CAAC,CAAA;AAbY,QAAA,YAAY,gBAaxB"}
@@ -0,0 +1 @@
1
+ export * from './Container';
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ var tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./Container"), exports);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Container/index.ts"],"names":[],"mappings":";;;AAAA,sDAA2B"}
@@ -6,6 +6,6 @@ export interface FormTuitionProps {
6
6
  setDiscountPromotionObject?: any;
7
7
  setShowModalPromotionObject?: any;
8
8
  setShowModalService?: any;
9
+ isProcessByMonth?: boolean;
9
10
  }
10
- export declare const KEY_COEFFICIENT_SEMESTER_I = 1;
11
11
  export declare const PHXFormTuition: React.FC<FormTuitionProps>;
@@ -1,33 +1,34 @@
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");
7
7
  var format_number_1 = require("../../utils/format-number");
8
- var Button_1 = require("../Button");
9
8
  var Skeleton_1 = require("../Skeleton");
10
9
  var clientQueryV2_1 = tslib_1.__importDefault(require("../Func/clientQueryV2"));
11
10
  var gql_1 = require("../../query/gql");
12
11
  var EmptyRecord_1 = require("../EmptyRecord");
13
- exports.KEY_COEFFICIENT_SEMESTER_I = 1;
12
+ var constants_1 = require("../../utils/constants");
14
13
  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;
14
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
15
+ var _m = _a.isProcessByMonth, isProcessByMonth = _m === void 0 ? false : _m, 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
19
19
  })[0];
20
- var _b = (0, react_1.useState)(false), isLoadingTable = _b[0], setIsLoadingTable = _b[1];
21
- var _c = (0, react_1.useState)([]), listDebtRecordByStudent = _c[0], setListDebtRecordByStudent = _c[1];
20
+ var _o = (0, react_1.useState)(false), isLoadingTable = _o[0], setIsLoadingTable = _o[1];
21
+ var _p = (0, react_1.useState)([]), listDebtRecordByStudent = _p[0], setListDebtRecordByStudent = _p[1];
22
+ var _q = (0, react_1.useState)([]), listDebtRecordByMonth = _q[0], setListDebtRecordByMonth = _q[1];
22
23
  var generateValueToView = function (value) {
23
24
  if (!value)
24
25
  return 0;
25
26
  return value > 0 ? (0, format_number_1.toVND)(value) : "(".concat((0, format_number_1.toVND)(-value), ")");
26
27
  };
27
28
  var fetchData = function () { return tslib_1.__awaiter(void 0, void 0, void 0, function () {
28
- var res, tuition_fee_debt_record;
29
- return tslib_1.__generator(this, function (_a) {
30
- switch (_a.label) {
29
+ var res, _a, tuition_fee_debt_record, tuition_fee_debt_record_by_month;
30
+ return tslib_1.__generator(this, function (_b) {
31
+ switch (_b.label) {
31
32
  case 0:
32
33
  setIsLoadingTable(true);
33
34
  return [4 /*yield*/, (0, clientQueryV2_1["default"])(getDataFeeListQuery, {
@@ -38,10 +39,11 @@ var PHXFormTuition = function (_a) {
38
39
  }
39
40
  })];
40
41
  case 1:
41
- res = _a.sent();
42
+ res = _b.sent();
42
43
  if (res) {
43
- tuition_fee_debt_record = res.data.tuition_fee_debt_record;
44
+ _a = res.data, tuition_fee_debt_record = _a.tuition_fee_debt_record, tuition_fee_debt_record_by_month = _a.tuition_fee_debt_record_by_month;
44
45
  setListDebtRecordByStudent(tuition_fee_debt_record);
46
+ setListDebtRecordByMonth(tuition_fee_debt_record_by_month);
45
47
  }
46
48
  setIsLoadingTable(false);
47
49
  return [2 /*return*/];
@@ -52,182 +54,174 @@ var PHXFormTuition = function (_a) {
52
54
  if (school_year_id) {
53
55
  fetchData();
54
56
  }
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
- };
57
+ }, [school_year_id, isProcessByMonth]);
58
+ var checkIsHasPromoPolicy = function (listFee) { return listFee === null || listFee === void 0 ? void 0 : listFee.some(function (item) { return item.total_promotion_tuition_policy; }); };
59
59
  var totalFeeByCode = function (listData, code) {
60
- var total = listData === null || listData === void 0 ? void 0 : listData.reduce(function (total, item) { return total + Number(item[code]); }, 0);
60
+ var total = listData === null || listData === void 0 ? void 0 : listData.reduce(
61
+ // eslint-disable-next-line @typescript-eslint/no-shadow
62
+ function (total, item) { return total + Number(item[code]); }, 0);
61
63
  return total;
62
64
  };
63
65
  var getDebtAndCreditLastYear = function (listDebtRecord) {
64
66
  // 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; });
67
+ 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; });
66
68
  return dataLastYear || [];
67
69
  };
68
- 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
- react_1["default"].createElement("div", { className: 'inline-block min-w-full py-2 align-middle' },
70
- react_1["default"].createElement("table", { className: 'min-w-full divide-y divide-gray-300' },
71
- react_1["default"].createElement("thead", null,
72
- react_1["default"].createElement("tr", null,
73
- react_1["default"].createElement("th", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-left text-xs font-semibold text-gray-500 sm:pl-2', scope: 'col' }, "Chi ti\u1EBFt kho\u1EA3n ph\u00ED"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
74
- listDebtRecordByStudent.map(function (item, index) {
75
- var _a;
76
- return (react_1["default"].createElement("th", { key: index, className: 'py-2 pl-4 pr-3 text-left text-xs font-semibold text-gray-500 sm:pl-2', scope: 'col' }, ((_a = item.school_term) === null || _a === void 0 ? void 0 : _a.name) || ''));
77
- }),
78
- 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
- react_1["default"].createElement("tbody", { className: 'divide-y divide-gray-200 bg-white' },
80
- 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')))),
92
- 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 :
94
- 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
- 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 () {
101
- if (!setShowModalPromotionObject) {
102
- return;
103
- }
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
- }
111
- } },
112
- 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
- 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' })),
149
- 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 :
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
- item.total_tuition +
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 -
166
- item.total_promotion_tuition_scholar_ship -
167
- item.total_promotion_tuition_seniority -
168
- item.total_promotion_early -
169
- item.last_period_credit_balance))); }),
170
- 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
- totalFeeByCode(listDebtRecordByStudent, 'total_tuition') +
172
- totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
173
- totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') -
174
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service') -
175
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') -
176
- 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') -
180
- totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_credit_balance')))),
181
- 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 :
183
- 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
- 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
- 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')))),
215
- 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 :
217
- listDebtRecordByStudent.map(function (itemDebt, index) {
218
- var _a, _b;
219
- var linkDeliveredEmail = ((_a = itemDebt.profile_student) === null || _a === void 0 ? void 0 : _a.tuition_notice_delivered_emails) || [];
220
- var listEmailFilterWithSchoolTermId = (linkDeliveredEmail === null || linkDeliveredEmail === void 0 ? void 0 : linkDeliveredEmail.filter(function (item) { var _a, _b; return ((_a = itemDebt.school_term) === null || _a === void 0 ? void 0 : _a.id) === ((_b = item.tuition_notice_campaign) === null || _b === void 0 ? void 0 : _b.school_term_id); })) || [];
221
- var linkPdfNewest = '';
222
- if (listEmailFilterWithSchoolTermId.length > 0) {
223
- linkPdfNewest = (_b = listEmailFilterWithSchoolTermId[0]) === null || _b === void 0 ? void 0 : _b.link_pdf_cdn;
224
- }
225
- return linkPdfNewest ? (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' },
226
- react_1["default"].createElement("a", {
227
- // ref={linkRef}
228
- className: 'pt-3 text-xs text-blue-600 hover:cursor-pointer hover:text-blue-800 hover:underline', href: linkPdfNewest, rel: 'noreferrer', target: '_blank' }, "pdf file"))) : (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, "---"));
229
- }),
230
- react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }))))))) : (react_1["default"].createElement(EmptyRecord_1.PHXEmptyRecord, null))));
70
+ var getDebtAndCreditCurrentYear = function (listDebtRecord) {
71
+ // Tìm ra dư có và dư có và dư nợ của năm ngoái (chính bản ghi học kỳ 1)
72
+ 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; });
73
+ return dataLastYear || [];
74
+ };
75
+ // Tạo ra những row detail của các đầu mục lớn vd (1., 2. ...)
76
+ var createRowDetail = function (title, key) {
77
+ var listDebtRecord = isProcessByMonth ? listDebtRecordByMonth : listDebtRecordByStudent;
78
+ var isHasData = listDebtRecord.some(function (item) { return item[key]; });
79
+ if (isHasData) {
80
+ return (react_1["default"].createElement("tr", null,
81
+ react_1["default"].createElement("td", { className: 'sticky left-0 whitespace-nowrap border-r border-t bg-white pl-6 text-xs text-gray-900 drop-shadow-md' }, title), listDebtRecord === null || listDebtRecord === void 0 ? void 0 :
82
+ listDebtRecord.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item[key]))); }),
83
+ react_1["default"].createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(totalFeeByCode(listDebtRecordByStudent, key)))));
84
+ }
85
+ else {
86
+ return react_1["default"].createElement(react_1["default"].Fragment, null);
87
+ }
88
+ };
89
+ 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: 'rounded-lg bg-white shadow ring-1 ring-black ring-opacity-5' },
90
+ react_1["default"].createElement("div", { className: 'overflow-x-auto rounded-lg' },
91
+ react_1["default"].createElement("div", { className: 'min-w-full align-middle shadow ring-black ring-opacity-5' },
92
+ react_1["default"].createElement("div", { className: 'relative overflow-auto' },
93
+ react_1["default"].createElement("table", { className: 'w-full table-fixed border-separate border-spacing-0\t divide-y divide-gray-300' },
94
+ react_1["default"].createElement("thead", null,
95
+ react_1["default"].createElement("tr", null,
96
+ react_1["default"].createElement("th", { className: 'sticky left-0 w-[210px] border-r bg-white px-3 py-2 pl-8 text-left align-top text-xs font-semibold text-gray-500 drop-shadow-md xl:drop-shadow-none', scope: 'col' }, "Chi ti\u1EBFt kho\u1EA3n ph\u00ED"), (_b = (isProcessByMonth ? listDebtRecordByMonth : listDebtRecordByStudent)) === null || _b === void 0 ? void 0 :
97
+ _b.map(function (item, index) {
98
+ var _a, _b;
99
+ return (react_1["default"].createElement("th", { key: index, className: 'w-[210px] border-r bg-white px-3 py-2 pl-2 text-left align-top text-xs font-semibold text-gray-500', scope: 'col' }, isProcessByMonth ? (_a = item.school_month) === null || _a === void 0 ? void 0 : _a.name : (_b = item.school_term) === null || _b === void 0 ? void 0 : _b.name));
100
+ }),
101
+ react_1["default"].createElement("th", { className: 'w-[210px] bg-white px-3 py-2 pl-2 text-left align-top text-xs font-semibold text-gray-500', scope: 'col' }, "C\u1EA3 n\u0103m"))),
102
+ react_1["default"].createElement("tbody", { className: 'divide-y divide-gray-200 bg-white' },
103
+ react_1["default"].createElement("tr", { className: 'bg-gray-100' },
104
+ react_1["default"].createElement("td", { className: 'sticky left-0 whitespace-nowrap border-r border-t bg-gray-100 pl-2 text-xs text-gray-900 drop-shadow-md' }, "1. D\u01B0 n\u1EE3 \u0111\u1EA7u k\u1EF3"), (_c = (isProcessByMonth ? listDebtRecordByMonth : listDebtRecordByStudent)) === null || _c === void 0 ? void 0 :
105
+ _c.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, generateValueToView(item.last_period_debt_balance - item.last_period_credit_balance))); }),
106
+ react_1["default"].createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, generateValueToView(totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_debt_balance') -
107
+ totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_credit_balance')))),
108
+ react_1["default"].createElement("tr", { className: 'bg-gray-100' },
109
+ react_1["default"].createElement("td", { className: 'sticky left-0 whitespace-nowrap border-r border-t bg-gray-100 pl-2 text-xs text-gray-900 drop-shadow-md' }, "2. Kho\u1EA3n thu"), (_d = (isProcessByMonth ? listDebtRecordByMonth : listDebtRecordByStudent)) === null || _d === void 0 ? void 0 :
110
+ _d.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.total_tuition +
111
+ item.total_required_service +
112
+ item.total_not_required_service +
113
+ item.total_adjustment_additional))); }),
114
+ react_1["default"].createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(totalFeeByCode(listDebtRecordByStudent, 'total_tuition') +
115
+ totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
116
+ totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') +
117
+ totalFeeByCode(listDebtRecordByStudent, 'total_adjustment_additional')))),
118
+ react_1["default"].createElement("tr", null,
119
+ react_1["default"].createElement("td", { className: 'sticky left-0 whitespace-nowrap border-r border-t bg-white pl-6 text-xs text-gray-900 drop-shadow-md' }, "H\u1ECDc ph\u00ED ni\u00EAm y\u1EBFt"), (_e = (isProcessByMonth ? listDebtRecordByMonth : listDebtRecordByStudent)) === null || _e === void 0 ? void 0 :
120
+ _e.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.total_tuition))); }),
121
+ react_1["default"].createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(totalFeeByCode(listDebtRecordByStudent, 'total_tuition')))),
122
+ react_1["default"].createElement("tr", { className: "".concat(setShowModalService ? 'hover:cursor-pointer hover:bg-gray-50' : ''), onClick: function () {
123
+ if (!setShowModalService) {
124
+ return;
125
+ }
126
+ setShowModalService(true);
127
+ } },
128
+ react_1["default"].createElement("td", { className: 'sticky left-0 whitespace-nowrap border-r border-t bg-white pl-6 text-xs text-gray-900 drop-shadow-md' }, "D\u1ECBch v\u1EE5 b\u1EAFt bu\u1ED9c"), (_f = (isProcessByMonth ? listDebtRecordByMonth : listDebtRecordByStudent)) === null || _f === void 0 ? void 0 :
129
+ _f.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.total_required_service))); }),
130
+ react_1["default"].createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(totalFeeByCode(listDebtRecordByStudent, 'total_required_service')))),
131
+ createRowDetail('Dịch vụ tuỳ chọn', 'total_not_required_service'),
132
+ createRowDetail('Phí phụ thu', 'total_adjustment_additional'),
133
+ react_1["default"].createElement("tr", { className: 'bg-gray-100' },
134
+ react_1["default"].createElement("td", { className: 'sticky left-0 whitespace-nowrap border-r border-t bg-gray-100 pl-2 text-xs text-gray-900 drop-shadow-md' }, "3. Kho\u1EA3n gi\u1EA3m tr\u1EEB"), (_g = (isProcessByMonth ? listDebtRecordByMonth : listDebtRecordByStudent)) === null || _g === void 0 ? void 0 :
135
+ _g.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.total_promotion_early +
136
+ item.total_promotion_tuition_scholar_ship +
137
+ item.total_promotion_tuition_policy +
138
+ item.total_promotion_tuition_seniority +
139
+ item.total_promotion_admission +
140
+ item.total_promotion_service +
141
+ item.total_adjustment_refund +
142
+ item.total_refund))); }),
143
+ react_1["default"].createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early') +
144
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') +
145
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') +
146
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_seniority') +
147
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_admission') +
148
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service') +
149
+ totalFeeByCode(listDebtRecordByStudent, 'total_adjustment_refund') +
150
+ totalFeeByCode(listDebtRecordByStudent, 'total_refund')))),
151
+ createRowDetail('Ưu đãi đóng sớm', 'total_promotion_early'),
152
+ createRowDetail('Ưu đãi học bổng', 'total_promotion_tuition_scholar_ship'),
153
+ checkIsHasPromoPolicy(listDebtRecordByStudent) && (react_1["default"].createElement("tr", { className: "".concat(setShowModalPromotionObject ? 'hover:cursor-pointer hover:bg-gray-50' : ''), onClick: function () {
154
+ if (!setShowModalPromotionObject) {
155
+ return;
156
+ }
157
+ setShowModalPromotionObject(true);
158
+ setDiscountPromotionObject(Number((totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') /
159
+ totalFeeByCode(listDebtRecordByStudent, 'total_tuition')) *
160
+ 100).toFixed(1));
161
+ } },
162
+ react_1["default"].createElement("td", { className: 'sticky left-0 whitespace-nowrap border-r border-t bg-white pl-6 text-xs text-gray-900 drop-shadow-md' }, "\u01AFu \u0111\u00E3i \u0111\u1ED1i t\u01B0\u1EE3ng"), (_h = (isProcessByMonth ? listDebtRecordByMonth : listDebtRecordByStudent)) === null || _h === void 0 ? void 0 :
163
+ _h.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.total_promotion_tuition_policy))); }),
164
+ react_1["default"].createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy'))))),
165
+ createRowDetail('Ưu đãi thâm niên', 'total_promotion_tuition_seniority'),
166
+ createRowDetail('Ưu đãi tuyển sinh', 'total_promotion_admission'),
167
+ createRowDetail('Ưu đãi phí dịch vụ', 'total_promotion_service'),
168
+ createRowDetail('Giảm trừ bổ sung', 'total_adjustment_refund'),
169
+ createRowDetail('Hoàn tiền dịch vụ', 'total_refund'),
170
+ react_1["default"].createElement("tr", { className: 'bg-gray-100' },
171
+ react_1["default"].createElement("td", { className: 'sticky left-0 whitespace-nowrap border-r border-t bg-gray-100 pl-2 text-xs text-gray-900 drop-shadow-md' }, "4. Ph\u1EA3i thu (4=1+2-3)"), (_j = (isProcessByMonth ? listDebtRecordByMonth : listDebtRecordByStudent)) === null || _j === void 0 ? void 0 :
172
+ _j.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, generateValueToView(item.last_period_debt_balance +
173
+ item.total_tuition +
174
+ item.total_required_service +
175
+ item.total_not_required_service +
176
+ item.total_adjustment_additional -
177
+ item.total_promotion_early -
178
+ item.total_promotion_tuition_scholar_ship -
179
+ item.total_promotion_tuition_policy -
180
+ item.total_promotion_tuition_seniority -
181
+ item.total_promotion_admission -
182
+ item.total_promotion_service -
183
+ item.total_adjustment_refund -
184
+ item.total_refund -
185
+ item.last_period_credit_balance))); }),
186
+ react_1["default"].createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, generateValueToView(totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_debt_balance') +
187
+ totalFeeByCode(listDebtRecordByStudent, 'total_tuition') +
188
+ totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
189
+ totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') +
190
+ totalFeeByCode(listDebtRecordByStudent, 'total_adjustment_additional') -
191
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early') -
192
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
193
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') -
194
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_seniority') -
195
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_admission') -
196
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service') -
197
+ totalFeeByCode(listDebtRecordByStudent, 'total_adjustment_refund') -
198
+ totalFeeByCode(listDebtRecordByStudent, 'total_refund') -
199
+ totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_credit_balance')))),
200
+ react_1["default"].createElement("tr", { className: 'border-t bg-gray-100' },
201
+ react_1["default"].createElement("td", { className: 'sticky left-0 whitespace-nowrap border-r border-t bg-gray-100 pl-2 text-xs text-gray-900 drop-shadow-md' }, "5. \u0110\u00E3 \u0111\u00F3ng"), (_k = (isProcessByMonth ? listDebtRecordByMonth : listDebtRecordByStudent)) === null || _k === void 0 ? void 0 :
202
+ _k.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(item.total_payment))); }),
203
+ react_1["default"].createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, (0, format_number_1.toVND)(totalFeeByCode(listDebtRecordByStudent, 'total_payment')))),
204
+ react_1["default"].createElement("tr", { className: 'border-t bg-gray-100' },
205
+ react_1["default"].createElement("td", { className: 'sticky left-0 whitespace-nowrap border-r border-t bg-gray-100 pl-2 text-xs text-gray-900 drop-shadow-md' }, "6. Ti\u1EC1n thi\u1EBFu/(th\u1EEBa)"), (_l = (isProcessByMonth ? listDebtRecordByMonth : listDebtRecordByStudent)) === null || _l === void 0 ? void 0 :
206
+ _l.map(function (item, index) { return (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, generateValueToView(item.last_debt_balance - item.last_credit_balance))); }),
207
+ react_1["default"].createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, generateValueToView(totalFeeByCode(getDebtAndCreditCurrentYear(listDebtRecordByStudent), 'last_debt_balance') -
208
+ totalFeeByCode(getDebtAndCreditCurrentYear(listDebtRecordByStudent), 'last_credit_balance')))),
209
+ !isProcessByMonth && (react_1["default"].createElement("tr", null,
210
+ react_1["default"].createElement("td", { className: 'sticky left-0 whitespace-nowrap border-r border-t bg-white pl-2 text-xs text-gray-900 drop-shadow-md' }, "7. File PDF thu ph\u00ED"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
211
+ listDebtRecordByStudent.map(function (itemDebt, index) {
212
+ var _a, _b;
213
+ var linkDeliveredEmail = ((_a = itemDebt.profile_student) === null || _a === void 0 ? void 0 : _a.tuition_notice_delivered_emails) || [];
214
+ var listEmailFilterWithSchoolTermId = (linkDeliveredEmail === null || linkDeliveredEmail === void 0 ? void 0 : linkDeliveredEmail.filter(function (item) { var _a, _b; return ((_a = itemDebt.school_term) === null || _a === void 0 ? void 0 : _a.id) === ((_b = item.tuition_notice_campaign) === null || _b === void 0 ? void 0 : _b.school_term_id); })) || [];
215
+ var linkPdfNewest = '';
216
+ if (listEmailFilterWithSchoolTermId.length > 0) {
217
+ linkPdfNewest = (_b = listEmailFilterWithSchoolTermId[0]) === null || _b === void 0 ? void 0 : _b.link_pdf_cdn;
218
+ }
219
+ return linkPdfNewest ? (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' },
220
+ react_1["default"].createElement("a", {
221
+ // ref={linkRef}
222
+ className: 'pt-3 text-xs text-blue-600 hover:cursor-pointer hover:text-blue-800 hover:underline', href: linkPdfNewest, rel: 'noreferrer', target: '_blank' }, "pdf file"))) : (react_1["default"].createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, "---"));
223
+ }),
224
+ react_1["default"].createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs border-t text-gray-900' })))))))))) : (react_1["default"].createElement(EmptyRecord_1.PHXEmptyRecord, null))));
231
225
  };
232
226
  exports.PHXFormTuition = PHXFormTuition;
233
227
  //# sourceMappingURL=FormTuition.js.map
@@ -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,2BAA2B,EAAE,IAAI;KAClC,CAAC,GAHwB,CAGxB;IACI,IAAA,KAAsC,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAApD,cAAc,QAAA,EAAE,iBAAiB,QAAmB,CAAA;IACrD,IAAA,KAAwD,IAAA,gBAAQ,EAAC,EAAE,CAAC,EAAnE,uBAAuB,QAAA,EAAE,0BAA0B,QAAgB,CAAA;IAC1E,IAAM,mBAAmB,GAAG,UAAC,KAAa;QACxC,IAAI,CAAC,KAAK;YAAE,OAAO,CAAC,CAAA;QACpB,OAAO,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,IA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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,wCAAyC;AACzC,gFAAkD;AAClD,uCAAgE;AAChE,8CAA+C;AAC/C,mDAA+F;AAYxF,IAAM,cAAc,GAA+B,UAAC,EAQxC;;QAPjB,wBAAwB,EAAxB,gBAAgB,mBAAG,KAAK,KAAA,EACxB,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,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAApD,cAAc,QAAA,EAAE,iBAAiB,QAAmB,CAAA;IACrD,IAAA,KAAwD,IAAA,gBAAQ,EAAa,EAAE,CAAC,EAA/E,uBAAuB,QAAA,EAAE,0BAA0B,QAA4B,CAAA;IAChF,IAAA,KAAoD,IAAA,gBAAQ,EAAa,EAAE,CAAC,EAA3E,qBAAqB,QAAA,EAAE,wBAAwB,QAA4B,CAAA;IAElF,IAAM,mBAAmB,GAAG,UAAC,KAAa;QACxC,IAAI,CAAC,KA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