@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.
- package/dist/{App-CqcF-fwV.js → App-Dfryh3pQ.js} +3 -3
- package/dist/{ApprovalView-vWXFA_eo.js → ApprovalView-CRrJeRCQ.js} +4 -4
- package/dist/{BindingsDialog-kvHNCEqw.js → BindingsDialog-Zh8FzTSI.js} +2 -2
- package/dist/{BindingsPicker-CCIp6NEE.js → BindingsPicker-BXChBNxv.js} +2 -2
- package/dist/{BindingsTable-DXGbeSVU.js → BindingsTable-BXB-X1N3.js} +4 -4
- package/dist/{ClosingDraftView-DdWSQS2H.js → ClosingDraftView-ZKdMqDrV.js} +7 -7
- package/dist/{ClosingTemplateView-DsCeYCJg.js → ClosingTemplateView-Bj6SiRlA.js} +10 -10
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DtofkHh5.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CZ1NPD07.js} +4 -4
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-dOwGhgfF.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B8RhFmN_.js} +2 -2
- package/dist/{FmMultiselectDialog-e6cut2s7.js → FmMultiselectDialog-DWMt9hvV.js} +3 -3
- 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
- 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
- package/dist/{IngredientGroupView-Ctu1rZDA.js → IngredientGroupView-DCOz2AOB.js} +5 -5
- package/dist/{IngredientsView-DeNnObTW.js → IngredientsView-D3ptwZy1.js} +9 -9
- package/dist/{IntegrationView-t7CRZcew.js → IntegrationView-BfoCYVHZ.js} +4 -4
- package/dist/{InventoryBindingForm-Cjeh1vj_.js → InventoryBindingForm-2Gs2vUtC.js} +1 -1
- 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
- package/dist/{InventoryBindingSummary-DPo79YXT.js → InventoryBindingSummary-IUJt469w.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DozwlCld.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BtdmfQRZ.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BKfkxoTE.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C97vZfAO.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-C-iEvLP1.js → PurchaseOrderPrintPreview-BRVCfgd3.js} +1 -1
- package/dist/{ReceiveRequestView-D4Cg8TF5.js → ReceiveRequestView-Brh9jtUz.js} +18 -18
- package/dist/{RecipeView-ZgONnIvE.js → RecipeView-Br8u4xZZ.js} +7 -7
- package/dist/{StockView-OG1jLUa8.js → StockView-B2vBQLJf.js} +13 -13
- package/dist/{SupplierView-DSW2dLQP.js → SupplierView-S_qigSL4.js} +10 -10
- 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
- package/dist/TransferTemplateView-B0_EXehN.js +1275 -0
- package/dist/{UnitView-6RkEFIJD.js → UnitView-CR019bWO.js} +5 -5
- package/dist/{WarehouseView-Bbci5eAP.js → WarehouseView-BX7K073o.js} +4 -4
- package/dist/{app-Iv30TXsA.js → app-BY6TZxqB.js} +8 -8
- package/dist/app.js +1 -1
- package/dist/{date2-VM6HUtqx.js → date2-C385gf6_.js} +1 -1
- package/dist/{dayjs.min-CEM65hHn.js → dayjs.min-CuXsxyJ4.js} +1 -1
- package/dist/{decimal-gAHZETIz.js → decimal-DmIrlkyN.js} +1 -1
- package/dist/{defineDeepModel-DzTm7URG.js → defineDeepModel-CJEdL37p.js} +1 -1
- package/dist/{feature-DN8a_F-i.js → feature-DM4scjOG.js} +1 -1
- package/dist/{format-time-from-id-BfbdDiIE.js → format-time-from-id-DmDFxNOY.js} +1 -1
- package/dist/{format-unit-display-XHgGLeHY.js → format-unit-display-DnZmCO-i.js} +8 -8
- package/dist/{fuzzy-CIEPIox7.js → fuzzy-D2QbaWQl.js} +1 -1
- package/dist/{index-Q96zW8J0.js → index-BgM27D6z.js} +1 -1
- package/dist/{index-Dv-6Hm_z.js → index-CKCFZ2N2.js} +1 -1
- package/dist/{index-DQDMUxyC.js → index-UtLEzrzf.js} +1 -1
- package/dist/{netsuite-Bo49EaVh.js → netsuite-CxzWHfIf.js} +51 -48
- package/dist/{rules-C0FFlx9A.js → rules-WXcRCM31.js} +2 -2
- package/dist/{stock-CMKAuU84.js → stock-BVyJ8TZF.js} +2 -2
- package/dist/{supplier-CxAcIU6h.js → supplier-Cg0hV-1Z.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-GNLNP3f8.js → use-inventory-binding-dialog-C4A0C-q4.js} +2 -2
- package/dist/{use-template-enabled-locations-2-DzqBdV2b.js → use-template-enabled-locations-2-ClTvBbS6.js} +2 -2
- package/dist/{xlsx-BqvCK2Va.js → xlsx-jlUdZfql.js} +1 -1
- package/dist/{xlsx.util-CNeUTGll.js → xlsx.util-C4YF_j8p.js} +1 -1
- package/package.json +3 -3
- package/dist/TransferTemplateView-TixIybWf.js +0 -1275
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { k as
|
|
2
|
-
import { useCoreStore as
|
|
3
|
-
import { useSnackbar as
|
|
4
|
-
import { ref as
|
|
5
|
-
const
|
|
6
|
-
const p =
|
|
7
|
-
return l.onError(async (
|
|
8
|
-
if (
|
|
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:
|
|
11
|
-
message:
|
|
10
|
+
title: o.title,
|
|
11
|
+
message: o.message,
|
|
12
12
|
type: "error"
|
|
13
|
-
}),
|
|
13
|
+
}), o;
|
|
14
14
|
}), {
|
|
15
15
|
async readSetting() {
|
|
16
16
|
var e;
|
|
17
|
-
const
|
|
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(
|
|
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:
|
|
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
|
|
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 =
|
|
51
|
-
function
|
|
52
|
-
const g =
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
|
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 } =
|
|
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 =
|
|
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 } =
|
|
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 } =
|
|
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 } =
|
|
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 } =
|
|
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 } =
|
|
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
|
|
167
|
+
let c = u.subsidiaryIds;
|
|
168
168
|
if (u.includeChildren == !0)
|
|
169
|
-
for (const
|
|
170
|
-
|
|
171
|
-
return
|
|
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
|
|
177
|
+
const i = await B().readSetting();
|
|
178
178
|
if (i) {
|
|
179
179
|
this.state.setting = i;
|
|
180
|
-
const { flat: n } =
|
|
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 =
|
|
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
|
|
203
|
-
return u.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((
|
|
206
|
+
const u = s == null ? void 0 : s.measurements.find((c) => c.id === i);
|
|
207
207
|
if (u) {
|
|
208
|
-
const
|
|
209
|
-
(
|
|
210
|
-
|
|
211
|
-
|
|
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
|
|
222
|
+
function y(g, l) {
|
|
220
223
|
const p = [], m = [];
|
|
221
|
-
function
|
|
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:
|
|
232
|
+
children: o(n + 1, d.id, r || d.id === l)
|
|
230
233
|
}));
|
|
231
234
|
}
|
|
232
|
-
const f =
|
|
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
|
-
|
|
250
|
+
E as u
|
|
248
251
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { F as s } from "./index-
|
|
2
|
-
import { c as d, a as b } from "./date2-
|
|
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-
|
|
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-
|
|
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-
|
|
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";
|