ubk.erp.webpack 1.2.5 → 1.2.7

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/README.md CHANGED
@@ -289,8 +289,17 @@ Each object in the returned array represents one returned book:
289
289
 
290
290
  ```jsx
291
291
  import { IssueReturn } from "ubk.erp.webpack";
292
+ import { useRef } from "react";
292
293
 
293
294
  const LibraryPage = ({ token }) => {
295
+
296
+ const issueReturnRef = useRef(null);
297
+
298
+ // Reload pay later
299
+ const handleReloadPayLater = () => {
300
+ issueReturnRef.current?.reloadPayLater();
301
+ };
302
+
294
303
  const handleIssueReturn = (returnArray) => {
295
304
  // Example returnArray:
296
305
  const example = [
@@ -307,6 +316,7 @@ const LibraryPage = ({ token }) => {
307
316
  <IssueReturn
308
317
  token={token}
309
318
  onReturn={handleIssueReturn}
319
+ ref={issueReturnRef}
310
320
  />
311
321
  );
312
322
  };
@@ -323,28 +333,12 @@ const LibraryPage = ({ token }) => {
323
333
  ## Example Output
324
334
 
325
335
  ```js
326
- [
327
- {
328
- studentId: 8,
329
- branchId: 2,
330
- academicYearId: 2026,
331
- fromDate: "2026-09-13",
332
- toDate: "2026-08-13",
333
- customField1: 21,
334
- description: "Mathematics-John Smith",
335
- amount: 100
336
- },
337
- {
338
- studentId: 8,
339
- branchId: 2,
340
- academicYearId: 2026,
341
- fromDate: "2026-09-13",
342
- toDate: "2026-08-13",
343
- customField1: 22,
344
- description: "Science-Jane Doe",
345
- amount: 50
336
+ {
337
+ amount: 0,
338
+ books: "[{id:"2",fine_amount:"20",return_date:"2026-08-01",issue_date:"2026-08-18",book_issues_id:"76",book_title:"BOOK 1",author:"R Mitra",publish:"S R Publication",day_late:"17",totalfine:"340"}]",
339
+ collection_type: "FINE_PAY_LATER",
340
+ member_id: "9"
346
341
  }
347
- ]
348
342
  ```
349
343
 
350
344
  ### Store
@@ -1,6 +1,3 @@
1
1
  import { default as React } from 'react';
2
2
  export default IssueReturn;
3
- declare function IssueReturn({ token: tokenProp, onReturn }: {
4
- token: any;
5
- onReturn: any;
6
- }): React.JSX.Element;
3
+ declare const IssueReturn: React.ForwardRefExoticComponent<React.RefAttributes<any>>;