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,9 @@
1
+ import React from 'react';
2
+ import { classNames } from '../types';
3
+ export var PHXContainer = function (_a) {
4
+ var children = _a.children, className = _a.className, _b = _a.size, size = _b === void 0 ? 'large' : _b;
5
+ var sizeClassName = 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');
6
+ return (React.createElement("div", { className: className },
7
+ React.createElement("div", { className: sizeClassName }, children)));
8
+ };
9
+ //# sourceMappingURL=Container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Container.js","sourceRoot":"","sources":["../../../../src/components/Container/Container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAQrC,MAAM,CAAC,IAAM,YAAY,GAAG,UAAC,EAAuD;QAArD,QAAQ,cAAA,EAAE,SAAS,eAAA,EAAE,YAAc,EAAd,IAAI,mBAAG,OAAO,KAAA;IAChE,IAAM,aAAa,GAAG,UAAU,CAC9B,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,6BAAK,SAAS,EAAE,SAAS;QACvB,6BAAK,SAAS,EAAE,aAAa,IAAG,QAAQ,CAAO,CAC3C,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1 @@
1
+ export * from './Container';
@@ -0,0 +1,2 @@
1
+ export * from './Container';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Container/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
@@ -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>;
@@ -2,29 +2,30 @@ import { __awaiter, __generator } from "tslib";
2
2
  import React, { useEffect, useState } from 'react';
3
3
  import { useLazyQuery } from '@apollo/client';
4
4
  import { toVND } from '../../utils/format-number';
5
- import { PHXButton } from '../Button';
6
5
  import { PHXSkeleton } from '../Skeleton';
7
6
  import PHXClientQuery from '../Func/clientQueryV2';
8
7
  import { getTuitionDebtRecordByUserCode } from '../../query/gql';
9
8
  import { PHXEmptyRecord } from '../EmptyRecord';
10
- export var KEY_COEFFICIENT_SEMESTER_I = 1;
9
+ import { KEY_COEFFICIENT_SEMESTER_I, KEY_COEFFICIENT_SEMESTER_II } from '../../utils/constants';
11
10
  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;
11
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
12
+ 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;
13
13
  var getDataFeeListQuery = useLazyQuery(getTuitionDebtRecordByUserCode, {
14
14
  fetchPolicy: 'network-only',
15
15
  notifyOnNetworkStatusChange: true
16
16
  })[0];
17
- var _b = useState(false), isLoadingTable = _b[0], setIsLoadingTable = _b[1];
18
- var _c = useState([]), listDebtRecordByStudent = _c[0], setListDebtRecordByStudent = _c[1];
17
+ var _o = useState(false), isLoadingTable = _o[0], setIsLoadingTable = _o[1];
18
+ var _p = useState([]), listDebtRecordByStudent = _p[0], setListDebtRecordByStudent = _p[1];
19
+ var _q = useState([]), listDebtRecordByMonth = _q[0], setListDebtRecordByMonth = _q[1];
19
20
  var generateValueToView = function (value) {
20
21
  if (!value)
21
22
  return 0;
22
23
  return value > 0 ? toVND(value) : "(".concat(toVND(-value), ")");
23
24
  };
24
25
  var fetchData = function () { return __awaiter(void 0, void 0, void 0, function () {
25
- var res, tuition_fee_debt_record;
26
- return __generator(this, function (_a) {
27
- switch (_a.label) {
26
+ var res, _a, tuition_fee_debt_record, tuition_fee_debt_record_by_month;
27
+ return __generator(this, function (_b) {
28
+ switch (_b.label) {
28
29
  case 0:
29
30
  setIsLoadingTable(true);
30
31
  return [4 /*yield*/, PHXClientQuery(getDataFeeListQuery, {
@@ -35,10 +36,11 @@ export var PHXFormTuition = function (_a) {
35
36
  }
36
37
  })];
37
38
  case 1:
38
- res = _a.sent();
39
+ res = _b.sent();
39
40
  if (res) {
40
- tuition_fee_debt_record = res.data.tuition_fee_debt_record;
41
+ _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;
41
42
  setListDebtRecordByStudent(tuition_fee_debt_record);
43
+ setListDebtRecordByMonth(tuition_fee_debt_record_by_month);
42
44
  }
43
45
  setIsLoadingTable(false);
44
46
  return [2 /*return*/];
@@ -49,12 +51,12 @@ export var PHXFormTuition = function (_a) {
49
51
  if (school_year_id) {
50
52
  fetchData();
51
53
  }
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
- };
54
+ }, [school_year_id, isProcessByMonth]);
55
+ var checkIsHasPromoPolicy = function (listFee) { return listFee === null || listFee === void 0 ? void 0 : listFee.some(function (item) { return item.total_promotion_tuition_policy; }); };
56
56
  var totalFeeByCode = function (listData, code) {
57
- var total = listData === null || listData === void 0 ? void 0 : listData.reduce(function (total, item) { return total + Number(item[code]); }, 0);
57
+ var total = listData === null || listData === void 0 ? void 0 : listData.reduce(
58
+ // eslint-disable-next-line @typescript-eslint/no-shadow
59
+ function (total, item) { return total + Number(item[code]); }, 0);
58
60
  return total;
59
61
  };
60
62
  var getDebtAndCreditLastYear = function (listDebtRecord) {
@@ -62,168 +64,160 @@ export var PHXFormTuition = function (_a) {
62
64
  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
65
  return dataLastYear || [];
64
66
  };
65
- 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
- React.createElement("div", { className: 'inline-block min-w-full py-2 align-middle' },
67
- React.createElement("table", { className: 'min-w-full divide-y divide-gray-300' },
68
- React.createElement("thead", null,
69
- React.createElement("tr", null,
70
- React.createElement("th", { className: 'whitespace-nowrap py-2 pl-4 pr-3 text-left text-xs font-semibold text-gray-500 sm:pl-2', scope: 'col' }, "Chi ti\u1EBFt kho\u1EA3n ph\u00ED"), listDebtRecordByStudent === null || listDebtRecordByStudent === void 0 ? void 0 :
71
- listDebtRecordByStudent.map(function (item, index) {
72
- var _a;
73
- return (React.createElement("th", { key: index, className: 'py-2 pl-4 pr-3 text-left text-xs font-semibold text-gray-500 sm:pl-2', scope: 'col' }, ((_a = item.school_term) === null || _a === void 0 ? void 0 : _a.name) || ''));
74
- }),
75
- 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
- React.createElement("tbody", { className: 'divide-y divide-gray-200 bg-white' },
77
- 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')))),
89
- 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 :
91
- 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
- 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 () {
98
- if (!setShowModalPromotionObject) {
99
- return;
100
- }
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
- }
108
- } },
109
- 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
- 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' })),
146
- 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 :
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
- item.total_tuition +
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 -
163
- item.total_promotion_tuition_scholar_ship -
164
- item.total_promotion_tuition_seniority -
165
- item.total_promotion_early -
166
- item.last_period_credit_balance))); }),
167
- React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, generateValueToView(totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_debt_balance') +
168
- totalFeeByCode(listDebtRecordByStudent, 'total_tuition') +
169
- totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
170
- totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') -
171
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service') -
172
- totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') -
173
- 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') -
177
- totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_credit_balance')))),
178
- 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 :
180
- 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
- React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'total_payment')))),
182
- 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')))),
212
- 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 :
214
- listDebtRecordByStudent.map(function (itemDebt, index) {
215
- var _a, _b;
216
- var linkDeliveredEmail = ((_a = itemDebt.profile_student) === null || _a === void 0 ? void 0 : _a.tuition_notice_delivered_emails) || [];
217
- 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); })) || [];
218
- var linkPdfNewest = '';
219
- if (listEmailFilterWithSchoolTermId.length > 0) {
220
- linkPdfNewest = (_b = listEmailFilterWithSchoolTermId[0]) === null || _b === void 0 ? void 0 : _b.link_pdf_cdn;
221
- }
222
- return linkPdfNewest ? (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' },
223
- React.createElement("a", {
224
- // ref={linkRef}
225
- className: 'pt-3 text-xs text-blue-600 hover:cursor-pointer hover:text-blue-800 hover:underline', href: linkPdfNewest, rel: 'noreferrer', target: '_blank' }, "pdf file"))) : (React.createElement("td", { key: index, className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }, "---"));
226
- }),
227
- React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs text-gray-900' }))))))) : (React.createElement(PHXEmptyRecord, null))));
67
+ var getDebtAndCreditCurrentYear = function (listDebtRecord) {
68
+ // 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)
69
+ 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; });
70
+ return dataLastYear || [];
71
+ };
72
+ // Tạo ra những row detail của các đầu mục lớn vd (1., 2. ...)
73
+ var createRowDetail = function (title, key) {
74
+ var listDebtRecord = isProcessByMonth ? listDebtRecordByMonth : listDebtRecordByStudent;
75
+ var isHasData = listDebtRecord.some(function (item) { return item[key]; });
76
+ if (isHasData) {
77
+ return (React.createElement("tr", null,
78
+ React.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 :
79
+ listDebtRecord.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, toVND(item[key]))); }),
80
+ React.createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, key)))));
81
+ }
82
+ else {
83
+ return React.createElement(React.Fragment, null);
84
+ }
85
+ };
86
+ return (React.createElement(React.Fragment, null, isLoadingTable ? (React.createElement(PHXSkeleton, { type: 'table' })) : listDebtRecordByStudent.length > 0 ? (React.createElement("div", { className: 'rounded-lg bg-white shadow ring-1 ring-black ring-opacity-5' },
87
+ React.createElement("div", { className: 'overflow-x-auto rounded-lg' },
88
+ React.createElement("div", { className: 'min-w-full align-middle shadow ring-black ring-opacity-5' },
89
+ React.createElement("div", { className: 'relative overflow-auto' },
90
+ React.createElement("table", { className: 'w-full table-fixed border-separate border-spacing-0\t divide-y divide-gray-300' },
91
+ React.createElement("thead", null,
92
+ React.createElement("tr", null,
93
+ React.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 :
94
+ _b.map(function (item, index) {
95
+ var _a, _b;
96
+ return (React.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));
97
+ }),
98
+ React.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"))),
99
+ React.createElement("tbody", { className: 'divide-y divide-gray-200 bg-white' },
100
+ React.createElement("tr", { className: 'bg-gray-100' },
101
+ React.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 :
102
+ _c.map(function (item, index) { return (React.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))); }),
103
+ React.createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, generateValueToView(totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_debt_balance') -
104
+ totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_credit_balance')))),
105
+ React.createElement("tr", { className: 'bg-gray-100' },
106
+ React.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 :
107
+ _d.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, toVND(item.total_tuition +
108
+ item.total_required_service +
109
+ item.total_not_required_service +
110
+ item.total_adjustment_additional))); }),
111
+ React.createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'total_tuition') +
112
+ totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
113
+ totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') +
114
+ totalFeeByCode(listDebtRecordByStudent, 'total_adjustment_additional')))),
115
+ React.createElement("tr", null,
116
+ React.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 :
117
+ _e.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, toVND(item.total_tuition))); }),
118
+ React.createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'total_tuition')))),
119
+ React.createElement("tr", { className: "".concat(setShowModalService ? 'hover:cursor-pointer hover:bg-gray-50' : ''), onClick: function () {
120
+ if (!setShowModalService) {
121
+ return;
122
+ }
123
+ setShowModalService(true);
124
+ } },
125
+ React.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 :
126
+ _f.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, toVND(item.total_required_service))); }),
127
+ React.createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'total_required_service')))),
128
+ createRowDetail('Dịch vụ tuỳ chọn', 'total_not_required_service'),
129
+ createRowDetail('Phí phụ thu', 'total_adjustment_additional'),
130
+ React.createElement("tr", { className: 'bg-gray-100' },
131
+ React.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 :
132
+ _g.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, toVND(item.total_promotion_early +
133
+ item.total_promotion_tuition_scholar_ship +
134
+ item.total_promotion_tuition_policy +
135
+ item.total_promotion_tuition_seniority +
136
+ item.total_promotion_admission +
137
+ item.total_promotion_service +
138
+ item.total_adjustment_refund +
139
+ item.total_refund))); }),
140
+ React.createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early') +
141
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') +
142
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') +
143
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_seniority') +
144
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_admission') +
145
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service') +
146
+ totalFeeByCode(listDebtRecordByStudent, 'total_adjustment_refund') +
147
+ totalFeeByCode(listDebtRecordByStudent, 'total_refund')))),
148
+ createRowDetail('Ưu đãi đóng sớm', 'total_promotion_early'),
149
+ createRowDetail('Ưu đãi học bổng', 'total_promotion_tuition_scholar_ship'),
150
+ checkIsHasPromoPolicy(listDebtRecordByStudent) && (React.createElement("tr", { className: "".concat(setShowModalPromotionObject ? 'hover:cursor-pointer hover:bg-gray-50' : ''), onClick: function () {
151
+ if (!setShowModalPromotionObject) {
152
+ return;
153
+ }
154
+ setShowModalPromotionObject(true);
155
+ setDiscountPromotionObject(Number((totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') /
156
+ totalFeeByCode(listDebtRecordByStudent, 'total_tuition')) *
157
+ 100).toFixed(1));
158
+ } },
159
+ React.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 :
160
+ _h.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, toVND(item.total_promotion_tuition_policy))); }),
161
+ React.createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy'))))),
162
+ createRowDetail('Ưu đãi thâm niên', 'total_promotion_tuition_seniority'),
163
+ createRowDetail('Ưu đãi tuyển sinh', 'total_promotion_admission'),
164
+ createRowDetail('Ưu đãi phí dịch vụ', 'total_promotion_service'),
165
+ createRowDetail('Giảm trừ bổ sung', 'total_adjustment_refund'),
166
+ createRowDetail('Hoàn tiền dịch vụ', 'total_refund'),
167
+ React.createElement("tr", { className: 'bg-gray-100' },
168
+ React.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 :
169
+ _j.map(function (item, index) { return (React.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 +
170
+ item.total_tuition +
171
+ item.total_required_service +
172
+ item.total_not_required_service +
173
+ item.total_adjustment_additional -
174
+ item.total_promotion_early -
175
+ item.total_promotion_tuition_scholar_ship -
176
+ item.total_promotion_tuition_policy -
177
+ item.total_promotion_tuition_seniority -
178
+ item.total_promotion_admission -
179
+ item.total_promotion_service -
180
+ item.total_adjustment_refund -
181
+ item.total_refund -
182
+ item.last_period_credit_balance))); }),
183
+ React.createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, generateValueToView(totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_debt_balance') +
184
+ totalFeeByCode(listDebtRecordByStudent, 'total_tuition') +
185
+ totalFeeByCode(listDebtRecordByStudent, 'total_required_service') +
186
+ totalFeeByCode(listDebtRecordByStudent, 'total_not_required_service') +
187
+ totalFeeByCode(listDebtRecordByStudent, 'total_adjustment_additional') -
188
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_early') -
189
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_scholar_ship') -
190
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_policy') -
191
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_tuition_seniority') -
192
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_admission') -
193
+ totalFeeByCode(listDebtRecordByStudent, 'total_promotion_service') -
194
+ totalFeeByCode(listDebtRecordByStudent, 'total_adjustment_refund') -
195
+ totalFeeByCode(listDebtRecordByStudent, 'total_refund') -
196
+ totalFeeByCode(getDebtAndCreditLastYear(listDebtRecordByStudent), 'last_period_credit_balance')))),
197
+ React.createElement("tr", { className: 'border-t bg-gray-100' },
198
+ React.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 :
199
+ _k.map(function (item, index) { return (React.createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, toVND(item.total_payment))); }),
200
+ React.createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, toVND(totalFeeByCode(listDebtRecordByStudent, 'total_payment')))),
201
+ React.createElement("tr", { className: 'border-t bg-gray-100' },
202
+ React.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 :
203
+ _l.map(function (item, index) { return (React.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))); }),
204
+ React.createElement("td", { className: 'whitespace-nowrap border-t px-2 py-2 text-xs text-gray-900' }, generateValueToView(totalFeeByCode(getDebtAndCreditCurrentYear(listDebtRecordByStudent), 'last_debt_balance') -
205
+ totalFeeByCode(getDebtAndCreditCurrentYear(listDebtRecordByStudent), 'last_credit_balance')))),
206
+ !isProcessByMonth && (React.createElement("tr", null,
207
+ React.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 :
208
+ listDebtRecordByStudent.map(function (itemDebt, index) {
209
+ var _a, _b;
210
+ var linkDeliveredEmail = ((_a = itemDebt.profile_student) === null || _a === void 0 ? void 0 : _a.tuition_notice_delivered_emails) || [];
211
+ 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); })) || [];
212
+ var linkPdfNewest = '';
213
+ if (listEmailFilterWithSchoolTermId.length > 0) {
214
+ linkPdfNewest = (_b = listEmailFilterWithSchoolTermId[0]) === null || _b === void 0 ? void 0 : _b.link_pdf_cdn;
215
+ }
216
+ return linkPdfNewest ? (React.createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' },
217
+ React.createElement("a", {
218
+ // ref={linkRef}
219
+ className: 'pt-3 text-xs text-blue-600 hover:cursor-pointer hover:text-blue-800 hover:underline', href: linkPdfNewest, rel: 'noreferrer', target: '_blank' }, "pdf file"))) : (React.createElement("td", { key: index, className: 'whitespace-nowrap border-r border-t px-2 py-2 text-xs text-gray-900' }, "---"));
220
+ }),
221
+ React.createElement("td", { className: 'whitespace-nowrap px-2 py-2 text-xs border-t text-gray-900' })))))))))) : (React.createElement(PHXEmptyRecord, null))));
228
222
  };
229
223
  //# sourceMappingURL=FormTuition.js.map
@@ -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,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,cAAc,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAA;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAW/C,MAAM,CAAC,IAAM,0BAA0B,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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,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,cAAc,MAAM,uBAAuB,CAAA;AAClD,OAAO,EAAE,8BAA8B,EAAE,MAAM,iBAAiB,CAAA;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,0BAA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AAY,EAChB,MAAM,EAAC,QAAQ,eAGb,CACD,CACN,CAAC,CAAC,CAAC,CACF,4BACE,GAAG,EAAE,KAAK,EACV,SAAS,EAAC,qEAAqE,UAG5E,CACN,CAAA;gCACH,CAAC,CAAC;gCAEF,4BAAI,SAAS,EAAC,4DAA4D,GAAG,CAC1E,CACN,CACK,CACF,CACJ,CACF,CACF,CACF,CACP,CAAC,CAAC,CAAC,CACF,oBAAC,cAAc,OAAG,CACnB,CACA,CACJ,CAAA;AACH,CAAC,CAAA"}
@@ -1,2 +1,3 @@
1
1
  import { ApolloCache, DefaultContext, MutationFunction, OperationVariables } from '@apollo/client';
2
- export default function PHXClientMutation(mutationName: MutationFunction<any, OperationVariables, DefaultContext, ApolloCache<any>>, option?: OperationVariables, customHeaders?: any, isDelay?: boolean, query?: string): Promise<any>;
2
+ import axios from 'axios';
3
+ export default function PHXClientMutation(mutationName: MutationFunction<any, OperationVariables, DefaultContext, ApolloCache<any>>, option?: OperationVariables, customHeaders?: any, isDelay?: boolean, query?: string): Promise<import("@apollo/client").FetchResult<any, Record<string, any>, Record<string, any>> | axios.AxiosResponse<any, any>>;