@feedmepos/mf-inventory-portal 1.3.14-dev.1 → 1.3.14-dev.2

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 (90) hide show
  1. package/dist/App-D1_jkD6L.js +309 -0
  2. package/dist/{ApprovalView-BxioAXpO.js → ApprovalView-CfF2FqsE.js} +12 -12
  3. package/dist/{BindingsDialog-Dn_hP7Ji.js → BindingsDialog-H-juP-az.js} +2 -2
  4. package/dist/{BindingsPicker-BEXOUaoI.js → BindingsPicker-ClruHF7p.js} +2 -2
  5. package/dist/{BindingsTable-CsRLA5J_.js → BindingsTable-Bx9pbFOO.js} +3 -3
  6. package/dist/{ClosingDraftView-DoH9ZcGA.js → ClosingDraftView-DN97Tao5.js} +137 -137
  7. package/dist/{ClosingHistoryView-BWf_gIrc.js → ClosingHistoryView-DsRYUqa2.js} +32 -32
  8. package/dist/{ClosingTemplateView-BKRxzvQX.js → ClosingTemplateView-f9zfsxCu.js} +14 -14
  9. package/dist/DefaultView-COVVxOrF.js +31 -0
  10. package/dist/{DeliveryOrderPrintPreview-HzspgQXj.js → DeliveryOrderPrintPreview-BMK4kBCQ.js} +11 -11
  11. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DstxeP1q.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bqj_Ygmo.js} +23 -23
  12. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-E9FFFhwx.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CK1ha_AY.js} +2 -2
  13. package/dist/{FmMultiselectDialog-3uKA-o0f.js → FmMultiselectDialog-BazT9oUX.js} +1 -1
  14. package/dist/{FmMultiselectDialog-uFZKKIiO.js → FmMultiselectDialog-_gUuhudi.js} +16 -16
  15. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C1KGaqi7.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BBtAgdsA.js} +18 -18
  16. package/dist/{ImportView-zrNDzp3k.js → ImportView-jpkwuCXO.js} +6 -6
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-B2vMgXVZ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DLJnF4do.js} +1 -1
  18. package/dist/{IngredientGroupView-HcAKvPur.js → IngredientGroupView-x3t1hyNn.js} +5 -5
  19. package/dist/{IngredientsView-CRB5UN-e.js → IngredientsView-BzWTnlb4.js} +15 -15
  20. package/dist/{IntegrationExplorerView-k3IHeiOU.js → IntegrationExplorerView-Bca3owbx.js} +5 -5
  21. package/dist/{IntegrationView-B3WeQTDB.js → IntegrationView-Dh1c4Qyo.js} +81 -81
  22. package/dist/{InventoryBindingForm-B-7SQKl2.js → InventoryBindingForm-B1sI1TGZ.js} +1 -1
  23. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DhPu_GyE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-7NeE7Xos.js} +15 -15
  24. package/dist/{InventoryBindingSummary-Swi6A3W2.js → InventoryBindingSummary-R8zHPc52.js} +1 -1
  25. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Duv0At06.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DMJVh7Nt.js} +1 -1
  26. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang--gt60IlU.js → PremiumBadge.vue_vue_type_script_setup_true_lang-ChC9sEIk.js} +5 -5
  27. package/dist/{PublishView-B9HJT61I.js → PublishView-Bqp8Ww4J.js} +13 -13
  28. package/dist/{PurchaseOrderPrintPreview-sClUXkgt.js → PurchaseOrderPrintPreview-D7TCn8U-.js} +11 -11
  29. package/dist/{ReceiveRequestView-BbS55juS.js → ReceiveRequestView-oNBVAMYu.js} +23 -23
  30. package/dist/{RecipeView-BH3asOD4.js → RecipeView-D8Mvgji9.js} +50 -50
  31. package/dist/{SettingsView-BJAMNNhr.js → SettingsView-BJScLK9z.js} +30 -30
  32. package/dist/{StockView-DMLFY7d1.js → StockView-CRRdVCcD.js} +143 -143
  33. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DeiLMVin.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DUKv_LV6.js} +1 -1
  34. package/dist/{SupplierView-C3uBrEcc.js → SupplierView-DdBBIV8W.js} +12 -12
  35. package/dist/{SurchargeView-S9ByD9Nd.js → SurchargeView-DisBUPIs.js} +16 -16
  36. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-ha60Wy7z.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CZ3Q3BAf.js} +2 -2
  37. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CfyCEElN.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CC7F5HVc.js} +1 -1
  38. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CKfs-ns0.js → TransferDetails.vue_vue_type_script_setup_true_lang-BLlg1Vka.js} +212 -212
  39. package/dist/{TransferTemplateView-zbn5CGiZ.js → TransferTemplateView-7ICJMF9z.js} +17 -17
  40. package/dist/{UnitCostHistoryView-LhvAybS8.js → UnitCostHistoryView-BMRDBQ58.js} +4 -4
  41. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-E2QCl521.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-mNXHzLN3.js} +4 -4
  42. package/dist/{UnitView-6oUdlUVo.js → UnitView-uUUYOjYn.js} +24 -24
  43. package/dist/{WarehouseView-DQFe99KT.js → WarehouseView-BfMf_iuj.js} +25 -25
  44. package/dist/{WastageTemplateView-BiYZqiT2.js → WastageTemplateView-BQYjJGZ-.js} +14 -14
  45. package/dist/{app-SnX9gL_k.js → app-B_zMegJc.js} +4571 -4564
  46. package/dist/app.d.ts +16 -0
  47. package/dist/app.js +1 -1
  48. package/dist/{closing-template-Ch--jBk-.js → closing-template-9vhx5Ji1.js} +1 -1
  49. package/dist/composable/useInventoryAccess.d.ts +11 -0
  50. package/dist/composable/useNavigationMenu.d.ts +14 -0
  51. package/dist/{date2-CGqqJOqr.js → date2-BMCS_Dsc.js} +1 -1
  52. package/dist/{dayjs.min-JnfBpNSN.js → dayjs.min-Dl26OaXo.js} +16 -16
  53. package/dist/{decimal-C-2MQYNP.js → decimal-e6OK2jkR.js} +2 -2
  54. package/dist/{defineDeepModel-CUJCBuvw.js → defineDeepModel-BvLlwxnd.js} +1 -1
  55. package/dist/{duplicate-template-BXg5EQRC.js → duplicate-template-Cnhu8Rxw.js} +1 -1
  56. package/dist/{empty-placeholder-wf6-BWE8.js → empty-placeholder-B0QU467o.js} +1 -1
  57. package/dist/{export-DUsFBcmf.js → export-CGvyGmeo.js} +1 -1
  58. package/dist/{feature-gkhmly57.js → feature-Do41WWzx.js} +23 -23
  59. package/dist/{format-time-from-id-D1RhcKfL.js → format-time-from-id-CqX_KaUG.js} +1 -1
  60. package/dist/{format-unit-display-DXs_-yEW.js → format-unit-display-D8qWmRXP.js} +11 -11
  61. package/dist/{import-export.helper-B84wW0eo.js → import-export.helper-85V8Ib5e.js} +6 -6
  62. package/dist/{index-Dp1GAjHf.js → index-C-CwnjUn.js} +3 -3
  63. package/dist/{index-artVJVqL.js → index-Cg3aLEhT.js} +1 -1
  64. package/dist/{index-D3XgyMwL.js → index-CtUF9Nsv.js} +1 -1
  65. package/dist/{inventory-core-dart.default-Bu1oVkLC.js → inventory-core-dart.default-B64FzAla.js} +1 -1
  66. package/dist/{lodash-DZbYS5Vn.js → lodash-U9ycVPlv.js} +1 -1
  67. package/dist/{lz-string-nX96TtT6.js → lz-string-0CgVsQoC.js} +13 -13
  68. package/dist/{netsuite-DQkJKCH9.js → netsuite-Du7-sXJt.js} +77 -77
  69. package/dist/{number-gRrApZRj.js → number-iJAzDfmj.js} +7 -7
  70. package/dist/{predefined-templates-D9bzSOz_.js → predefined-templates-LlSrXOXm.js} +1 -1
  71. package/dist/{purchase-order-template-BiE_We2X.js → purchase-order-template-DFuXb0rr.js} +1 -1
  72. package/dist/{recalculationUtils-zNt-EW5S.js → recalculationUtils-DWPnMW1G.js} +1 -1
  73. package/dist/router/name.d.ts +1 -0
  74. package/dist/{rules-CWFFr_mA.js → rules-DefSKiUN.js} +2 -2
  75. package/dist/{stock-C-34Vuxz.js → stock-BfF6peMd.js} +3 -3
  76. package/dist/{stock-V4Oy4QHQ.js → stock-Cx1BwdWs.js} +1 -1
  77. package/dist/{supplier-DbYagMhS.js → supplier-CU3iqdGr.js} +16 -16
  78. package/dist/{surcharge-CcvvfLHB.js → surcharge-D77J5opH.js} +12 -12
  79. package/dist/tsconfig.app.tsbuildinfo +1 -1
  80. package/dist/{use-ingredient-select-dialog-B4jFgJ5b.js → use-ingredient-select-dialog-B-jxV-79.js} +2 -2
  81. package/dist/{use-inventory-binding-dialog-20flYyGE.js → use-inventory-binding-dialog-BdTd5qPl.js} +2 -2
  82. package/dist/{use-template-enabled-locations-CpDMbAGF.js → use-template-enabled-locations-vFvaCjlH.js} +2 -2
  83. package/dist/{useHrmPermission-CZW6u2TS.js → useHrmPermission-CekUhyck.js} +4 -4
  84. package/dist/useNavigationMenu-BiLWMIip.js +162 -0
  85. package/dist/views/DefaultView.vue.d.ts +2 -0
  86. package/dist/{vue-i18n-CUrz9OVK.js → vue-i18n-C3_OsgSl.js} +372 -372
  87. package/dist/{xlsx-DBsOBE1z.js → xlsx-o7n1whCa.js} +398 -398
  88. package/dist/{xlsx.util-xziohm10.js → xlsx.util-D6nPboPW.js} +1 -1
  89. package/package.json +4 -4
  90. package/dist/App-Cb6qfRCz.js +0 -445
@@ -1,9 +1,9 @@
1
- import { m as e, a4 as Kt, a5 as Gt, a6 as zt, a7 as Yt, a8 as Fe, a9 as Jt, aa as ke, X as He, ab as Ze, ac as Ct, ad as O, ae as x, f as Te, N as R, A as M, af as $e, H as ne, G as se, ag as Ke, V as B, ah as Nt, ai as Wt, aj as Qt, ak as Xt, al as et, am as Zt, p as en, k as tn, x as ft, a as nn, u as Me } from "./app-SnX9gL_k.js";
1
+ import { U as e, a2 as Kt, a3 as zt, a4 as Gt, a5 as Yt, a6 as Fe, a7 as Jt, a8 as ke, T as He, a9 as Xe, aa as Ct, ab as O, ac as x, d as Te, N as R, w as M, ad as $e, C as ne, B as se, ae as Ke, P as B, af as Nt, ag as Wt, ah as Qt, ai as Zt, aj as et, ak as Xt, m as en, i as tn, s as ft, a as nn, u as Me } from "./app-B_zMegJc.js";
2
2
  import { useCoreStore as we } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as rn } from "@feedmepos/ui-library";
4
- import { _ as P } from "./lodash-DZbYS5Vn.js";
5
- import { defineComponent as sn, ref as Ge, computed as Ie, resolveComponent as xe, openBlock as W, createBlock as on, withCtx as oe, createVNode as ae, createElementVNode as w, createElementBlock as ue, Fragment as Le, createCommentVNode as Ue, createTextVNode as Q, toDisplayString as V, renderList as an, unref as It, h as un } from "vue";
6
- import { u as dn } from "./feature-gkhmly57.js";
4
+ import { _ as P } from "./lodash-U9ycVPlv.js";
5
+ import { defineComponent as sn, ref as ze, computed as Ie, resolveComponent as xe, openBlock as W, createBlock as on, withCtx as oe, createVNode as ae, createElementVNode as w, createElementBlock as ue, Fragment as Le, createCommentVNode as Ue, createTextVNode as Q, toDisplayString as V, renderList as an, unref as It, h as un } from "vue";
6
+ import { u as dn } from "./feature-Do41WWzx.js";
7
7
  var cn = Object.defineProperty, g = (s, u) => cn(s, "name", { value: u, configurable: !0 }), Ce = "MYR";
8
8
  e.enum([
9
9
  "custbody_fm_do_id",
@@ -20,11 +20,11 @@ e.enum([
20
20
  /// delivery order item id
21
21
  "custcol_fm_line_id"
22
22
  ]);
23
- var ze;
23
+ var Ge;
24
24
  (function(s) {
25
25
  s[s.Create = 0] = "Create", s[s.Set = 1] = "Set", s[s.Unset = 2] = "Unset", s[s.Change = 3] = "Change";
26
- })(ze || (ze = {}));
27
- e.nativeEnum(ze);
26
+ })(Ge || (Ge = {}));
27
+ e.nativeEnum(Ge);
28
28
  e.enum([
29
29
  "TrnfrOrd",
30
30
  "PurchOrd"
@@ -344,7 +344,7 @@ var Ne;
344
344
  (function(s) {
345
345
  s.A = "Pending Supervisor Approval", s.B = "Approved by Supervisor/Pending Receipt", s.C = "Rejected", s.D = "Partially Received", s.E = "Pending Billing/Partially Received", s.F = "Approved by Supervisor/Pending Bill", s.G = "Fully Billed", s.H = "Closed";
346
346
  })(Ne || (Ne = {}));
347
- var Z = e.nativeEnum(Ne), En = e.object({
347
+ var X = e.nativeEnum(Ne), En = e.object({
348
348
  amount: e.number().nullish(),
349
349
  custcol_fm_line_id: e.string().nullish(),
350
350
  item: e.object({
@@ -487,8 +487,8 @@ e.object({
487
487
  })
488
488
  });
489
489
  var At = Kt.extend({
490
- nsConfig: Gt
491
- }), Mt = zt.omit({
490
+ nsConfig: zt
491
+ }), Mt = Gt.omit({
492
492
  measurements: !0
493
493
  }).extend({
494
494
  nsConfig: Yt,
@@ -1781,18 +1781,18 @@ function wt(s) {
1781
1781
  g(wt, "validateTransferOrderStatusByKey");
1782
1782
  function Rt(s) {
1783
1783
  switch (Ne[s.id]) {
1784
- case Z.enum.A:
1784
+ case X.enum.A:
1785
1785
  return B.Enum.PROCESSING;
1786
- case Z.enum.C:
1786
+ case X.enum.C:
1787
1787
  return B.Enum.REJECT;
1788
- case Z.enum.B:
1789
- case Z.enum.D:
1790
- case Z.enum.E:
1788
+ case X.enum.B:
1789
+ case X.enum.D:
1790
+ case X.enum.E:
1791
1791
  return B.Enum.RECEIVING;
1792
- case Z.enum.F:
1793
- case Z.enum.G:
1792
+ case X.enum.F:
1793
+ case X.enum.G:
1794
1794
  return B.Enum.COMPLETE;
1795
- case Z.enum.H:
1795
+ case X.enum.H:
1796
1796
  return B.Enum.CLOSE;
1797
1797
  }
1798
1798
  throw new Error(`Invalid NetSuite Purchase Order status with ${s.id}`);
@@ -1942,11 +1942,11 @@ var _t;
1942
1942
  country: ((ut = n.doc.profile.address) == null ? void 0 : ut.country) || "",
1943
1943
  postcode: ((dt = n.doc.profile.address) == null ? void 0 : dt.postcode) || ""
1944
1944
  }
1945
- }, E = (mt = (lt = (ct = I.options) == null ? void 0 : ct.netSuite) == null ? void 0 : lt.additionalInfo) == null ? void 0 : mt.reduce((j, z) => {
1946
- const ge = z.compute(r, z.extraParams);
1945
+ }, E = (mt = (lt = (ct = I.options) == null ? void 0 : ct.netSuite) == null ? void 0 : lt.additionalInfo) == null ? void 0 : mt.reduce((j, G) => {
1946
+ const ge = G.compute(r, G.extraParams);
1947
1947
  return {
1948
1948
  ...j,
1949
- [z.fieldId]: ge
1949
+ [G.fieldId]: ge
1950
1950
  };
1951
1951
  }, {}), _ = {
1952
1952
  id: i.id,
@@ -1959,17 +1959,17 @@ var _t;
1959
1959
  ...E
1960
1960
  }
1961
1961
  }, S = m.map((j) => {
1962
- const z = l[j.id];
1963
- return Je.FromNetSuite.transform(I, z, j);
1962
+ const G = l[j.id];
1963
+ return Je.FromNetSuite.transform(I, G, j);
1964
1964
  }), b = f.map((j) => {
1965
- const z = a[j.id];
1966
- return je.FromNetSuite.transform(I, z, j);
1965
+ const G = a[j.id];
1966
+ return je.FromNetSuite.transform(I, G, j);
1967
1967
  }), h = i.item.items.map((j) => {
1968
- const z = o[j.line].sku, ge = o[j.line].measurement;
1968
+ const G = o[j.line].sku, ge = o[j.line].measurement;
1969
1969
  return ie.FromNetSuite.toPurchaseOrderItem({
1970
1970
  currency: i.currency.refName,
1971
1971
  nsOrderItem: j,
1972
- sku: z,
1972
+ sku: G,
1973
1973
  glImpactCost: [],
1974
1974
  measurement: ge,
1975
1975
  context: I
@@ -1993,8 +1993,8 @@ var _t;
1993
1993
  id: i.custbody_fm_po_request_id,
1994
1994
  adjustmentIds: []
1995
1995
  } : void 0
1996
- }, { processedAt: me, rejectedAt: Pe } = Ft(i.createdDate, i.orderStatus.id, p ?? []), ve = S.reduce((j, z) => {
1997
- const ge = new Date(z.createdAt);
1996
+ }, { processedAt: me, rejectedAt: Pe } = Ft(i.createdDate, i.orderStatus.id, p ?? []), ve = S.reduce((j, G) => {
1997
+ const ge = new Date(G.createdAt);
1998
1998
  return j ? ge.getTime() < j.getTime() ? ge : j : ge;
1999
1999
  }, null);
2000
2000
  return {
@@ -2074,7 +2074,7 @@ g(xt, "transformPreparingShipmentMilestoneFromNetSuite");
2074
2074
  var bt;
2075
2075
  (function(s) {
2076
2076
  (function(u) {
2077
- function d({ locationDb: n, setting: t, purchaseOrder: i, status: o = Z.enum.A, overrideItemCost: m = !0, customItemAttributes: l, customFields: f }) {
2077
+ function d({ locationDb: n, setting: t, purchaseOrder: i, status: o = X.enum.A, overrideItemCost: m = !0, customItemAttributes: l, customFields: f }) {
2078
2078
  const { netSuiteFromId: a, netSuiteToId: I } = Qe(t.locations, t.vendors, n, i.supplier._id), p = i.items.map((y) => {
2079
2079
  const E = t.items.find((_) => _.id === y.sku._id);
2080
2080
  return ie.ToNetSuite.toCreateDto({
@@ -2147,7 +2147,7 @@ var bt;
2147
2147
  function r() {
2148
2148
  return {
2149
2149
  orderStatus: {
2150
- id: We(Z.enum.H)
2150
+ id: We(X.enum.H)
2151
2151
  }
2152
2152
  };
2153
2153
  }
@@ -2236,7 +2236,7 @@ function Qe(s, u, d, c) {
2236
2236
  };
2237
2237
  }
2238
2238
  g(Qe, "locationMapper");
2239
- var Xe;
2239
+ var Ze;
2240
2240
  (function(s) {
2241
2241
  (function(u) {
2242
2242
  function d(c) {
@@ -2261,7 +2261,7 @@ var Xe;
2261
2261
  }
2262
2262
  g(d, "transform"), u.transform = d;
2263
2263
  })(s.FromNetsuite || (s.FromNetsuite = {}));
2264
- })(Xe || (Xe = {}));
2264
+ })(Ze || (Ze = {}));
2265
2265
  var St;
2266
2266
  (function(s) {
2267
2267
  (function(u) {
@@ -2283,7 +2283,7 @@ var St;
2283
2283
  i.name = `${c.name} (${a.unitName})`, i.abbrev = a.abbreviation, o = String(a.internalId);
2284
2284
  continue;
2285
2285
  }
2286
- const I = Xe.FromNetsuite.transform(a);
2286
+ const I = Ze.FromNetsuite.transform(a);
2287
2287
  l.push(I), m.push(I.nsConfig);
2288
2288
  }
2289
2289
  if (i.measurements = l, o === void 0)
@@ -3555,7 +3555,7 @@ var Hn = 'Record [$] item on line [$], field "$" changed from "$" to "$"', Dt =
3555
3555
  };
3556
3556
  function jt(s, u, d) {
3557
3557
  var i, o, m, l, f, a, I;
3558
- const c = Object.keys(Xt.shape), r = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
3558
+ const c = Object.keys(Zt.shape), r = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
3559
3559
  for (const p of s) {
3560
3560
  const y = $((i = p.netSuite) == null ? void 0 : i.id), E = $(p.id);
3561
3561
  if (y) {
@@ -3708,7 +3708,7 @@ function q(s, u, d, c, r) {
3708
3708
  return typeof c == "object" && (n = JSON.stringify(c), t = JSON.stringify(r)), `${s} ${u} field ${d} changed from "${n}" to "${t}"`;
3709
3709
  }
3710
3710
  g(q, "generateLogMessage");
3711
- function Gn(s, u, d, c = !1) {
3711
+ function zn(s, u, d, c = !1) {
3712
3712
  var n, t;
3713
3713
  const r = [];
3714
3714
  if (u || r.push({
@@ -3770,7 +3770,7 @@ function Gn(s, u, d, c = !1) {
3770
3770
  }
3771
3771
  }
3772
3772
  if (d) {
3773
- const i = Object.keys(Zt.shape);
3773
+ const i = Object.keys(Xt.shape);
3774
3774
  for (const o of i) {
3775
3775
  if (o === "_id")
3776
3776
  continue;
@@ -3794,8 +3794,8 @@ function Gn(s, u, d, c = !1) {
3794
3794
  }
3795
3795
  return r;
3796
3796
  }
3797
- g(Gn, "detectTransferOrderConflicts");
3798
- function zn(s, u, d, c, r) {
3797
+ g(zn, "detectTransferOrderConflicts");
3798
+ function Gn(s, u, d, c, r) {
3799
3799
  if (s.length === 0)
3800
3800
  throw new Error("No order lines found");
3801
3801
  let n = c || (r == null ? void 0 : r.purchaseOrder), t = r;
@@ -3876,7 +3876,7 @@ function zn(s, u, d, c, r) {
3876
3876
  purchaseOrderRequest: t
3877
3877
  };
3878
3878
  }
3879
- g(zn, "resolveTransferOrderConflicts");
3879
+ g(Gn, "resolveTransferOrderConflicts");
3880
3880
  e.object({
3881
3881
  lineItem: He.nullish(),
3882
3882
  existinglineItem: He.nullish(),
@@ -4104,7 +4104,7 @@ function qt(s, u) {
4104
4104
  return d;
4105
4105
  }
4106
4106
  g(qt, "resolveUnitOfMeasurementConflicts");
4107
- function Xn(s, u, d) {
4107
+ function Zn(s, u, d) {
4108
4108
  let c = d;
4109
4109
  const r = qt((d == null ? void 0 : d.measurements) || u.measurements, s);
4110
4110
  for (const n of s)
@@ -4132,12 +4132,12 @@ function Xn(s, u, d) {
4132
4132
  measurements: r
4133
4133
  };
4134
4134
  }
4135
- g(Xn, "resolveUnitTypeConflicts");
4135
+ g(Zn, "resolveUnitTypeConflicts");
4136
4136
  var be;
4137
4137
  (function(s) {
4138
4138
  s.PURCHASE_ORDER_CREATED = "PURCHASE_ORDER_CREATED", s.PURCHASE_ORDER_UPDATED = "PURCHASE_ORDER_UPDATED";
4139
4139
  })(be || (be = {}));
4140
- function Zn(s, u) {
4140
+ function Xn(s, u) {
4141
4141
  var c;
4142
4142
  const d = [];
4143
4143
  if (u || d.push({
@@ -4198,7 +4198,7 @@ function Zn(s, u) {
4198
4198
  }
4199
4199
  return d;
4200
4200
  }
4201
- g(Zn, "detectInventoryTransferConflicts");
4201
+ g(Xn, "detectInventoryTransferConflicts");
4202
4202
  function ei(s, u, d, c) {
4203
4203
  if (s.length === 0)
4204
4204
  throw new Error("No order lines found");
@@ -4264,7 +4264,7 @@ var ti = Fe.pick({
4264
4264
  unit: !0,
4265
4265
  valuation: !0,
4266
4266
  customAttributes: !0
4267
- }), ni = Ze.omit({
4267
+ }), ni = Xe.omit({
4268
4268
  netSuiteId: !0,
4269
4269
  businessId: !0,
4270
4270
  skuCache: !0,
@@ -4387,10 +4387,10 @@ function ai(s, u, d) {
4387
4387
  return r;
4388
4388
  }
4389
4389
  g(ai, "resolveInventoryChildItemConflicts");
4390
- var G;
4390
+ var z;
4391
4391
  (function(s) {
4392
4392
  s.ASSEMBLY_ITEM_CREATED = "ASSEMBLY_ITEM_CREATED", s.ASSEMBLY_ITEM_UPDATED = "ASSEMBLY_ITEM_UPDATED", s.ASSEMBLY_ITEM_DELETED = "ASSEMBLY_ITEM_DELETED", s.ASSEMBLY_ITEM_SKU_UPDATED = "ASSEMBLY_ITEM_SKU_UPDATED";
4393
- })(G || (G = {}));
4393
+ })(z || (z = {}));
4394
4394
  var ui = Fe.pick({
4395
4395
  code: !0,
4396
4396
  name: !0,
@@ -4400,7 +4400,7 @@ var ui = Fe.pick({
4400
4400
  unit: !0,
4401
4401
  valuation: !0,
4402
4402
  customAttributes: !0
4403
- }), di = Ze.omit({
4403
+ }), di = Xe.omit({
4404
4404
  netSuiteId: !0,
4405
4405
  businessId: !0,
4406
4406
  skuCache: !0,
@@ -4418,7 +4418,7 @@ function li(s) {
4418
4418
  throw new Error("[detectAssemblyChildItemConflicts] only supports Assembly child items");
4419
4419
  if (!c)
4420
4420
  return u.push({
4421
- type: G.ASSEMBLY_ITEM_CREATED,
4421
+ type: z.ASSEMBLY_ITEM_CREATED,
4422
4422
  message: `Assembly Child Item [${d.netSuiteId}] config doesn't exist`,
4423
4423
  data: d
4424
4424
  }), u;
@@ -4426,7 +4426,7 @@ function li(s) {
4426
4426
  for (const n of r) {
4427
4427
  const t = d[n] ?? null, i = c[n] ?? null;
4428
4428
  P.isEqual(t, i) || u.push({
4429
- type: G.ASSEMBLY_ITEM_UPDATED,
4429
+ type: z.ASSEMBLY_ITEM_UPDATED,
4430
4430
  message: q("Assembly Child Item", d.netSuiteId, n, i, t),
4431
4431
  data: {
4432
4432
  field: n,
@@ -4444,7 +4444,7 @@ function mi(s) {
4444
4444
  throw new Error("[detectAssemblyParentItemConflicts] only supports Assembly parent items");
4445
4445
  if (!c)
4446
4446
  return u.push({
4447
- type: G.ASSEMBLY_ITEM_CREATED,
4447
+ type: z.ASSEMBLY_ITEM_CREATED,
4448
4448
  message: `Assembly Parent Item [${d.netSuiteId}] config doesn't exist`,
4449
4449
  data: d
4450
4450
  }), u;
@@ -4452,7 +4452,7 @@ function mi(s) {
4452
4452
  for (const t of r) {
4453
4453
  const i = d[t] ?? null, o = c[t] ?? null;
4454
4454
  P.isEqual(i, o) || u.push({
4455
- type: G.ASSEMBLY_ITEM_UPDATED,
4455
+ type: z.ASSEMBLY_ITEM_UPDATED,
4456
4456
  message: q("Assembly Parent Item", d.netSuiteId, t, o, i),
4457
4457
  data: {
4458
4458
  field: t,
@@ -4465,7 +4465,7 @@ function mi(s) {
4465
4465
  for (const t of n) {
4466
4466
  const i = d.skuCache[t] ?? null, o = c.skuCache[t] ?? null;
4467
4467
  P.isEqual(i, o) || u.push({
4468
- type: G.ASSEMBLY_ITEM_SKU_UPDATED,
4468
+ type: z.ASSEMBLY_ITEM_SKU_UPDATED,
4469
4469
  message: q("Assembly Parent Item", d.netSuiteId, t, o, i),
4470
4470
  data: {
4471
4471
  field: t,
@@ -4480,17 +4480,17 @@ g(mi, "detectAssemblyParentItemConflicts");
4480
4480
  function fi(s, u, d) {
4481
4481
  if (u.itemType !== R.Enum.Assembly)
4482
4482
  throw new Error("[resolveAssemblyParentItemConflicts] only supports Assembly parent items");
4483
- if (s.some((n) => n.type === G.ASSEMBLY_ITEM_CREATED))
4483
+ if (s.some((n) => n.type === z.ASSEMBLY_ITEM_CREATED))
4484
4484
  return u;
4485
4485
  let r = d;
4486
4486
  for (const n of s)
4487
- if (n.type === G.ASSEMBLY_ITEM_UPDATED) {
4487
+ if (n.type === z.ASSEMBLY_ITEM_UPDATED) {
4488
4488
  const t = n.data.field;
4489
4489
  r = {
4490
4490
  ...r,
4491
4491
  [t]: n.data.incomingValue
4492
4492
  };
4493
- } else if (n.type === G.ASSEMBLY_ITEM_SKU_UPDATED) {
4493
+ } else if (n.type === z.ASSEMBLY_ITEM_SKU_UPDATED) {
4494
4494
  const t = n.data.field;
4495
4495
  r = {
4496
4496
  ...r,
@@ -4509,11 +4509,11 @@ g(fi, "resolveAssemblyParentItemConflicts");
4509
4509
  function Ii(s, u, d) {
4510
4510
  if (u.itemType !== R.Enum.Assembly)
4511
4511
  throw new Error("[resolveAssemblyChildItemConflicts] only supports Assembly child items");
4512
- if (s.some((n) => n.type === G.ASSEMBLY_ITEM_CREATED))
4512
+ if (s.some((n) => n.type === z.ASSEMBLY_ITEM_CREATED))
4513
4513
  return u;
4514
4514
  let r = d;
4515
4515
  for (const n of s)
4516
- if (n.type === G.ASSEMBLY_ITEM_UPDATED) {
4516
+ if (n.type === z.ASSEMBLY_ITEM_UPDATED) {
4517
4517
  const t = n.data.field;
4518
4518
  r = {
4519
4519
  ...r,
@@ -4536,7 +4536,7 @@ var pi = Fe.pick({
4536
4536
  unit: !0,
4537
4537
  valuation: !0,
4538
4538
  customAttributes: !0
4539
- }), yi = Ze.omit({
4539
+ }), yi = Xe.omit({
4540
4540
  netSuiteId: !0,
4541
4541
  businessId: !0,
4542
4542
  skuCache: !0,
@@ -4900,11 +4900,11 @@ const de = en((s, u) => {
4900
4900
  },
4901
4901
  emits: ["update:modelValue"],
4902
4902
  setup(s, { emit: u }) {
4903
- const d = s, c = u, r = Ge(!1), n = Ie(() => d.sku._id ? i.customFieldOptions[d.sku._id] ?? [] : []), t = Ge({
4903
+ const d = s, c = u, r = ze(!1), n = Ie(() => d.sku._id ? i.customFieldOptions[d.sku._id] ?? [] : []), t = ze({
4904
4904
  code: "",
4905
4905
  name: "",
4906
4906
  childName: ""
4907
- }), i = zi(), o = we(), m = Ie(() => {
4907
+ }), i = Gi(), o = we(), m = Ie(() => {
4908
4908
  var a;
4909
4909
  const f = `business_${((a = o.currentBusiness.value) == null ? void 0 : a._id) ?? ""}`;
4910
4910
  return Be[f].code;
@@ -5077,7 +5077,7 @@ const de = en((s, u) => {
5077
5077
  name: "name"
5078
5078
  }
5079
5079
  };
5080
- function Gi() {
5080
+ function zi() {
5081
5081
  return {
5082
5082
  setting: {
5083
5083
  _id: "",
@@ -5098,8 +5098,8 @@ function Gi() {
5098
5098
  itemReplicas: []
5099
5099
  };
5100
5100
  }
5101
- const T = Ge(Gi());
5102
- function zi() {
5101
+ const T = ze(zi());
5102
+ function Gi() {
5103
5103
  const s = nn(), u = Ie(() => T.value.setting.items.groupBy("netSuiteId", (i) => i.id)), d = Ie(() => T.value.setting.units.flatMap((i) => i.measurements).groupBy("netSuiteId", (i) => i.id)), c = Ie(() => T.value.setting.items.groupBy((i) => i.id)), r = Ie(
5104
5104
  () => T.value.setting.units.groupBy(
5105
5105
  (i) => i.netSuiteId,
@@ -5244,7 +5244,7 @@ function zi() {
5244
5244
  name: "",
5245
5245
  fullName: ""
5246
5246
  };
5247
- const { flat: o } = X(T.value.setting.subsidiaries), m = o.find((l) => l.id === i);
5247
+ const { flat: o } = Z(T.value.setting.subsidiaries), m = o.find((l) => l.id === i);
5248
5248
  return {
5249
5249
  id: m == null ? void 0 : m.id,
5250
5250
  name: (m == null ? void 0 : m.name) || "",
@@ -5259,7 +5259,7 @@ function zi() {
5259
5259
  name: "",
5260
5260
  fullName: ""
5261
5261
  };
5262
- const o = ((f = T.value.setting.locations.find((a) => a.netSuiteId === i)) == null ? void 0 : f.subsidiaryId) ?? null, { flat: m } = X(T.value.setting.subsidiaries), l = m.find((a) => a.id === o);
5262
+ const o = ((f = T.value.setting.locations.find((a) => a.netSuiteId === i)) == null ? void 0 : f.subsidiaryId) ?? null, { flat: m } = Z(T.value.setting.subsidiaries), l = m.find((a) => a.id === o);
5263
5263
  return {
5264
5264
  id: l == null ? void 0 : l.id,
5265
5265
  name: (l == null ? void 0 : l.name) || "",
@@ -5270,7 +5270,7 @@ function zi() {
5270
5270
  var I;
5271
5271
  const i = Me(), o = i.currentLocation.doc._id, m = i.currentLocation.type, l = ((I = T.value.setting.locations.find(
5272
5272
  (p) => p.id === o && p.type == m
5273
- )) == null ? void 0 : I.subsidiaryId) ?? null, { flat: f } = X(T.value.setting.subsidiaries), a = f.find((p) => p.id === l);
5273
+ )) == null ? void 0 : I.subsidiaryId) ?? null, { flat: f } = Z(T.value.setting.subsidiaries), a = f.find((p) => p.id === l);
5274
5274
  return {
5275
5275
  id: a == null ? void 0 : a.id,
5276
5276
  name: (a == null ? void 0 : a.name) || "",
@@ -5279,7 +5279,7 @@ function zi() {
5279
5279
  },
5280
5280
  currentVendorSubsidiary(i) {
5281
5281
  var f;
5282
- const o = ((f = T.value.setting.vendors.find((a) => a.id === i)) == null ? void 0 : f.subsidiaryId) ?? null, { flat: m } = X(T.value.setting.subsidiaries), l = m.find((a) => a.id === o);
5282
+ const o = ((f = T.value.setting.vendors.find((a) => a.id === i)) == null ? void 0 : f.subsidiaryId) ?? null, { flat: m } = Z(T.value.setting.subsidiaries), l = m.find((a) => a.id === o);
5283
5283
  return {
5284
5284
  id: l == null ? void 0 : l.id,
5285
5285
  name: (l == null ? void 0 : l.name) || "",
@@ -5287,7 +5287,7 @@ function zi() {
5287
5287
  };
5288
5288
  },
5289
5289
  get subsidiaryOptions() {
5290
- const { flat: i } = X(T.value.setting.subsidiaries);
5290
+ const { flat: i } = Z(T.value.setting.subsidiaries);
5291
5291
  return i.map((o) => ({
5292
5292
  label: `${"   ".repeat(o.depth)}${o.name}`,
5293
5293
  value: {
@@ -5297,7 +5297,7 @@ function zi() {
5297
5297
  }));
5298
5298
  },
5299
5299
  getBusinessSubsidiaryTree() {
5300
- const { tree: i } = X(
5300
+ const { tree: i } = Z(
5301
5301
  T.value.setting.subsidiaries,
5302
5302
  T.value.setting.subsidiaryId
5303
5303
  );
@@ -5306,7 +5306,7 @@ function zi() {
5306
5306
  getBusinessSubsidiaryPath() {
5307
5307
  if (!T.value.setting.subsidiaryId)
5308
5308
  return [];
5309
- const { flat: i } = X(T.value.setting.subsidiaries), o = [];
5309
+ const { flat: i } = Z(T.value.setting.subsidiaries), o = [];
5310
5310
  let m = T.value.setting.subsidiaryId;
5311
5311
  for (; m; ) {
5312
5312
  o.unshift(m);
@@ -5316,7 +5316,7 @@ function zi() {
5316
5316
  return o;
5317
5317
  },
5318
5318
  getAvailableItems(i) {
5319
- const { available: o, flatMapping: m } = X(
5319
+ const { available: o, flatMapping: m } = Z(
5320
5320
  T.value.setting.subsidiaries,
5321
5321
  i
5322
5322
  );
@@ -5328,7 +5328,7 @@ function zi() {
5328
5328
  const m = T.value.setting.items.find((a) => a.id === i);
5329
5329
  if (!m)
5330
5330
  return [];
5331
- const { available: l, flatMapping: f } = X(
5331
+ const { available: l, flatMapping: f } = Z(
5332
5332
  T.value.setting.subsidiaries,
5333
5333
  o
5334
5334
  );
@@ -5351,7 +5351,7 @@ function zi() {
5351
5351
  const m = await i.readSetting();
5352
5352
  if (m) {
5353
5353
  if (this.state.setting = m, (o = T.value.setting.subsidiaries) != null && o.length) {
5354
- const { flat: f, tree: a } = X(T.value.setting.subsidiaries);
5354
+ const { flat: f, tree: a } = Z(T.value.setting.subsidiaries);
5355
5355
  for (const p of m.vendors) {
5356
5356
  const y = f.find((E) => E.id === p.subsidiaryId);
5357
5357
  this.state.vendorSubsidiary[p.id] = (y == null ? void 0 : y.fullName) || "";
@@ -5491,7 +5491,7 @@ function Ht(s, u, d) {
5491
5491
  return { ...c, children: n, isAssigned: r };
5492
5492
  }).filter(Boolean);
5493
5493
  }
5494
- function X(s, u) {
5494
+ function Z(s, u) {
5495
5495
  const d = [], c = [];
5496
5496
  function r(o, m, l = !1) {
5497
5497
  return s.filter((a) => a.parentId === m).map((a) => ((l || a.id === u || !u) && d.push(a.id), {
@@ -5588,8 +5588,8 @@ const Ji = {
5588
5588
  }
5589
5589
  };
5590
5590
  export {
5591
- ze as S,
5591
+ Ge as S,
5592
5592
  Ki as _,
5593
5593
  de as a,
5594
- zi as u
5594
+ Gi as u
5595
5595
  };
@@ -1,6 +1,6 @@
1
- import { A as o } from "./app-SnX9gL_k.js";
2
- import { F as l } from "./decimal-C-2MQYNP.js";
3
- import "./dayjs.min-JnfBpNSN.js";
1
+ import { w as o } from "./app-B_zMegJc.js";
2
+ import { F as l } from "./decimal-e6OK2jkR.js";
3
+ import "./dayjs.min-Dl26OaXo.js";
4
4
  function g(n, t) {
5
5
  return o.convertPrecision({
6
6
  value: n,
@@ -13,10 +13,10 @@ function A(n, t) {
13
13
  function j(n, t) {
14
14
  return o.add([n, t]);
15
15
  }
16
- function P(n, t) {
16
+ function w(n, t) {
17
17
  return o.multiply([n, t]);
18
18
  }
19
- function w(n, t) {
19
+ function P(n, t) {
20
20
  return o.multiply([n, t]);
21
21
  }
22
22
  function d(n, t) {
@@ -122,11 +122,11 @@ export {
122
122
  c as b,
123
123
  m as c,
124
124
  M as d,
125
- w as e,
125
+ P as e,
126
126
  a as f,
127
127
  D as g,
128
128
  y as h,
129
- P as i,
129
+ w as i,
130
130
  j,
131
131
  g as k,
132
132
  A as l,
@@ -1,4 +1,4 @@
1
- import { p as qn, k as Wn, C as zn } from "./app-SnX9gL_k.js";
1
+ import { m as qn, i as Wn, y as zn } from "./app-B_zMegJc.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 { p as s } from "./app-SnX9gL_k.js";
1
+ import { m as s } from "./app-B_zMegJc.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 { G as p } from "./app-SnX9gL_k.js";
1
+ import { B as p } from "./app-B_zMegJc.js";
2
2
  function l(s) {
3
3
  return Math.floor(s.getTime() / 1e3) * 1e3;
4
4
  }
@@ -1,4 +1,5 @@
1
1
  export declare enum RouteName {
2
+ LOADING = "DEFAULT",
2
3
  INGREDIENTS = "INGREDIENTS",
3
4
  INGREDIENT_GROUP = "INGREDIENT_GROUP",
4
5
  RECIPE = "RECIPE",
@@ -1,5 +1,5 @@
1
- import { a as u, g as d, c as f, b as m } from "./number-gRrApZRj.js";
2
- import { b, c as p } from "./date2-CGqqJOqr.js";
1
+ import { a as u, g as d, c as f, b as m } from "./number-iJAzDfmj.js";
2
+ import { b, c as p } from "./date2-BMCS_Dsc.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-V4Oy4QHQ.js";
2
- import { a as s, U as p } from "./app-SnX9gL_k.js";
1
+ import { u as i } from "./stock-Cx1BwdWs.js";
2
+ import { a as s, O as p } from "./app-B_zMegJc.js";
3
3
  import { ref as k, computed as B } from "vue";
4
- import { c as d } from "./number-gRrApZRj.js";
4
+ import { c as d } from "./number-iJAzDfmj.js";
5
5
  function m() {
6
6
  return {
7
7
  stockBalance: {
@@ -1,4 +1,4 @@
1
- import { p as m, u as $ } from "./app-SnX9gL_k.js";
1
+ import { m, u as $ } from "./app-B_zMegJc.js";
2
2
  import { useCoreStore as B } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as k } from "@feedmepos/ui-library";
4
4
  const N = m((o, a) => {
@@ -1,9 +1,9 @@
1
- import { p as b, u, o as v, q as w, s as $ } from "./app-SnX9gL_k.js";
2
- import { u as S } from "./feature-gkhmly57.js";
1
+ import { m as b, u, l as v, n as w, o as $ } from "./app-B_zMegJc.js";
2
+ import { u as S } from "./feature-Do41WWzx.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";
6
- const n = b((a, s) => {
6
+ const a = b((n, s) => {
7
7
  function i() {
8
8
  var o;
9
9
  const t = c(), r = u(), p = S().businessSupplierOnly, m = `business_${((o = t.currentBusiness.value) == null ? void 0 : o._id) ?? ""}`, y = r.currentLocation.dbName;
@@ -11,53 +11,53 @@ const n = b((a, s) => {
11
11
  }
12
12
  return {
13
13
  async readSuppliers() {
14
- const t = i(), r = `${a.inventoryBackendUrl}/${t}/supplier`;
14
+ const t = i(), r = `${n.inventoryBackendUrl}/${t}/supplier`;
15
15
  return await s.get(r);
16
16
  },
17
17
  async readLocationSuppliers() {
18
- const r = u().currentLocation.dbName, e = `${a.inventoryBackendUrl}/${r}/supplier`;
18
+ const r = u().currentLocation.dbName, e = `${n.inventoryBackendUrl}/${r}/supplier`;
19
19
  return await s.get(e);
20
20
  },
21
21
  async readBusinessSuppliers() {
22
22
  var p;
23
- const r = `business_${((p = c().currentBusiness.value) == null ? void 0 : p._id) ?? ""}`, e = `${a.inventoryBackendUrl}/${r}/supplier`;
23
+ const r = `business_${((p = c().currentBusiness.value) == null ? void 0 : p._id) ?? ""}`, e = `${n.inventoryBackendUrl}/${r}/supplier`;
24
24
  return await s.get(e);
25
25
  },
26
26
  async createSupplier(t) {
27
- const r = i(), e = `${a.inventoryBackendUrl}/${r}/supplier`;
27
+ const r = i(), e = `${n.inventoryBackendUrl}/${r}/supplier`;
28
28
  return await s.post(e, t);
29
29
  },
30
30
  async importSuppliers(t) {
31
- const r = i(), e = `${a.inventoryBackendUrl}/${r}/supplier/import`;
31
+ const r = i(), e = `${n.inventoryBackendUrl}/${r}/supplier/import`;
32
32
  return await s.post(e, t);
33
33
  },
34
34
  async updateSupplier(t) {
35
- const r = i(), e = `${a.inventoryBackendUrl}/${r}/supplier`;
35
+ const r = i(), e = `${n.inventoryBackendUrl}/${r}/supplier`;
36
36
  return await s.put(e, t);
37
37
  },
38
38
  async deleteSupplier(t) {
39
- const r = i(), e = `${a.inventoryBackendUrl}/${r}/supplier`;
39
+ const r = i(), e = `${n.inventoryBackendUrl}/${r}/supplier`;
40
40
  return await s.delete(e, t);
41
41
  }
42
42
  };
43
43
  }), L = f("supplier", () => {
44
- const a = S(), s = l(new Array()), i = l(new Array()), t = d(() => a.businessSupplierOnly ? i.value : [...s.value, ...i.value]), r = d(() => v(t.value, "_id"));
44
+ const n = S(), s = l(new Array()), i = l(new Array()), t = d(() => n.businessSupplierOnly ? i.value : [...s.value, ...i.value]), r = d(() => v(t.value, "_id"));
45
45
  return {
46
46
  async readSuppliers() {
47
- const e = n();
47
+ const e = a();
48
48
  s.value = await e.readLocationSuppliers(), i.value = await e.readBusinessSuppliers();
49
49
  },
50
50
  async createSupplier(e) {
51
- await n().createSupplier(e);
51
+ await a().createSupplier(e);
52
52
  },
53
53
  async updateSupplier(e) {
54
- await n().updateSupplier(e);
54
+ await a().updateSupplier(e);
55
55
  },
56
56
  async deleteSupplier(e) {
57
- await n().deleteSupplier(e);
57
+ await a().deleteSupplier(e);
58
58
  },
59
59
  async importSuppliers(e) {
60
- await n().importSuppliers(e);
60
+ await a().importSuppliers(e);
61
61
  },
62
62
  async init() {
63
63
  const e = w();