warqadui 0.0.96 → 0.0.97
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/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1639,8 +1639,9 @@ declare const createPackSchema: z$1.ZodObject<{
|
|
|
1639
1639
|
type CreatePackSchemaType = z$1.infer<typeof createPackSchema>;
|
|
1640
1640
|
type PackProductItemSchemaType = z$1.infer<typeof packProductItemSchema>;
|
|
1641
1641
|
|
|
1642
|
-
declare function Journals({ url }: {
|
|
1642
|
+
declare function Journals({ url, journalType, }: {
|
|
1643
1643
|
url?: string;
|
|
1644
|
+
journalType?: string;
|
|
1644
1645
|
}): react_jsx_runtime.JSX.Element;
|
|
1645
1646
|
|
|
1646
1647
|
type accountType = (typeof Enums.accountTypes)[number] | "all";
|
package/dist/index.d.ts
CHANGED
|
@@ -1639,8 +1639,9 @@ declare const createPackSchema: z$1.ZodObject<{
|
|
|
1639
1639
|
type CreatePackSchemaType = z$1.infer<typeof createPackSchema>;
|
|
1640
1640
|
type PackProductItemSchemaType = z$1.infer<typeof packProductItemSchema>;
|
|
1641
1641
|
|
|
1642
|
-
declare function Journals({ url }: {
|
|
1642
|
+
declare function Journals({ url, journalType, }: {
|
|
1643
1643
|
url?: string;
|
|
1644
|
+
journalType?: string;
|
|
1644
1645
|
}): react_jsx_runtime.JSX.Element;
|
|
1645
1646
|
|
|
1646
1647
|
type accountType = (typeof Enums.accountTypes)[number] | "all";
|
package/dist/index.js
CHANGED
|
@@ -11523,13 +11523,16 @@ var import_lucide_react31 = require("lucide-react");
|
|
|
11523
11523
|
var import_react53 = require("react");
|
|
11524
11524
|
var import_antd26 = require("antd");
|
|
11525
11525
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
11526
|
-
function Journals({
|
|
11526
|
+
function Journals({
|
|
11527
|
+
url,
|
|
11528
|
+
journalType
|
|
11529
|
+
}) {
|
|
11527
11530
|
const { branchId } = (0, import_react_router_dom24.useParams)();
|
|
11528
11531
|
const navigate = (0, import_react_router_dom24.useNavigate)();
|
|
11529
11532
|
const [deleteJournal, setDeleteJournal] = (0, import_react53.useState)(null);
|
|
11530
11533
|
const { isLoading, remove } = useApis_default();
|
|
11531
11534
|
const { data, TransactionViewComponent, reload } = useTransaction_default({
|
|
11532
|
-
url: url || `/transactions/get?type=journal${branchId ? `&
|
|
11535
|
+
url: url || `/transactions/get?type=journal${branchId ? `&fromBranch=${branchId}` : ""}${journalType ? `&journal=${journalType}` : ""}`,
|
|
11533
11536
|
dateFilter: true
|
|
11534
11537
|
});
|
|
11535
11538
|
const { Modal: Modal2 } = useModal();
|
package/dist/index.mjs
CHANGED
|
@@ -11463,13 +11463,16 @@ import { EllipsisVertical as EllipsisVertical8, FilePenLine as FilePenLine7, Tra
|
|
|
11463
11463
|
import { useState as useState38 } from "react";
|
|
11464
11464
|
import { message as message24 } from "antd";
|
|
11465
11465
|
import { Fragment as Fragment18, jsx as jsx75, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
11466
|
-
function Journals({
|
|
11466
|
+
function Journals({
|
|
11467
|
+
url,
|
|
11468
|
+
journalType
|
|
11469
|
+
}) {
|
|
11467
11470
|
const { branchId } = useParams16();
|
|
11468
11471
|
const navigate = useNavigate15();
|
|
11469
11472
|
const [deleteJournal, setDeleteJournal] = useState38(null);
|
|
11470
11473
|
const { isLoading, remove } = useApis_default();
|
|
11471
11474
|
const { data, TransactionViewComponent, reload } = useTransaction_default({
|
|
11472
|
-
url: url || `/transactions/get?type=journal${branchId ? `&
|
|
11475
|
+
url: url || `/transactions/get?type=journal${branchId ? `&fromBranch=${branchId}` : ""}${journalType ? `&journal=${journalType}` : ""}`,
|
|
11473
11476
|
dateFilter: true
|
|
11474
11477
|
});
|
|
11475
11478
|
const { Modal: Modal2 } = useModal();
|