warqadui 0.0.88 → 0.0.89

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
@@ -8563,7 +8563,7 @@ function AccountForm() {
8563
8563
  const fetches = async () => {
8564
8564
  try {
8565
8565
  const res = await get({
8566
- url: `/accounts/get/${type}?id=${id}`
8566
+ url: `/accounts/get/${type}?id=${id}${branchId ? `&branch=${branchId}` : ""}`
8567
8567
  });
8568
8568
  const data = res.data;
8569
8569
  methods.reset(data);
@@ -9930,7 +9930,10 @@ function WalletForm() {
9930
9930
  } else {
9931
9931
  await post({
9932
9932
  url: "/wallets/create",
9933
- body: data
9933
+ body: {
9934
+ ...data,
9935
+ branch: branchId ? branchId : data.branch
9936
+ }
9934
9937
  });
9935
9938
  }
9936
9939
  import_antd17.message.success(`Wallet ${isEdit ? "updated" : "created"} successfully`);
@@ -9942,7 +9945,7 @@ function WalletForm() {
9942
9945
  const fetches = async () => {
9943
9946
  try {
9944
9947
  const res = await get({
9945
- url: `/wallets/get?id=${id}`
9948
+ url: `/wallets/get?id=${id}${branchId ? `&branch=${branchId}` : ""}`
9946
9949
  });
9947
9950
  const data = res.data;
9948
9951
  methods.reset(data);
package/dist/index.mjs CHANGED
@@ -8523,7 +8523,7 @@ function AccountForm() {
8523
8523
  const fetches = async () => {
8524
8524
  try {
8525
8525
  const res = await get({
8526
- url: `/accounts/get/${type}?id=${id}`
8526
+ url: `/accounts/get/${type}?id=${id}${branchId ? `&branch=${branchId}` : ""}`
8527
8527
  });
8528
8528
  const data = res.data;
8529
8529
  methods.reset(data);
@@ -9890,7 +9890,10 @@ function WalletForm() {
9890
9890
  } else {
9891
9891
  await post({
9892
9892
  url: "/wallets/create",
9893
- body: data
9893
+ body: {
9894
+ ...data,
9895
+ branch: branchId ? branchId : data.branch
9896
+ }
9894
9897
  });
9895
9898
  }
9896
9899
  message15.success(`Wallet ${isEdit ? "updated" : "created"} successfully`);
@@ -9902,7 +9905,7 @@ function WalletForm() {
9902
9905
  const fetches = async () => {
9903
9906
  try {
9904
9907
  const res = await get({
9905
- url: `/wallets/get?id=${id}`
9908
+ url: `/wallets/get?id=${id}${branchId ? `&branch=${branchId}` : ""}`
9906
9909
  });
9907
9910
  const data = res.data;
9908
9911
  methods.reset(data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "warqadui",
3
- "version": "0.0.88",
3
+ "version": "0.0.89",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",