@feedmepos/mf-inventory-portal 0.0.23-dev.12 → 0.0.23-dev.14

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 (57) hide show
  1. package/dist/{App-DASBZyvh.js → App-C6g4MWwq.js} +3 -3
  2. package/dist/{ApprovalView-DHF6ZNbm.js → ApprovalView-BK8XFPbW.js} +4 -4
  3. package/dist/{BindingsDialog-D9qKxyAg.js → BindingsDialog-Dyt5XjYv.js} +2 -2
  4. package/dist/{BindingsPicker-CeBoqXz8.js → BindingsPicker-Oc6mY2X8.js} +2 -2
  5. package/dist/{BindingsTable-Dd5xRj10.js → BindingsTable-Bd3XOxR2.js} +4 -4
  6. package/dist/ClosingDraftView-ByE3m27z.js +939 -0
  7. package/dist/{ClosingTemplateView-CSXAdVxc.js → ClosingTemplateView-CMwTAa6I.js} +10 -10
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BST01iWL.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C8Svc7L9.js} +4 -4
  9. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BH2P7EWu.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-6-Um-FOb.js} +2 -2
  10. package/dist/{FmMultiselectDialog-CS4NySsZ.js → FmMultiselectDialog-D8iilrSP.js} +3 -3
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C7jj8lh2.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D5hUkg2Q.js} +2 -2
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-B_bOROW1.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Cd9aCR0V.js} +1 -1
  13. package/dist/{IngredientGroupView-D8YdtFuI.js → IngredientGroupView-D5Y8HnMX.js} +5 -5
  14. package/dist/{IngredientsView-Dwi7AdEC.js → IngredientsView-Bw49qYtR.js} +9 -9
  15. package/dist/{IntegrationView-cRXTwH66.js → IntegrationView-BxaJS_Ic.js} +4 -4
  16. package/dist/{InventoryBindingForm-Bn8LLL7Z.js → InventoryBindingForm-a9nsrEgo.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-jXdc2zeS.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Dj3ykTHY.js} +5 -5
  18. package/dist/{InventoryBindingSummary-eUAU5Z7o.js → InventoryBindingSummary-BdvlBlBa.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DP9gkO9u.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BIFLCYHD.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DjdvK5YG.js → PremiumBadge.vue_vue_type_script_setup_true_lang-gqJ2wFO2.js} +2 -2
  21. package/dist/{PurchaseOrderPrintPreview-RsvtuTgm.js → PurchaseOrderPrintPreview-DsWVxI5o.js} +1 -1
  22. package/dist/{ReceiveRequestView-BVYXX41L.js → ReceiveRequestView-C7I6nYFr.js} +18 -18
  23. package/dist/{RecipeView-BFj61pLR.js → RecipeView-DNf5Pdsx.js} +7 -7
  24. package/dist/{StockView-B8DHNq-I.js → StockView-BvtciIRT.js} +13 -13
  25. package/dist/{SupplierView-DE5glObY.js → SupplierView-Co0xIPuQ.js} +10 -10
  26. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CAR2rHAz.js → TransferDetails.vue_vue_type_script_setup_true_lang-WlrPIph9.js} +321 -320
  27. package/dist/{TransferTemplateView-DaY-24XT.js → TransferTemplateView-BWuxHMCo.js} +14 -14
  28. package/dist/{UnitView-Bqh-DD8a.js → UnitView-DV1gTkKx.js} +5 -5
  29. package/dist/{WarehouseView-KOZF8E0j.js → WarehouseView-1nJhKxZf.js} +4 -4
  30. package/dist/api/netsuite.d.ts +1 -1
  31. package/dist/{app-CCmjyIGj.js → app-BxXrau2Y.js} +8 -8
  32. package/dist/app.js +1 -1
  33. package/dist/{date2-Bts8EH96.js → date2-BiwqC0aG.js} +1 -1
  34. package/dist/{dayjs.min-Bwx_xAqf.js → dayjs.min-BG6ShXQ2.js} +1 -1
  35. package/dist/{decimal-Cw3aj2HA.js → decimal-E0BNizw5.js} +1 -1
  36. package/dist/{defineDeepModel-DF4IooaB.js → defineDeepModel-35Pm_1zc.js} +1 -1
  37. package/dist/{feature-DUVlpk0T.js → feature-DEUGLUcC.js} +1 -1
  38. package/dist/{format-time-from-id-DRL6XFTy.js → format-time-from-id-C-CoKHdr.js} +1 -1
  39. package/dist/{format-unit-display-h-7i16En.js → format-unit-display-BTpv4xQq.js} +8 -8
  40. package/dist/{fuzzy-Csk59ocn.js → fuzzy-DnuAv442.js} +1 -1
  41. package/dist/{index-C49C9tXF.js → index-C-Tfi09A.js} +1 -1
  42. package/dist/{index-BUdfAMv8.js → index-CvuJB9Kj.js} +1 -1
  43. package/dist/{index-rrLxN15a.js → index-DAeQwHBr.js} +1 -1
  44. package/dist/{netsuite-Cgj-Fs7U.js → netsuite-B_j6HAOr.js} +44 -43
  45. package/dist/{rules-CSQd5FJv.js → rules-DQHD3_tG.js} +2 -2
  46. package/dist/{stock-DOndmj1b.js → stock-UdvZOkMj.js} +2 -2
  47. package/dist/stores/integration/netsuite.d.ts +1 -1
  48. package/dist/{supplier-Bv3Jvn8o.js → supplier-DPLyaiL4.js} +1 -1
  49. package/dist/tsconfig.app.tsbuildinfo +1 -1
  50. package/dist/{use-inventory-binding-dialog-C7br2QA4.js → use-inventory-binding-dialog-D5f_LR61.js} +2 -2
  51. package/dist/{use-template-enabled-locations-2-eX5uS542.js → use-template-enabled-locations-2-C7I0IWxW.js} +2 -2
  52. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +6 -2
  53. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
  54. package/dist/{xlsx-wOJHnWy6.js → xlsx-CtEy_Z3G.js} +1 -1
  55. package/dist/{xlsx.util-C4ZYbcNA.js → xlsx.util-CNlpT1T7.js} +1 -1
  56. package/package.json +3 -3
  57. package/dist/ClosingDraftView-TbFoEdiB.js +0 -767
@@ -1,29 +1,30 @@
1
- import { k as N, h as B, a as T, u as S } from "./app-CCmjyIGj.js";
2
- import { useCoreStore as L } from "@feedmepos/mf-common";
3
- import { useSnackbar as $ } from "@feedmepos/ui-library";
4
- import { ref as h, computed as v } from "vue";
5
- const b = N((g, c) => {
6
- const y = L(), m = $();
7
- return c.onError(async (l) => {
8
- if (l instanceof B)
1
+ import { k as N, h as B, a as h, u as S } from "./app-BxXrau2Y.js";
2
+ import { useCoreStore as T } from "@feedmepos/mf-common";
3
+ import { useSnackbar as L } from "@feedmepos/ui-library";
4
+ import { ref as $, computed as v } from "vue";
5
+ const b = N((g, l) => {
6
+ const p = T(), m = L();
7
+ return l.onError(async (c) => {
8
+ if (c instanceof B)
9
9
  throw m == null || m.open({
10
- title: l.title,
11
- message: l.message,
10
+ title: c.title,
11
+ message: c.message,
12
12
  type: "error"
13
- }), l;
13
+ }), c;
14
14
  }), {
15
15
  async readSetting() {
16
16
  var e;
17
- const l = ((e = y.currentBusiness.value) == null ? void 0 : e._id) ?? "", f = `${g.netSuiteBackendUrl}/${l}/settings`;
18
- return await c.get(f);
19
- },
20
- async syncTransferOrder(l, f, e) {
21
- var t;
22
- const i = ((t = y.currentBusiness.value) == null ? void 0 : t._id) ?? "", n = `${g.netSuiteBackendUrl}/${i}/sync/transfer-order`;
23
- return await c.post(n, {
24
- type: l,
25
- id: f,
26
- locationId: e
17
+ const c = ((e = p.currentBusiness.value) == null ? void 0 : e._id) ?? "", f = `${g.netSuiteBackendUrl}/${c}/settings`;
18
+ return await l.get(f);
19
+ },
20
+ async syncTransferOrder(c, f, e, i) {
21
+ var r;
22
+ const n = ((r = p.currentBusiness.value) == null ? void 0 : r._id) ?? "", t = `${g.netSuiteBackendUrl}/${n}/sync/transfer-order`;
23
+ return await l.post(t, {
24
+ type: c,
25
+ locationId: f,
26
+ purchaseOrderId: e,
27
+ purchaseOrderRequestId: i
27
28
  });
28
29
  },
29
30
  urls: g
@@ -46,9 +47,9 @@ function M() {
46
47
  isReady: !1
47
48
  };
48
49
  }
49
- const a = h(M());
50
- function O() {
51
- const g = T(), c = v(() => a.value.setting.items.groupBy("netSuiteId", (e) => e.id)), y = v(() => a.value.setting.units.flatMap((e) => e.measurements).groupBy("netSuiteId", (e) => e.id)), m = v(() => a.value.setting.items.groupBy((e) => e.id)), l = v(
50
+ const a = $(M());
51
+ function w() {
52
+ const g = h(), l = v(() => a.value.setting.items.groupBy("netSuiteId", (e) => e.id)), p = v(() => a.value.setting.units.flatMap((e) => e.measurements).groupBy("netSuiteId", (e) => e.id)), m = v(() => a.value.setting.items.groupBy((e) => e.id)), c = v(
52
53
  () => a.value.setting.units.groupBy(
53
54
  (e) => e.netSuiteId,
54
55
  (e) => g.unitById[e.id]
@@ -58,7 +59,7 @@ function O() {
58
59
  (e) => e.measurements.map((i) => {
59
60
  var n;
60
61
  return {
61
- unit: (n = l.value.get(e.netSuiteId)) == null ? void 0 : n[0],
62
+ unit: (n = c.value.get(e.netSuiteId)) == null ? void 0 : n[0],
62
63
  measurement: i
63
64
  };
64
65
  })
@@ -85,16 +86,16 @@ function O() {
85
86
  return a.value;
86
87
  },
87
88
  get netSuiteItemIdToSkuId() {
88
- return c.value;
89
+ return l.value;
89
90
  },
90
91
  get netSuiteMeasurementIdToMeasurementId() {
91
- return y.value;
92
+ return p.value;
92
93
  },
93
94
  get netSuiteItemBySkuId() {
94
95
  return m.value;
95
96
  },
96
97
  get unitByNetsuiteId() {
97
- return l.value;
98
+ return c.value;
98
99
  },
99
100
  get measurementByNetsuiteId() {
100
101
  return f.value;
@@ -165,9 +166,9 @@ function O() {
165
166
  ), d = a.value.setting.childItems.filter((u) => {
166
167
  let o = u.subsidiaryIds;
167
168
  if (u.includeChildren == !0)
168
- for (const p of u.subsidiaryIds)
169
- o = o.concat(r[p]);
170
- return o = [...new Set(o)], u.parentNetSuiteId === n.netSuiteId && o.some((p) => t.includes(p));
169
+ for (const y of u.subsidiaryIds)
170
+ o = o.concat(r[y]);
171
+ return o = [...new Set(o)], u.parentNetSuiteId === n.netSuiteId && o.some((y) => t.includes(y));
171
172
  }).flatMap((u) => u.unitTypeId);
172
173
  return a.value.setting.units.filter((u) => d.includes(u.netSuiteId)).flatMap((u) => u.measurements).map((u) => u.id);
173
174
  },
@@ -187,9 +188,9 @@ function O() {
187
188
  getVendorSubsidiaryName(e) {
188
189
  return this.state.vendorSubsidiary[e] || "";
189
190
  },
190
- async syncTransferOrder(e, i) {
191
- const n = b(), t = S(), r = t.currentLocation.doc._id, s = t.currentLocation.type;
192
- await n.syncTransferOrder(e, i, `${s}_${r}`);
191
+ async syncTransferOrder(e, i, n) {
192
+ const t = b(), r = S(), s = r.currentLocation.doc._id, d = r.currentLocation.type;
193
+ await t.syncTransferOrder(e, `${d}_${s}`, i, n);
193
194
  },
194
195
  getItemPKTCode(e, i) {
195
196
  const n = m.value.get(e._id);
@@ -205,7 +206,7 @@ function O() {
205
206
  const u = s == null ? void 0 : s.measurements.find((o) => o.id === i);
206
207
  if (u) {
207
208
  const o = a.value.setting.childItems.find(
208
- (p) => p.parentNetSuiteId === d && p.unitTypeId === (s == null ? void 0 : s.netSuiteId) && p.unitOfMeasureId === u.netSuiteId
209
+ (y) => y.parentNetSuiteId === d && y.unitTypeId === (s == null ? void 0 : s.netSuiteId) && y.unitOfMeasureId === u.netSuiteId
209
210
  );
210
211
  o && (o.pktCode && (t = o.pktCode), o.externalId && (t = o.externalId));
211
212
  }
@@ -215,20 +216,20 @@ function O() {
215
216
  }
216
217
  };
217
218
  }
218
- function I(g, c) {
219
- const y = [], m = [];
220
- function l(n, t, r = !1) {
221
- return g.filter((d) => d.parentId === t).map((d) => ((r || d.id === c || !c) && y.push(d.id), {
219
+ function I(g, l) {
220
+ const p = [], m = [];
221
+ function c(n, t, r = !1) {
222
+ return g.filter((d) => d.parentId === t).map((d) => ((r || d.id === l || !l) && p.push(d.id), {
222
223
  id: d.id,
223
224
  name: d.name,
224
225
  country: d.country,
225
226
  currency: d.currency,
226
227
  parentId: d.parentId,
227
228
  depth: n,
228
- children: l(n + 1, d.id, r || d.id === c)
229
+ children: c(n + 1, d.id, r || d.id === l)
229
230
  }));
230
231
  }
231
- const f = l(0, null), e = {};
232
+ const f = c(0, null), e = {};
232
233
  function i(n, t = "") {
233
234
  const r = n.fullName || n.name, s = t ? `${t} : ${r}` : r;
234
235
  m.push({ ...n, fullName: s }), e[n.id] = [n.id];
@@ -237,11 +238,11 @@ function I(g, c) {
237
238
  }
238
239
  return f.forEach((n) => i(n)), {
239
240
  tree: f,
240
- available: y,
241
+ available: p,
241
242
  flat: m,
242
243
  flatMapping: e
243
244
  };
244
245
  }
245
246
  export {
246
- O as u
247
+ w as u
247
248
  };
@@ -1,5 +1,5 @@
1
- import { F as s } from "./index-rrLxN15a.js";
2
- import { c as d, a as b } from "./date2-Bts8EH96.js";
1
+ import { F as s } from "./index-DAeQwHBr.js";
2
+ import { c as d, a as b } from "./date2-BiwqC0aG.js";
3
3
  function j(t, n) {
4
4
  return s.convertPrecision({
5
5
  value: t,
@@ -1,7 +1,7 @@
1
- import { k as l, u as m, a as B } from "./app-CCmjyIGj.js";
1
+ import { k as l, u as m, a as B } from "./app-BxXrau2Y.js";
2
2
  import { useCoreStore as k } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as p } from "@feedmepos/ui-library";
4
- import { g as v } from "./index-rrLxN15a.js";
4
+ import { g as v } from "./index-DAeQwHBr.js";
5
5
  import { ref as y } from "vue";
6
6
  const $ = l((o, t) => {
7
7
  const s = m(), u = k(), c = p();
@@ -168,7 +168,7 @@ export declare function useNetSuiteStore(): {
168
168
  getAvailableMeasurements(skuId: string, subsidiaryId?: string | null): string[];
169
169
  readSetting(): Promise<void>;
170
170
  getVendorSubsidiaryName(supplierId: string): string;
171
- syncTransferOrder(type: string, id: string): Promise<void>;
171
+ syncTransferOrder(type: string, poId: string, porId?: string): Promise<void>;
172
172
  getItemPKTCode(sku: FdoInventorySku, measurementId?: string | null): string | null;
173
173
  };
174
174
  export type FdoNetSuiteSubsidiaryWithChildren = FdoNetSuiteSubsidiary & {
@@ -1,4 +1,4 @@
1
- import { k as m, u, i as y, t as b, v } from "./app-CCmjyIGj.js";
1
+ import { k as m, u, i as y, t as b, v } from "./app-BxXrau2Y.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  import { defineStore as w } from "pinia";
4
4
  import { ref as l, computed as d } from "vue";