@feedmepos/mf-inventory-portal 0.0.23-dev.16 → 0.0.23-dev.18

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 (53) hide show
  1. package/dist/{App-CqcF-fwV.js → App-Dfryh3pQ.js} +3 -3
  2. package/dist/{ApprovalView-vWXFA_eo.js → ApprovalView-CRrJeRCQ.js} +4 -4
  3. package/dist/{BindingsDialog-kvHNCEqw.js → BindingsDialog-Zh8FzTSI.js} +2 -2
  4. package/dist/{BindingsPicker-CCIp6NEE.js → BindingsPicker-BXChBNxv.js} +2 -2
  5. package/dist/{BindingsTable-DXGbeSVU.js → BindingsTable-BXB-X1N3.js} +4 -4
  6. package/dist/{ClosingDraftView-DdWSQS2H.js → ClosingDraftView-ZKdMqDrV.js} +7 -7
  7. package/dist/{ClosingTemplateView-DsCeYCJg.js → ClosingTemplateView-Bj6SiRlA.js} +10 -10
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DtofkHh5.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CZ1NPD07.js} +4 -4
  9. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-dOwGhgfF.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B8RhFmN_.js} +2 -2
  10. package/dist/{FmMultiselectDialog-e6cut2s7.js → FmMultiselectDialog-DWMt9hvV.js} +3 -3
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-B1Hy3B0-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C--mzLIB.js} +2 -2
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CPXMwwjj.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Be_B1iME.js} +1 -1
  13. package/dist/{IngredientGroupView-Ctu1rZDA.js → IngredientGroupView-DCOz2AOB.js} +5 -5
  14. package/dist/{IngredientsView-DeNnObTW.js → IngredientsView-D3ptwZy1.js} +9 -9
  15. package/dist/{IntegrationView-t7CRZcew.js → IntegrationView-BfoCYVHZ.js} +4 -4
  16. package/dist/{InventoryBindingForm-Cjeh1vj_.js → InventoryBindingForm-2Gs2vUtC.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-D5Db_2I_.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-D9Of6ewh.js} +5 -5
  18. package/dist/{InventoryBindingSummary-DPo79YXT.js → InventoryBindingSummary-IUJt469w.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DozwlCld.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BtdmfQRZ.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BKfkxoTE.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C97vZfAO.js} +2 -2
  21. package/dist/{PurchaseOrderPrintPreview-C-iEvLP1.js → PurchaseOrderPrintPreview-BRVCfgd3.js} +1 -1
  22. package/dist/{ReceiveRequestView-D4Cg8TF5.js → ReceiveRequestView-Brh9jtUz.js} +18 -18
  23. package/dist/{RecipeView-ZgONnIvE.js → RecipeView-Br8u4xZZ.js} +7 -7
  24. package/dist/{StockView-OG1jLUa8.js → StockView-B2vBQLJf.js} +13 -13
  25. package/dist/{SupplierView-DSW2dLQP.js → SupplierView-S_qigSL4.js} +10 -10
  26. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DfSqyy-R.js → TransferDetails.vue_vue_type_script_setup_true_lang--DGNx2VJ.js} +9 -9
  27. package/dist/TransferTemplateView-B0_EXehN.js +1275 -0
  28. package/dist/{UnitView-6RkEFIJD.js → UnitView-CR019bWO.js} +5 -5
  29. package/dist/{WarehouseView-Bbci5eAP.js → WarehouseView-BX7K073o.js} +4 -4
  30. package/dist/{app-Iv30TXsA.js → app-BY6TZxqB.js} +8 -8
  31. package/dist/app.js +1 -1
  32. package/dist/{date2-VM6HUtqx.js → date2-C385gf6_.js} +1 -1
  33. package/dist/{dayjs.min-CEM65hHn.js → dayjs.min-CuXsxyJ4.js} +1 -1
  34. package/dist/{decimal-gAHZETIz.js → decimal-DmIrlkyN.js} +1 -1
  35. package/dist/{defineDeepModel-DzTm7URG.js → defineDeepModel-CJEdL37p.js} +1 -1
  36. package/dist/{feature-DN8a_F-i.js → feature-DM4scjOG.js} +1 -1
  37. package/dist/{format-time-from-id-BfbdDiIE.js → format-time-from-id-DmDFxNOY.js} +1 -1
  38. package/dist/{format-unit-display-XHgGLeHY.js → format-unit-display-DnZmCO-i.js} +8 -8
  39. package/dist/{fuzzy-CIEPIox7.js → fuzzy-D2QbaWQl.js} +1 -1
  40. package/dist/{index-Q96zW8J0.js → index-BgM27D6z.js} +1 -1
  41. package/dist/{index-Dv-6Hm_z.js → index-CKCFZ2N2.js} +1 -1
  42. package/dist/{index-DQDMUxyC.js → index-UtLEzrzf.js} +1 -1
  43. package/dist/{netsuite-Bo49EaVh.js → netsuite-CxzWHfIf.js} +51 -48
  44. package/dist/{rules-C0FFlx9A.js → rules-WXcRCM31.js} +2 -2
  45. package/dist/{stock-CMKAuU84.js → stock-BVyJ8TZF.js} +2 -2
  46. package/dist/{supplier-CxAcIU6h.js → supplier-Cg0hV-1Z.js} +1 -1
  47. package/dist/tsconfig.app.tsbuildinfo +1 -1
  48. package/dist/{use-inventory-binding-dialog-GNLNP3f8.js → use-inventory-binding-dialog-C4A0C-q4.js} +2 -2
  49. package/dist/{use-template-enabled-locations-2-DzqBdV2b.js → use-template-enabled-locations-2-ClTvBbS6.js} +2 -2
  50. package/dist/{xlsx-BqvCK2Va.js → xlsx-jlUdZfql.js} +1 -1
  51. package/dist/{xlsx.util-CNeUTGll.js → xlsx.util-C4YF_j8p.js} +1 -1
  52. package/package.json +3 -3
  53. package/dist/TransferTemplateView-TixIybWf.js +0 -1275
@@ -1,27 +1,27 @@
1
- import { k as N, h as B, a as h, u as S } from "./app-Iv30TXsA.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)
1
+ import { k as L, h as $, a as M, u as N } from "./app-BY6TZxqB.js";
2
+ import { useCoreStore as k } from "@feedmepos/mf-common";
3
+ import { useSnackbar as _ } from "@feedmepos/ui-library";
4
+ import { ref as C, computed as S } from "vue";
5
+ const B = L((g, l) => {
6
+ const p = k(), m = _();
7
+ return l.onError(async (o) => {
8
+ if (o instanceof $)
9
9
  throw m == null || m.open({
10
- title: c.title,
11
- message: c.message,
10
+ title: o.title,
11
+ message: o.message,
12
12
  type: "error"
13
- }), c;
13
+ }), o;
14
14
  }), {
15
15
  async readSetting() {
16
16
  var e;
17
- const c = ((e = p.currentBusiness.value) == null ? void 0 : e._id) ?? "", f = `${g.netSuiteBackendUrl}/${c}/settings`;
17
+ const o = ((e = p.currentBusiness.value) == null ? void 0 : e._id) ?? "", f = `${g.netSuiteBackendUrl}/${o}/settings`;
18
18
  return await l.get(f);
19
19
  },
20
- async syncTransferOrder(c, f, e, i) {
20
+ async syncTransferOrder(o, f, e, i) {
21
21
  var r;
22
22
  const n = ((r = p.currentBusiness.value) == null ? void 0 : r._id) ?? "", t = `${g.netSuiteBackendUrl}/${n}/sync/transfer-order`;
23
23
  return await l.post(t, {
24
- type: c,
24
+ type: o,
25
25
  locationId: f,
26
26
  purchaseOrderId: e,
27
27
  purchaseOrderRequestId: i
@@ -30,7 +30,7 @@ const b = N((g, l) => {
30
30
  urls: g
31
31
  };
32
32
  });
33
- function M() {
33
+ function O() {
34
34
  return {
35
35
  setting: {
36
36
  _id: "",
@@ -47,19 +47,19 @@ function M() {
47
47
  isReady: !1
48
48
  };
49
49
  }
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(
50
+ const a = C(O());
51
+ function E() {
52
+ const g = M(), l = S(() => a.value.setting.items.groupBy("netSuiteId", (e) => e.id)), p = S(() => a.value.setting.units.flatMap((e) => e.measurements).groupBy("netSuiteId", (e) => e.id)), m = S(() => a.value.setting.items.groupBy((e) => e.id)), o = S(
53
53
  () => a.value.setting.units.groupBy(
54
54
  (e) => e.netSuiteId,
55
55
  (e) => g.unitById[e.id]
56
56
  )
57
- ), f = v(
57
+ ), f = S(
58
58
  () => a.value.setting.units.flatMap(
59
59
  (e) => e.measurements.map((i) => {
60
60
  var n;
61
61
  return {
62
- unit: (n = c.value.get(e.netSuiteId)) == null ? void 0 : n[0],
62
+ unit: (n = o.value.get(e.netSuiteId)) == null ? void 0 : n[0],
63
63
  measurement: i
64
64
  };
65
65
  })
@@ -80,7 +80,7 @@ function w() {
80
80
  return a.value.setting.enable;
81
81
  },
82
82
  get isBusinessLocation() {
83
- return S().businessLevel;
83
+ return N().businessLevel;
84
84
  },
85
85
  get state() {
86
86
  return a.value;
@@ -95,7 +95,7 @@ function w() {
95
95
  return m.value;
96
96
  },
97
97
  get unitByNetsuiteId() {
98
- return c.value;
98
+ return o.value;
99
99
  },
100
100
  get measurementByNetsuiteId() {
101
101
  return f.value;
@@ -115,7 +115,7 @@ function w() {
115
115
  name: "",
116
116
  fullName: ""
117
117
  };
118
- const i = ((r = a.value.setting.locations.find((s) => s.netSuiteId === e)) == null ? void 0 : r.subsidiaryId) ?? null, { flat: n } = I(a.value.setting.subsidiaries), t = n.find((s) => s.id === i);
118
+ const i = ((r = a.value.setting.locations.find((s) => s.netSuiteId === e)) == null ? void 0 : r.subsidiaryId) ?? null, { flat: n } = y(a.value.setting.subsidiaries), t = n.find((s) => s.id === i);
119
119
  return {
120
120
  id: t == null ? void 0 : t.id,
121
121
  name: (t == null ? void 0 : t.name) || "",
@@ -124,9 +124,9 @@ function w() {
124
124
  },
125
125
  currentLocationSubsidiary() {
126
126
  var d;
127
- const e = S(), i = e.currentLocation.doc._id, n = e.currentLocation.type, t = ((d = a.value.setting.locations.find(
127
+ const e = N(), i = e.currentLocation.doc._id, n = e.currentLocation.type, t = ((d = a.value.setting.locations.find(
128
128
  (u) => u.id === i && u.type == n
129
- )) == null ? void 0 : d.subsidiaryId) ?? null, { flat: r } = I(a.value.setting.subsidiaries), s = r.find((u) => u.id === t);
129
+ )) == null ? void 0 : d.subsidiaryId) ?? null, { flat: r } = y(a.value.setting.subsidiaries), s = r.find((u) => u.id === t);
130
130
  return {
131
131
  id: s == null ? void 0 : s.id,
132
132
  name: (s == null ? void 0 : s.name) || "",
@@ -135,7 +135,7 @@ function w() {
135
135
  },
136
136
  currentVendorSubsidiary(e) {
137
137
  var r;
138
- const i = ((r = a.value.setting.vendors.find((s) => s.id === e)) == null ? void 0 : r.subsidiaryId) ?? null, { flat: n } = I(a.value.setting.subsidiaries), t = n.find((s) => s.id === i);
138
+ const i = ((r = a.value.setting.vendors.find((s) => s.id === e)) == null ? void 0 : r.subsidiaryId) ?? null, { flat: n } = y(a.value.setting.subsidiaries), t = n.find((s) => s.id === i);
139
139
  return {
140
140
  id: t == null ? void 0 : t.id,
141
141
  name: (t == null ? void 0 : t.name) || "",
@@ -143,7 +143,7 @@ function w() {
143
143
  };
144
144
  },
145
145
  get subsidiaryOptions() {
146
- const { flat: e } = I(a.value.setting.subsidiaries);
146
+ const { flat: e } = y(a.value.setting.subsidiaries);
147
147
  return e.map((i) => ({
148
148
  label: `${"   ".repeat(i.depth)}${i.name}`,
149
149
  value: {
@@ -153,31 +153,31 @@ function w() {
153
153
  }));
154
154
  },
155
155
  getAvailableItems(e) {
156
- const { available: i } = I(a.value.setting.subsidiaries, e);
156
+ const { available: i } = y(a.value.setting.subsidiaries, e);
157
157
  return a.value.setting.items.filter((n) => n.subsidiaryIds.some((t) => i.includes(t))).map((n) => n.id);
158
158
  },
159
159
  getAvailableMeasurements(e, i) {
160
160
  const n = a.value.setting.items.find((u) => u.id === e);
161
161
  if (!n)
162
162
  return [];
163
- const { available: t, flatMapping: r } = I(
163
+ const { available: t, flatMapping: r } = y(
164
164
  a.value.setting.subsidiaries,
165
165
  i
166
166
  ), d = a.value.setting.childItems.filter((u) => {
167
- let o = u.subsidiaryIds;
167
+ let c = u.subsidiaryIds;
168
168
  if (u.includeChildren == !0)
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));
169
+ for (const b of u.subsidiaryIds)
170
+ c = c.concat(r[b]);
171
+ return c = [...new Set(c)], u.parentNetSuiteId === n.netSuiteId && c.some((b) => t.includes(b));
172
172
  }).flatMap((u) => u.unitTypeId);
173
173
  return a.value.setting.units.filter((u) => d.includes(u.netSuiteId)).flatMap((u) => u.measurements).map((u) => u.id);
174
174
  },
175
175
  async readSetting() {
176
176
  console.log("netsuite init");
177
- const i = await b().readSetting();
177
+ const i = await B().readSetting();
178
178
  if (i) {
179
179
  this.state.setting = i;
180
- const { flat: n } = I(a.value.setting.subsidiaries);
180
+ const { flat: n } = y(a.value.setting.subsidiaries);
181
181
  for (const t of i.vendors) {
182
182
  const r = n.find((s) => s.id === t.subsidiaryId);
183
183
  this.state.vendorSubsidiary[t.id] = (r == null ? void 0 : r.fullName) || "";
@@ -189,7 +189,7 @@ function w() {
189
189
  return this.state.vendorSubsidiary[e] || "";
190
190
  },
191
191
  async syncTransferOrder(e, i, n) {
192
- const t = b(), r = S(), s = r.currentLocation.doc._id, d = r.currentLocation.type;
192
+ const t = B(), r = N(), s = r.currentLocation.doc._id, d = r.currentLocation.type;
193
193
  await t.syncTransferOrder(e, `${d}_${s}`, i, n);
194
194
  },
195
195
  getItemPKTCode(e, i) {
@@ -199,16 +199,19 @@ function w() {
199
199
  const r = n[0];
200
200
  r.pktCode && (t = r.pktCode);
201
201
  const s = a.value.setting.units.find((u) => {
202
- var o;
203
- return u.id === ((o = e.unit) == null ? void 0 : o._id);
202
+ var c;
203
+ return u.id === ((c = e.unit) == null ? void 0 : c._id);
204
204
  }), d = r.netSuiteId;
205
205
  if (i) {
206
- const u = s == null ? void 0 : s.measurements.find((o) => o.id === i);
206
+ const u = s == null ? void 0 : s.measurements.find((c) => c.id === i);
207
207
  if (u) {
208
- const o = a.value.setting.childItems.find(
209
- (y) => y.parentNetSuiteId === d && y.unitTypeId === (s == null ? void 0 : s.netSuiteId) && y.unitOfMeasureId === u.netSuiteId
210
- );
211
- o && (o.pktCode && (t = o.pktCode), o.externalId && (t = o.externalId));
208
+ const c = ["ZPH"], I = a.value.setting.childItems.filter(
209
+ (v) => v.parentNetSuiteId === d && v.unitTypeId === (s == null ? void 0 : s.netSuiteId) && v.unitOfMeasureId === u.netSuiteId && v.externalId && !c.some((T) => {
210
+ var h;
211
+ return (h = v.externalId) == null ? void 0 : h.startsWith(T);
212
+ })
213
+ )[0];
214
+ I && (I.pktCode && (t = I.pktCode), I.externalId && (t = I.externalId));
212
215
  }
213
216
  }
214
217
  }
@@ -216,9 +219,9 @@ function w() {
216
219
  }
217
220
  };
218
221
  }
219
- function I(g, l) {
222
+ function y(g, l) {
220
223
  const p = [], m = [];
221
- function c(n, t, r = !1) {
224
+ function o(n, t, r = !1) {
222
225
  return g.filter((d) => d.parentId === t).map((d) => ((r || d.id === l || !l) && p.push(d.id), {
223
226
  id: d.id,
224
227
  name: d.name,
@@ -226,10 +229,10 @@ function I(g, l) {
226
229
  currency: d.currency,
227
230
  parentId: d.parentId,
228
231
  depth: n,
229
- children: c(n + 1, d.id, r || d.id === l)
232
+ children: o(n + 1, d.id, r || d.id === l)
230
233
  }));
231
234
  }
232
- const f = c(0, null), e = {};
235
+ const f = o(0, null), e = {};
233
236
  function i(n, t = "") {
234
237
  const r = n.fullName || n.name, s = t ? `${t} : ${r}` : r;
235
238
  m.push({ ...n, fullName: s }), e[n.id] = [n.id];
@@ -244,5 +247,5 @@ function I(g, l) {
244
247
  };
245
248
  }
246
249
  export {
247
- w as u
250
+ E as u
248
251
  };
@@ -1,5 +1,5 @@
1
- import { F as s } from "./index-Q96zW8J0.js";
2
- import { c as d, a as b } from "./date2-VM6HUtqx.js";
1
+ import { F as s } from "./index-BgM27D6z.js";
2
+ import { c as d, a as b } from "./date2-C385gf6_.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-Iv30TXsA.js";
1
+ import { k as l, u as m, a as B } from "./app-BY6TZxqB.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-Q96zW8J0.js";
4
+ import { g as v } from "./index-BgM27D6z.js";
5
5
  import { ref as y } from "vue";
6
6
  const $ = l((o, t) => {
7
7
  const s = m(), u = k(), c = p();
@@ -1,4 +1,4 @@
1
- import { k as m, u, i as y, t as b, v } from "./app-Iv30TXsA.js";
1
+ import { k as m, u, i as y, t as b, v } from "./app-BY6TZxqB.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";