@feedmepos/mf-inventory-portal 1.7.13 → 1.7.15-dev.0

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.
Files changed (108) hide show
  1. package/dist/{App-tk0n6XzL.js → App-aeh6OigH.js} +471 -460
  2. package/dist/{ApprovalView-CdnT8CZe.js → ApprovalView-D9U2VmYa.js} +9 -9
  3. package/dist/{BindingsDialog-LfVK-lwi.js → BindingsDialog-Ddh44o3y.js} +2 -2
  4. package/dist/{BindingsPicker-DtFUIIp6.js → BindingsPicker-CFtdG6ld.js} +2 -2
  5. package/dist/{BindingsTable-SM-qs56h.js → BindingsTable-Dl44JUUS.js} +4 -4
  6. package/dist/{BulkReceiveRequestView-CxO4aceI.js → BulkReceiveRequestView-DzjYw8z3.js} +19 -19
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-B_dcsrft.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-Bg8FBGzq.js} +6 -2
  8. package/dist/{ClosingDraftView-Bc9VEqFI.js → ClosingDraftView-D0SGlTkF.js} +19 -19
  9. package/dist/ClosingHistoryView-BKfhpOEw.js +761 -0
  10. package/dist/{ClosingTemplateView-Cf6BkJ1p.js → ClosingTemplateView-Ikq2OM4z.js} +16 -16
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-LtI-0ag-.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BhTM2C3K.js} +1 -1
  12. package/dist/{DefaultView-zeN-SUL7.js → DefaultView-ClKfklyX.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-CPdBGfWd.js → DeliveryOrderPrintPreview-Cfz_N8Bf.js} +2 -2
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-CttfIuEb.js → EmailDialog.vue_vue_type_script_setup_true_lang-C-GPckzY.js} +23 -23
  15. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-GYKs_eVT.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BxkzheM9.js} +1 -1
  16. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BlHeW9tQ.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CoFcZ-Zv.js} +2 -2
  17. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CSlAWGWz.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BAEpf31G.js} +2 -2
  18. package/dist/FmLockableField.vue_vue_type_script_setup_true_lang-FCg4K7y8.js +89 -0
  19. package/dist/{FmMultiselectDialog-DtvRQc96.js → FmMultiselectDialog-CiOdsRlf.js} +1 -1
  20. package/dist/{FmMultiselectDialog-gEkSoyOo.js → FmMultiselectDialog-Dr8wRNW7.js} +2 -2
  21. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DEdVxDAl.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D-Ycop6K.js} +6 -6
  22. package/dist/{ImportView-DvLVmruj.js → ImportView-BBqak01n.js} +6 -6
  23. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-C0eXC_7P.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CAJDLjrN.js} +1 -1
  24. package/dist/{IngredientGroupView-4nVKjTVO.js → IngredientGroupView-CghsReO0.js} +5 -5
  25. package/dist/IngredientsView-DLxTWo-n.js +2239 -0
  26. package/dist/{IntegrationExplorerView-3wJ_2jLQ.js → IntegrationExplorerView-C05R8EzL.js} +4 -4
  27. package/dist/IntegrationView-DpN7PYPc.js +7623 -0
  28. package/dist/{InventoryBindingForm-BdbHMLKN.js → InventoryBindingForm-CnHzZu12.js} +1 -1
  29. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-mJ0hwtVM.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Cls49Zgb.js} +5 -5
  30. package/dist/{InventoryBindingSummary-BKkBvlxM.js → InventoryBindingSummary-DK5Z9AKC.js} +1 -1
  31. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-8kEGeYvD.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-FsxbejSt.js} +1 -1
  32. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BVX6226m.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DvIbqRH9.js} +1 -1
  33. package/dist/{ProductionView-B4nPZTt9.js → ProductionView-DeUmELdm.js} +7 -7
  34. package/dist/{PublishView-do0VvwHk.js → PublishView-CGHFmmCG.js} +3 -3
  35. package/dist/{PurchaseOrderPrintPreview-VEJxKJZA.js → PurchaseOrderPrintPreview-xyXZU3oQ.js} +2 -2
  36. package/dist/{ReceiveRequestView-ycnbtRQp.js → ReceiveRequestView-CVmAUuqN.js} +14 -14
  37. package/dist/{RecipeView-Ce4AgrHT.js → RecipeView-BSd1V9En.js} +17 -17
  38. package/dist/{SettingsView-Bjx1z2gc.js → SettingsView-AI-JaGxh.js} +4 -4
  39. package/dist/{StockView-DqOEaJzz.js → StockView-CRrYes0h.js} +21 -21
  40. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DDT4AqtX.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DNXdZVOA.js} +1 -1
  41. package/dist/{SupplierView-C07LyK32.js → SupplierView-BMupiPVi.js} +1156 -1035
  42. package/dist/{SurchargeView-BKapiG5x.js → SurchargeView-77KsLF2T.js} +6 -6
  43. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-BKE4I1gG.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-Brw98Ihw.js} +2 -2
  44. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-XCYRCjQy.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Cjt4YAII.js} +1 -1
  45. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BHeqFlka.js +4797 -0
  46. package/dist/{TransferTemplateView-r1gRvF7q.js → TransferTemplateView-BMF1_tLd.js} +20 -20
  47. package/dist/{UnitCostHistoryView-BzF5Ydfg.js → UnitCostHistoryView-Gp8uWjMQ.js} +4 -4
  48. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-D3Qc1b_g.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-mwAMQ0B3.js} +4 -4
  49. package/dist/{UnitView-CIus7XDF.js → UnitView-Cuk5oaOf.js} +7 -7
  50. package/dist/{WarehouseView-D0LAGPr6.js → WarehouseView-Bat0looR.js} +6 -6
  51. package/dist/{WastageTemplateView-CX_vY8lT.js → WastageTemplateView-Coag2jbG.js} +14 -14
  52. package/dist/api/netsuite.d.ts +2 -0
  53. package/dist/api/stock.d.ts +0 -6
  54. package/dist/{app-BFI89qx8.js → app-C3gNrduY.js} +464 -439
  55. package/dist/app.d.ts +32 -12
  56. package/dist/app.js +1 -1
  57. package/dist/{closing-template-BsT8mozh.js → closing-template-DKklbhBW.js} +1 -1
  58. package/dist/cypress/component/ChangelogPanel.cy.d.ts +1 -0
  59. package/dist/cypress/support/component.d.ts +1 -2
  60. package/dist/{date2-DRguSPlT.js → date2-Cx-YVc4N.js} +1 -1
  61. package/dist/{dayjs.min-CQchvANX.js → dayjs.min-Cj2Eh8Tj.js} +1 -1
  62. package/dist/{decimal-XTxcAfEO.js → decimal-OxPQV_Pd.js} +2 -2
  63. package/dist/{defineDeepModel-BRoQ53kt.js → defineDeepModel-Dud4PiVz.js} +1 -1
  64. package/dist/{duplicate-template-CjRLJUuX.js → duplicate-template-XAhspiYs.js} +1 -1
  65. package/dist/{feature-4NFlAslj.js → feature-gYL54g_K.js} +2 -2
  66. package/dist/{format-time-from-id-HjX4Uw5t.js → format-time-from-id-T7WHy_x1.js} +1 -1
  67. package/dist/{format-unit-display-Bv64TEgM.js → format-unit-display-BsjRSrAe.js} +12 -12
  68. package/dist/{import-export.helper-5GAs3g-u.js → import-export.helper-CEdt0BWR.js} +6 -6
  69. package/dist/{index-wBonClcq.js → index-BZynONs2.js} +3 -3
  70. package/dist/{index-DT7aF_IJ.js → index-CBcKeIhg.js} +1 -1
  71. package/dist/{index-Cy99iIzT.js → index-DQKbOIoT.js} +1 -1
  72. package/dist/{inventory-core-dart.default-aPOgM_iG.js → inventory-core-dart.default-D4zV0IQQ.js} +1428 -1322
  73. package/dist/{lz-string-D4H5yiwN.js → lz-string-BtyfM17N.js} +1 -1
  74. package/dist/{netsuite-CA6GsSZX.js → netsuite-BEW5HsxM.js} +477 -462
  75. package/dist/{number-wdTGPqVx.js → number-CQBgN-M7.js} +3 -3
  76. package/dist/{predefined-templates-5gDm-KTC.js → predefined-templates-CpP9HOqv.js} +1 -1
  77. package/dist/{purchase-order-template-NYXXge2I.js → purchase-order-template-PekDPb4u.js} +1 -1
  78. package/dist/{recalculationUtils-BYxkQ6y9.js → recalculationUtils-lfhKnVFx.js} +1 -1
  79. package/dist/{rules-CTPrTWcQ.js → rules-5x2UEFmU.js} +2 -2
  80. package/dist/{stock-B5SFlbu5.js → stock-Ch5c3jO9.js} +3 -3
  81. package/dist/{stock-BN60-dxD.js → stock-DqIRhhsu.js} +26 -36
  82. package/dist/stores/integration/netsuite.d.ts +54 -0
  83. package/dist/{supplier-qENTmxSk.js → supplier-DVxdFpgr.js} +2 -2
  84. package/dist/{surcharge-DqHTzQ4D.js → surcharge-CNGep-bs.js} +1 -1
  85. package/dist/tsconfig.app.tsbuildinfo +1 -1
  86. package/dist/{uom-rules-BQ2wBmPD.js → uom-rules-RPvKxFQI.js} +1 -1
  87. package/dist/{use-ingredient-select-dialog-DCLCw51r.js → use-ingredient-select-dialog-CPdwTQrN.js} +2 -2
  88. package/dist/{use-inventory-binding-dialog-BsbXZl-i.js → use-inventory-binding-dialog-CeyqcDPW.js} +2 -2
  89. package/dist/{use-template-enabled-locations-aNl_4Yzk.js → use-template-enabled-locations-DJ46fm8w.js} +2 -2
  90. package/dist/{use-transfer-locations-ChEibX9h.js → use-transfer-locations-DBIAb9MY.js} +2 -2
  91. package/dist/{useHrmPermission-DgjpLTc8.js → useHrmPermission-BEDY0i29.js} +1 -1
  92. package/dist/{useNavigationMenu-CMFZ-5F-.js → useNavigationMenu-xXANo9uC.js} +2 -2
  93. package/dist/{useSseClient-CT23c0Mu.js → useSseClient-B-dfDpdW.js} +1 -1
  94. package/dist/views/changelog/components/ChangelogFloatingButton.spec.d.ts +1 -0
  95. package/dist/views/changelog/composables/fab-position.d.ts +21 -0
  96. package/dist/views/changelog/composables/use-inventory-record-commits.d.ts +1 -1
  97. package/dist/views/integration/components/netsuite/business/vendor-publish.d.ts +7 -0
  98. package/dist/views/integration/components/netsuite/business/vendor-publish.spec.d.ts +1 -0
  99. package/dist/views/stock/components/dialog/RecalculationDialog.vue.d.ts +2 -17
  100. package/dist/{vue-i18n-Bj6Jb-Dc.js → vue-i18n-D64MVhs-.js} +295 -295
  101. package/dist/{xlsx.util-iqdZHANo.js → xlsx.util-BntGs-ye.js} +2 -2
  102. package/package.json +3 -3
  103. package/dist/ClosingHistoryView-BOjnPKtQ.js +0 -1112
  104. package/dist/IngredientsView-DQsn-GXv.js +0 -2322
  105. package/dist/IntegrationView-DOC5QhaQ.js +0 -7506
  106. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CbaCIkH6.js +0 -4781
  107. package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +0 -9
  108. package/dist/views/stock/components/dialog/SnapshotRecalculationDialog.vue.d.ts +0 -24
@@ -1,6 +1,6 @@
1
- import { w as o } from "./app-BFI89qx8.js";
2
- import { F as l } from "./decimal-XTxcAfEO.js";
3
- import "./dayjs.min-CQchvANX.js";
1
+ import { w as o } from "./app-C3gNrduY.js";
2
+ import { F as l } from "./decimal-OxPQV_Pd.js";
3
+ import "./dayjs.min-Cj2Eh8Tj.js";
4
4
  function g(n, t) {
5
5
  return o.convertPrecision({
6
6
  value: n,
@@ -1,4 +1,4 @@
1
- import { d as qn, j as Wn, y as zn } from "./app-BFI89qx8.js";
1
+ import { d as qn, j as Wn, y as zn } from "./app-C3gNrduY.js";
2
2
  import { defineStore as Vn } from "pinia";
3
3
  import { ref as mt, computed as Kn } from "vue";
4
4
  import { useCoreStore as Yn } from "@feedmepos/mf-common";
@@ -1,4 +1,4 @@
1
- import { d as s } from "./app-BFI89qx8.js";
1
+ import { d as s } from "./app-C3gNrduY.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  const u = s((n, a) => {
4
4
  function o() {
@@ -1,4 +1,4 @@
1
- import { B as p } from "./app-BFI89qx8.js";
1
+ import { B as p } from "./app-C3gNrduY.js";
2
2
  function l(s) {
3
3
  return Math.floor(s.getTime() / 1e3) * 1e3;
4
4
  }
@@ -1,5 +1,5 @@
1
- import { c as f, a as u, g as d, b as m } from "./number-wdTGPqVx.js";
2
- import { c as b, d as p } from "./date2-DRguSPlT.js";
1
+ import { c as f, a as u, g as d, b as m } from "./number-CQBgN-M7.js";
2
+ import { c as b, d as p } from "./date2-Cx-YVc4N.js";
3
3
  function M() {
4
4
  return function(e) {
5
5
  return !!e || "Required";
@@ -1,7 +1,7 @@
1
- import { u as i } from "./stock-BN60-dxD.js";
2
- import { a as s, T as p } from "./app-BFI89qx8.js";
1
+ import { u as i } from "./stock-DqIRhhsu.js";
2
+ import { a as s, T as p } from "./app-C3gNrduY.js";
3
3
  import { computed as k, ref as B } from "vue";
4
- import { c as d } from "./number-wdTGPqVx.js";
4
+ import { c as d } from "./number-CQBgN-M7.js";
5
5
  function m() {
6
6
  return {
7
7
  stockBalance: {
@@ -1,8 +1,8 @@
1
- import { d as m, u as $ } from "./app-BFI89qx8.js";
1
+ import { d as m, u as $ } from "./app-C3gNrduY.js";
2
2
  import { useCoreStore as B } from "@feedmepos/mf-common";
3
- import { useSnackbar as k } from "@feedmepos/ui-library";
3
+ import { useSnackbar as y } from "@feedmepos/ui-library";
4
4
  const N = m((r, a) => {
5
- const s = $(), u = B(), i = k();
5
+ const o = $(), u = B(), i = y();
6
6
  return a.onError(async (e) => {
7
7
  e.name === "SvcForbiddenError" && (i == null || i.open({
8
8
  title: e.title,
@@ -11,65 +11,55 @@ const N = m((r, a) => {
11
11
  }));
12
12
  }), {
13
13
  async readStockBalance() {
14
- const e = s.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/stock-balance`;
14
+ const e = o.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/stock-balance`;
15
15
  return await a.get(t);
16
16
  },
17
17
  async readSkuBalance() {
18
- var o;
19
- const e = s.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/sku/balance`;
20
- return (((o = u.currentBusiness.value) == null ? void 0 : o.menuVersion) ?? "") === "v3" ? await a.get(t) : await a.get(`${t}?useInventoryDoc=true`);
18
+ var c;
19
+ const e = o.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/sku/balance`;
20
+ return (((c = u.currentBusiness.value) == null ? void 0 : c.menuVersion) ?? "") === "v3" ? await a.get(t) : await a.get(`${t}?useInventoryDoc=true`);
21
21
  },
22
22
  async readSingleAdjustment(e) {
23
- const t = s.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/adjustment`;
23
+ const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/adjustment`;
24
24
  return await a.get(`${n}?adjustmentId=${e}`);
25
25
  },
26
26
  async readStockAdjustment(e, t, n) {
27
- const o = s.currentLocationDBName, c = `${r.inventoryBackendUrl}/${o}/sku`;
28
- return await a.get(`${c}?skuId=${e}&start=${t}&end=${n}`);
27
+ const c = o.currentLocationDBName, s = `${r.inventoryBackendUrl}/${c}/sku`;
28
+ return await a.get(`${s}?skuId=${e}&start=${t}&end=${n}`);
29
29
  },
30
30
  async readAdjustmentById(e) {
31
- const t = s.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/adjustment`;
31
+ const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/adjustment`;
32
32
  return await a.get(`${n}?adjustmentId=${e}`);
33
33
  },
34
34
  async convertSku(e) {
35
- var c;
36
- const t = s.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/sku/convert`;
37
- return (((c = u.currentBusiness.value) == null ? void 0 : c.menuVersion) ?? "") === "v3" ? await a.post(n, e) : await a.post(`${n}?useInventoryDoc=true`, e);
35
+ var s;
36
+ const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/sku/convert`;
37
+ return (((s = u.currentBusiness.value) == null ? void 0 : s.menuVersion) ?? "") === "v3" ? await a.post(n, e) : await a.post(`${n}?useInventoryDoc=true`, e);
38
38
  },
39
39
  async adjustSku(e) {
40
- var c;
41
- const t = s.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/sku/adjust`;
42
- return (((c = u.currentBusiness.value) == null ? void 0 : c.menuVersion) ?? "") === "v3" ? await a.post(n, e) : await a.post(`${n}?useInventoryDoc=true`, e);
40
+ var s;
41
+ const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/sku/adjust`;
42
+ return (((s = u.currentBusiness.value) == null ? void 0 : s.menuVersion) ?? "") === "v3" ? await a.post(n, e) : await a.post(`${n}?useInventoryDoc=true`, e);
43
43
  },
44
44
  async revertWastageAdjustment(e) {
45
- const t = s.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/sku/revert-wastage-adjustment`;
45
+ const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/sku/revert-wastage-adjustment`;
46
46
  return await a.post(n, e);
47
47
  },
48
48
  recalculation: {
49
- getRecalculateAbility() {
50
- var o;
51
- const t = `business_${(o = u.currentBusiness.value) == null ? void 0 : o._id}`, n = `${r.inventoryBackendUrl}/${t}/stock/operations/recalculate`;
52
- return a.get(n);
53
- },
54
- startRecalculateTask() {
55
- var o;
56
- const t = `business_${(o = u.currentBusiness.value) == null ? void 0 : o._id}`, n = `${r.inventoryBackendUrl}/${t}/stock/operations/recalculate?refundFromPreviousAdjustment=true`;
57
- return a.post(n);
58
- },
59
49
  refreshCurrentBalances() {
60
- const e = s.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/stock/operations/recalculate/refresh-current-balances`;
50
+ const e = o.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/stock/operations/recalculate/refresh-current-balances`;
61
51
  return a.post(t);
62
52
  },
63
53
  scheduleInvalidateClosingDraftCache(e) {
64
- const t = s.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/stock/operations/recalculate/schedule/invalidate-closing-draft-cache`;
54
+ const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/stock/operations/recalculate/schedule/invalidate-closing-draft-cache`;
65
55
  return a.post(n, { closingDraftIds: e });
66
56
  },
67
57
  recalculationRequests() {
68
- const e = s.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/stock/operations/recalculate/recalculation/requests`;
58
+ const e = o.currentLocationDBName, t = `${r.inventoryBackendUrl}/${e}/stock/operations/recalculate/recalculation/requests`;
69
59
  return a.get(t);
70
60
  },
71
61
  scheduleRecalculation(e) {
72
- const t = s.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/stock/operations/recalculate/schedule/recalculation`;
62
+ const t = o.currentLocationDBName, n = `${r.inventoryBackendUrl}/${t}/stock/operations/recalculate/schedule/recalculation`;
73
63
  return a.post(n, {
74
64
  openingId: e.openingId,
75
65
  untilDate: e.untilDate,
@@ -77,15 +67,15 @@ const N = m((r, a) => {
77
67
  });
78
68
  },
79
69
  getAffectedClosingDrafts(e, t) {
80
- const n = s.currentLocationDBName, o = `${r.inventoryBackendUrl}/${n}/closing-draft/recalculation/affected-closing-drafts?openingId=${encodeURIComponent(e)}&untilDate=${encodeURIComponent(t)}`;
81
- return a.get(o);
70
+ const n = o.currentLocationDBName, c = `${r.inventoryBackendUrl}/${n}/closing-draft/recalculation/affected-closing-drafts?openingId=${encodeURIComponent(e)}&untilDate=${encodeURIComponent(t)}`;
71
+ return a.get(c);
82
72
  }
83
73
  },
84
74
  async readUnitCostHistory(e, t, n) {
85
75
  var d;
86
- const o = s.currentLocation.doc._id, c = ((d = u.currentBusiness.value) == null ? void 0 : d._id) ?? "", l = `${r.inventoryBackendUrl}/${c}/api/unit-cost-history`;
76
+ const c = o.currentLocation.doc._id, s = ((d = u.currentBusiness.value) == null ? void 0 : d._id) ?? "", l = `${r.inventoryBackendUrl}/${s}/api/unit-cost-history`;
87
77
  return await a.get(
88
- `${l}?locationId=${o}&skuId=${e}&startDate=${t}&endDate=${n}`
78
+ `${l}?locationId=${c}&skuId=${e}&startDate=${t}&endDate=${n}`
89
79
  );
90
80
  }
91
81
  };
@@ -37,6 +37,7 @@ export interface NetSuiteState {
37
37
  isReady: boolean;
38
38
  skuOptions: Record<string, NetSuiteSettingOption>;
39
39
  itemReplicas: FdoNetSuiteItemReplica[];
40
+ vendorReplicas: FdoNetSuiteVendorReplica[];
40
41
  }
41
42
  export declare function useNetSuiteStore(): {
42
43
  readonly customFieldOptions: Record<string, {
@@ -254,6 +255,58 @@ export declare function useNetSuiteStore(): {
254
255
  subsidiaryIds: string[];
255
256
  includeChildren: boolean;
256
257
  }[];
258
+ vendorReplicas: {
259
+ name?: string | null | undefined;
260
+ externalId?: string | null | undefined;
261
+ syncedAt?: string | null | undefined;
262
+ deletedAt?: string | null | undefined;
263
+ supplierCache?: {
264
+ _rev?: string | null | undefined;
265
+ internal?: "restaurant" | "warehouse" | null | undefined;
266
+ contactName?: string | null | undefined;
267
+ email?: string | null | undefined;
268
+ phoneNumber?: string | null | undefined;
269
+ supplyItems?: {
270
+ skuId: string;
271
+ defaultCost: {
272
+ measurement?: {
273
+ name: string;
274
+ id: string;
275
+ abbrev: string;
276
+ conversion: {
277
+ amount: number;
278
+ precision: number;
279
+ };
280
+ } | null | undefined;
281
+ costPerUnit: {
282
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
283
+ amount: number;
284
+ precision: number;
285
+ };
286
+ };
287
+ }[] | null | undefined;
288
+ preparationTime?: {
289
+ unit: "year" | "month" | "week" | "day" | "hour" | "minute" | "second" | "millisecond";
290
+ value: number;
291
+ } | null | undefined;
292
+ _id: string;
293
+ name: string;
294
+ registrationNumber: string;
295
+ address: {
296
+ line2?: string | null | undefined;
297
+ line1: string;
298
+ state: string;
299
+ city: string;
300
+ postcode: string;
301
+ country: string;
302
+ };
303
+ } | null | undefined;
304
+ custentity_financeapproval?: boolean | null | undefined;
305
+ businessId: string;
306
+ netSuiteId: string;
307
+ supplierId: string;
308
+ subsidiaryId: string;
309
+ }[];
257
310
  };
258
311
  readonly netSuiteItemIdToSkuId: Map<unknown, [string, ...string[]]>;
259
312
  readonly netSuiteMeasurementIdToMeasurementId: Map<unknown, [string, ...string[]]>;
@@ -395,6 +448,7 @@ export declare function useNetSuiteStore(): {
395
448
  subsidiaryName: string;
396
449
  }>): Promise<any>;
397
450
  getAllItemReplicas(): Promise<void>;
451
+ getAllVendorReplicas(): Promise<void>;
398
452
  getNetSuiteVendorOptions(): Promise<NSDtoVendorSuiteQLOption[]>;
399
453
  getNetSuiteLocations(): Promise<any>;
400
454
  getVendorSubsidiaryName(supplierId: string): string;
@@ -1,5 +1,5 @@
1
- import { d as b, u, m as v, n as w, o as $ } from "./app-BFI89qx8.js";
2
- import { u as S } from "./feature-4NFlAslj.js";
1
+ import { d as b, u, m as v, n as w, o as $ } from "./app-C3gNrduY.js";
2
+ import { u as S } from "./feature-gYL54g_K.js";
3
3
  import { useCoreStore as c } from "@feedmepos/mf-common";
4
4
  import { defineStore as f } from "pinia";
5
5
  import { ref as l, computed as d } from "vue";
@@ -1,5 +1,5 @@
1
1
  import { ref as d } from "vue";
2
- import { d as w, j as g } from "./app-BFI89qx8.js";
2
+ import { d as w, j as g } from "./app-C3gNrduY.js";
3
3
  import { useCoreStore as h } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as y } from "@feedmepos/ui-library";
5
5
  const p = w((s, r) => {