warqadui 0.0.277 → 0.0.279

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 CHANGED
@@ -45117,7 +45117,7 @@ function PaymentForm3({
45117
45117
  const fetches = async () => {
45118
45118
  try {
45119
45119
  const res = await get({
45120
- url: `/transactions/get?id=${id}${branchId ? `&fromBranch=${branchId}` : ""}`
45120
+ url: `/transactions/get?id=${id}${branchId ? `&branch=${branchId}` : ""}`
45121
45121
  });
45122
45122
  const data = res.data;
45123
45123
  reset({
@@ -45328,7 +45328,7 @@ function Journals3({ url }) {
45328
45328
  const { TransactionView, openTransaction } = useTransactionView_default();
45329
45329
  const { PosPrinter } = usePosPrinter_default();
45330
45330
  const { data, TransactionViewComponent, reload } = useTransaction_default({
45331
- url: url || `/transactions/get?type=journal-3${branchId ? `&fromBranch=${branchId}` : ""}`,
45331
+ url: url || `/transactions/get?type=journal-3${branchId ? `&branch=${branchId}` : ""}`,
45332
45332
  dateFilter: true
45333
45333
  });
45334
45334
  const { Modal: Modal2 } = useModal();
@@ -48098,7 +48098,7 @@ function Expenses3({ url }) {
48098
48098
  const navigate = (0, import_react_router_dom123.useNavigate)();
48099
48099
  const { TransactionView, openTransaction } = useTransactionView_default();
48100
48100
  const { data, TransactionViewComponent, reload } = useTransaction_default({
48101
- url: url || `/transactions/get?type=expense-3${branchId ? `&fromBranch=${branchId}` : ""}`,
48101
+ url: url || `/transactions/get?type=expense-3${branchId ? `&branch=${branchId}` : ""}`,
48102
48102
  dateFilter: true
48103
48103
  });
48104
48104
  const { Modal: Modal2 } = useModal();
@@ -48250,7 +48250,8 @@ function ExpenseForm2() {
48250
48250
  amount: 0,
48251
48251
  description: "",
48252
48252
  wallet: "",
48253
- rate: void 0
48253
+ rate: void 0,
48254
+ branch: branchId || void 0
48254
48255
  }
48255
48256
  });
48256
48257
  const { handleSubmit, reset, watch } = methods;
package/dist/index.mjs CHANGED
@@ -45319,7 +45319,7 @@ function PaymentForm3({
45319
45319
  const fetches = async () => {
45320
45320
  try {
45321
45321
  const res = await get({
45322
- url: `/transactions/get?id=${id}${branchId ? `&fromBranch=${branchId}` : ""}`
45322
+ url: `/transactions/get?id=${id}${branchId ? `&branch=${branchId}` : ""}`
45323
45323
  });
45324
45324
  const data = res.data;
45325
45325
  reset({
@@ -45530,7 +45530,7 @@ function Journals3({ url }) {
45530
45530
  const { TransactionView, openTransaction } = useTransactionView_default();
45531
45531
  const { PosPrinter } = usePosPrinter_default();
45532
45532
  const { data, TransactionViewComponent, reload } = useTransaction_default({
45533
- url: url || `/transactions/get?type=journal-3${branchId ? `&fromBranch=${branchId}` : ""}`,
45533
+ url: url || `/transactions/get?type=journal-3${branchId ? `&branch=${branchId}` : ""}`,
45534
45534
  dateFilter: true
45535
45535
  });
45536
45536
  const { Modal: Modal2 } = useModal();
@@ -48310,7 +48310,7 @@ function Expenses3({ url }) {
48310
48310
  const navigate = useNavigate63();
48311
48311
  const { TransactionView, openTransaction } = useTransactionView_default();
48312
48312
  const { data, TransactionViewComponent, reload } = useTransaction_default({
48313
- url: url || `/transactions/get?type=expense-3${branchId ? `&fromBranch=${branchId}` : ""}`,
48313
+ url: url || `/transactions/get?type=expense-3${branchId ? `&branch=${branchId}` : ""}`,
48314
48314
  dateFilter: true
48315
48315
  });
48316
48316
  const { Modal: Modal2 } = useModal();
@@ -48462,7 +48462,8 @@ function ExpenseForm2() {
48462
48462
  amount: 0,
48463
48463
  description: "",
48464
48464
  wallet: "",
48465
- rate: void 0
48465
+ rate: void 0,
48466
+ branch: branchId || void 0
48466
48467
  }
48467
48468
  });
48468
48469
  const { handleSubmit, reset, watch } = methods;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "warqadui",
3
- "version": "0.0.277",
3
+ "version": "0.0.279",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",