@appcorp/fusion-storybook 0.3.97 → 0.3.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/base-modules/student-fee/context/use-student-fee-module.d.ts +4 -0
- package/base-modules/student-fee/context/use-student-fee-module.js +1 -3
- package/base-modules/student-fee/misc-2.js +5 -6
- package/base-modules/student-fee/more-actions.js +1 -5
- package/package.json +3 -3
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -18,7 +18,11 @@ export declare const useStudentFeeModule: () => {
|
|
|
18
18
|
handlePageChange: (page: number | unknown) => void;
|
|
19
19
|
handlePageLimitChange: (k: string, value: object) => void;
|
|
20
20
|
handleProceedMonthlyCreation: () => Promise<void>;
|
|
21
|
+
handleSaveVouchers: () => Promise<void>;
|
|
21
22
|
handleSearch: (query: string) => void;
|
|
23
|
+
handleSingleRecord: (fees: {
|
|
24
|
+
studentFees: StudentFeeBE[];
|
|
25
|
+
}, amountPaid: string, remarks: string, paidAt?: string) => Promise<void>;
|
|
22
26
|
handleSubmit: () => void;
|
|
23
27
|
handleSubmitSingleEntry: (fees: {
|
|
24
28
|
studentFees: StudentFeeBE[];
|
|
@@ -620,9 +620,7 @@ export const useStudentFeeModule = () => {
|
|
|
620
620
|
handleMoreActions,
|
|
621
621
|
handlePageChange,
|
|
622
622
|
handlePageLimitChange,
|
|
623
|
-
handleProceedMonthlyCreation,
|
|
624
|
-
handleSearch,
|
|
625
|
-
handleSubmit,
|
|
623
|
+
handleProceedMonthlyCreation, handleSaveVouchers: handleProceedMonthlyCreation, handleSearch, handleSingleRecord: handleSubmitSingleEntry, handleSubmit,
|
|
626
624
|
handleSubmitSingleEntry,
|
|
627
625
|
handleView,
|
|
628
626
|
headerActions,
|
|
@@ -99,12 +99,11 @@ export const StudentFeeSingle = () => {
|
|
|
99
99
|
return 0;
|
|
100
100
|
return response.studentFees.reduce((sum, f) => { var _a; return sum + ((_a = f.amount) !== null && _a !== void 0 ? _a : 0); }, 0);
|
|
101
101
|
}, [response]);
|
|
102
|
-
const accumulatedFine = useMemo(() => {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}, [response]);
|
|
102
|
+
// const accumulatedFine = useMemo(() => {
|
|
103
|
+
// if (!response?.studentFees?.length) return 0;
|
|
104
|
+
// return response.studentFees.reduce((sum, f) => sum + (f.fine ?? 0), 0);
|
|
105
|
+
// }, [response]);
|
|
106
|
+
const accumulatedFine = 0;
|
|
108
107
|
const handleUpdateAmountPaid = (value) => {
|
|
109
108
|
const amountPaid = parseFloat(value);
|
|
110
109
|
if (isNaN(amountPaid))
|
|
@@ -232,9 +232,5 @@ export const StudentFeeMoreActions = () => {
|
|
|
232
232
|
title: t("uploadTheCompletedCsvToTheSystem"),
|
|
233
233
|
},
|
|
234
234
|
];
|
|
235
|
-
return (_jsxs("div", { className: "space-y-4", children: [_jsx(Button
|
|
236
|
-
// disabled={new Date().getDate() !== 1}
|
|
237
|
-
, {
|
|
238
|
-
// disabled={new Date().getDate() !== 1}
|
|
239
|
-
onClick: handleCreateMonthly, children: t("actionsButtonCreateMonthly") }), _jsx(Button, { onClick: handleCreateSingleEntry, children: t("actionsButtonSingleEntry") }), _jsx(Separator, {}), _jsx(Timeline, { events: update, heading: t("bulkUpdate"), handleOnBulkCreate: handleBulkUpdate })] }));
|
|
235
|
+
return (_jsxs("div", { className: "space-y-4", children: [_jsx(Button, { disabled: new Date().getDate() !== 1, onClick: handleCreateMonthly, children: t("actionsButtonCreateMonthly") }), _jsx(Button, { onClick: handleCreateSingleEntry, children: t("actionsButtonSingleEntry") }), _jsx(Separator, {}), _jsx(Timeline, { events: update, heading: t("bulkUpdate"), handleOnBulkCreate: handleBulkUpdate })] }));
|
|
240
236
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appcorp/fusion-storybook",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.99",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build-storybook": "storybook build",
|
|
6
6
|
"build:next": "next build",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
]
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@appcorp/shadcn": "^2.0.
|
|
40
|
+
"@appcorp/shadcn": "^2.0.15",
|
|
41
41
|
"@chromatic-com/storybook": "^5.1.2",
|
|
42
42
|
"@commitlint/cli": "^20.5.0",
|
|
43
43
|
"@commitlint/config-conventional": "^20.5.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@radix-ui/react-slider": "^1",
|
|
56
56
|
"@radix-ui/react-slot": "^1",
|
|
57
57
|
"@radix-ui/react-toast": "^1",
|
|
58
|
-
"@react-pakistan/util-functions": "^3.0.
|
|
58
|
+
"@react-pakistan/util-functions": "^3.0.14",
|
|
59
59
|
"@storybook/addon-a11y": "^10.3.4",
|
|
60
60
|
"@storybook/addon-docs": "^10.3.4",
|
|
61
61
|
"@storybook/addon-onboarding": "^10.3.4",
|