warqadui 0.0.291 → 0.0.292
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.js +7 -7
- package/dist/index.mjs +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24869,7 +24869,7 @@ function ClothendStockAdjustment({
|
|
|
24869
24869
|
const navigate = (0, import_react_router_dom45.useNavigate)();
|
|
24870
24870
|
const { TransactionView, openTransaction } = useTransactionView_default();
|
|
24871
24871
|
const { data, TransactionViewComponent, reload } = useTransaction_default({
|
|
24872
|
-
url: url || `/transactions/get?type=stock&stock=adjustment&stockType=${type}${branchId ? `&
|
|
24872
|
+
url: url || `/transactions/get?type=stock&stock=adjustment&stockType=${type}${branchId ? `&branch=${branchId}` : ""}`,
|
|
24873
24873
|
dateFilter: true
|
|
24874
24874
|
});
|
|
24875
24875
|
const { Modal: Modal2 } = useModal();
|
|
@@ -25202,7 +25202,7 @@ function StockAdjustmentTable({
|
|
|
25202
25202
|
v: 1,
|
|
25203
25203
|
valueKey: "_id",
|
|
25204
25204
|
obj: "lineObj",
|
|
25205
|
-
api: stockType === "product" ? `/products/get` : `/packs/get`,
|
|
25205
|
+
api: stockType === "product" ? `/products/get${branchId ? "?branch=" + branchId : ""}` : `/packs/get`,
|
|
25206
25206
|
className: "px-0! py-0! w-full!",
|
|
25207
25207
|
onSelect: () => {
|
|
25208
25208
|
setTimeout(() => {
|
|
@@ -45699,7 +45699,7 @@ function Sale2List2({ url, type = "product" }) {
|
|
|
45699
45699
|
const navigate = (0, import_react_router_dom117.useNavigate)();
|
|
45700
45700
|
const { TransactionView, openTransaction } = useTransactionView_default();
|
|
45701
45701
|
const { data, TransactionViewComponent, reload } = useTransaction_default({
|
|
45702
|
-
url: url || `/transactions/get?type=stock&stock=sale-3&stockType=${type}${branchId ? `&
|
|
45702
|
+
url: url || `/transactions/get?type=stock&stock=sale-3&stockType=${type}${branchId ? `&branch=${branchId}` : ""}`,
|
|
45703
45703
|
dateFilter: true
|
|
45704
45704
|
});
|
|
45705
45705
|
const { Modal: Modal2 } = useModal();
|
|
@@ -46080,7 +46080,7 @@ function SaleStockTable3({
|
|
|
46080
46080
|
v: 1,
|
|
46081
46081
|
valueKey: "_id",
|
|
46082
46082
|
obj: "lineObj",
|
|
46083
|
-
api: stockType === "product" ? `/products/get` : `/packs/get`,
|
|
46083
|
+
api: stockType === "product" ? `/products/get${branchId ? "?branch=" + branchId : ""}` : `/packs/get`,
|
|
46084
46084
|
className: "px-0! py-0! w-full!",
|
|
46085
46085
|
onSelect: () => {
|
|
46086
46086
|
setTimeout(() => {
|
|
@@ -47282,7 +47282,7 @@ function purchase3List({
|
|
|
47282
47282
|
const navigate = (0, import_react_router_dom122.useNavigate)();
|
|
47283
47283
|
const { TransactionView, openTransaction } = useTransactionView_default();
|
|
47284
47284
|
const { data, TransactionViewComponent, reload } = useTransaction_default({
|
|
47285
|
-
url: url || `/transactions/get?type=stock&stock=purchase-3&stockType=${type}${branchId ? `&
|
|
47285
|
+
url: url || `/transactions/get?type=stock&stock=purchase-3&stockType=${type}${branchId ? `&branch=${branchId}` : ""}`,
|
|
47286
47286
|
dateFilter: true
|
|
47287
47287
|
});
|
|
47288
47288
|
const { Modal: Modal2 } = useModal();
|
|
@@ -47660,7 +47660,7 @@ function PurchaseStockTable({
|
|
|
47660
47660
|
v: 1,
|
|
47661
47661
|
valueKey: "_id",
|
|
47662
47662
|
obj: "lineObj",
|
|
47663
|
-
api: stockType === "product" ? `/products/get` : `/packs/get`,
|
|
47663
|
+
api: stockType === "product" ? `/products/get${branchId ? "?branch=" + branchId : ""}` : `/packs/get`,
|
|
47664
47664
|
className: "px-0! py-0! w-full!",
|
|
47665
47665
|
onSelect: () => {
|
|
47666
47666
|
setTimeout(() => {
|
|
@@ -51255,7 +51255,7 @@ var ProductList2 = ({ value = false }) => {
|
|
|
51255
51255
|
const { getQuery, setQuery } = useApp_default();
|
|
51256
51256
|
const stockType = getQuery("stockType") || "product";
|
|
51257
51257
|
const { A4DataView, data } = useA4DataView_default({
|
|
51258
|
-
url: `/products/get`,
|
|
51258
|
+
url: `/products/get${branchId ? "?branch=" + branchId : ""}`,
|
|
51259
51259
|
v: 1,
|
|
51260
51260
|
// No prefix
|
|
51261
51261
|
params: {}
|
package/dist/index.mjs
CHANGED
|
@@ -24961,7 +24961,7 @@ function ClothendStockAdjustment({
|
|
|
24961
24961
|
const navigate = useNavigate26();
|
|
24962
24962
|
const { TransactionView, openTransaction } = useTransactionView_default();
|
|
24963
24963
|
const { data, TransactionViewComponent, reload } = useTransaction_default({
|
|
24964
|
-
url: url || `/transactions/get?type=stock&stock=adjustment&stockType=${type}${branchId ? `&
|
|
24964
|
+
url: url || `/transactions/get?type=stock&stock=adjustment&stockType=${type}${branchId ? `&branch=${branchId}` : ""}`,
|
|
24965
24965
|
dateFilter: true
|
|
24966
24966
|
});
|
|
24967
24967
|
const { Modal: Modal2 } = useModal();
|
|
@@ -25294,7 +25294,7 @@ function StockAdjustmentTable({
|
|
|
25294
25294
|
v: 1,
|
|
25295
25295
|
valueKey: "_id",
|
|
25296
25296
|
obj: "lineObj",
|
|
25297
|
-
api: stockType === "product" ? `/products/get` : `/packs/get`,
|
|
25297
|
+
api: stockType === "product" ? `/products/get${branchId ? "?branch=" + branchId : ""}` : `/packs/get`,
|
|
25298
25298
|
className: "px-0! py-0! w-full!",
|
|
25299
25299
|
onSelect: () => {
|
|
25300
25300
|
setTimeout(() => {
|
|
@@ -45906,7 +45906,7 @@ function Sale2List2({ url, type = "product" }) {
|
|
|
45906
45906
|
const navigate = useNavigate61();
|
|
45907
45907
|
const { TransactionView, openTransaction } = useTransactionView_default();
|
|
45908
45908
|
const { data, TransactionViewComponent, reload } = useTransaction_default({
|
|
45909
|
-
url: url || `/transactions/get?type=stock&stock=sale-3&stockType=${type}${branchId ? `&
|
|
45909
|
+
url: url || `/transactions/get?type=stock&stock=sale-3&stockType=${type}${branchId ? `&branch=${branchId}` : ""}`,
|
|
45910
45910
|
dateFilter: true
|
|
45911
45911
|
});
|
|
45912
45912
|
const { Modal: Modal2 } = useModal();
|
|
@@ -46287,7 +46287,7 @@ function SaleStockTable3({
|
|
|
46287
46287
|
v: 1,
|
|
46288
46288
|
valueKey: "_id",
|
|
46289
46289
|
obj: "lineObj",
|
|
46290
|
-
api: stockType === "product" ? `/products/get` : `/packs/get`,
|
|
46290
|
+
api: stockType === "product" ? `/products/get${branchId ? "?branch=" + branchId : ""}` : `/packs/get`,
|
|
46291
46291
|
className: "px-0! py-0! w-full!",
|
|
46292
46292
|
onSelect: () => {
|
|
46293
46293
|
setTimeout(() => {
|
|
@@ -47502,7 +47502,7 @@ function purchase3List({
|
|
|
47502
47502
|
const navigate = useNavigate63();
|
|
47503
47503
|
const { TransactionView, openTransaction } = useTransactionView_default();
|
|
47504
47504
|
const { data, TransactionViewComponent, reload } = useTransaction_default({
|
|
47505
|
-
url: url || `/transactions/get?type=stock&stock=purchase-3&stockType=${type}${branchId ? `&
|
|
47505
|
+
url: url || `/transactions/get?type=stock&stock=purchase-3&stockType=${type}${branchId ? `&branch=${branchId}` : ""}`,
|
|
47506
47506
|
dateFilter: true
|
|
47507
47507
|
});
|
|
47508
47508
|
const { Modal: Modal2 } = useModal();
|
|
@@ -47880,7 +47880,7 @@ function PurchaseStockTable({
|
|
|
47880
47880
|
v: 1,
|
|
47881
47881
|
valueKey: "_id",
|
|
47882
47882
|
obj: "lineObj",
|
|
47883
|
-
api: stockType === "product" ? `/products/get` : `/packs/get`,
|
|
47883
|
+
api: stockType === "product" ? `/products/get${branchId ? "?branch=" + branchId : ""}` : `/packs/get`,
|
|
47884
47884
|
className: "px-0! py-0! w-full!",
|
|
47885
47885
|
onSelect: () => {
|
|
47886
47886
|
setTimeout(() => {
|
|
@@ -51480,7 +51480,7 @@ var ProductList2 = ({ value = false }) => {
|
|
|
51480
51480
|
const { getQuery, setQuery } = useApp_default();
|
|
51481
51481
|
const stockType = getQuery("stockType") || "product";
|
|
51482
51482
|
const { A4DataView, data } = useA4DataView_default({
|
|
51483
|
-
url: `/products/get`,
|
|
51483
|
+
url: `/products/get${branchId ? "?branch=" + branchId : ""}`,
|
|
51484
51484
|
v: 1,
|
|
51485
51485
|
// No prefix
|
|
51486
51486
|
params: {}
|