@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.
- package/dist/{App-DASBZyvh.js → App-C6g4MWwq.js} +3 -3
- package/dist/{ApprovalView-DHF6ZNbm.js → ApprovalView-BK8XFPbW.js} +4 -4
- package/dist/{BindingsDialog-D9qKxyAg.js → BindingsDialog-Dyt5XjYv.js} +2 -2
- package/dist/{BindingsPicker-CeBoqXz8.js → BindingsPicker-Oc6mY2X8.js} +2 -2
- package/dist/{BindingsTable-Dd5xRj10.js → BindingsTable-Bd3XOxR2.js} +4 -4
- package/dist/ClosingDraftView-ByE3m27z.js +939 -0
- package/dist/{ClosingTemplateView-CSXAdVxc.js → ClosingTemplateView-CMwTAa6I.js} +10 -10
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BST01iWL.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C8Svc7L9.js} +4 -4
- 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
- package/dist/{FmMultiselectDialog-CS4NySsZ.js → FmMultiselectDialog-D8iilrSP.js} +3 -3
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C7jj8lh2.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D5hUkg2Q.js} +2 -2
- 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
- package/dist/{IngredientGroupView-D8YdtFuI.js → IngredientGroupView-D5Y8HnMX.js} +5 -5
- package/dist/{IngredientsView-Dwi7AdEC.js → IngredientsView-Bw49qYtR.js} +9 -9
- package/dist/{IntegrationView-cRXTwH66.js → IntegrationView-BxaJS_Ic.js} +4 -4
- package/dist/{InventoryBindingForm-Bn8LLL7Z.js → InventoryBindingForm-a9nsrEgo.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-jXdc2zeS.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Dj3ykTHY.js} +5 -5
- package/dist/{InventoryBindingSummary-eUAU5Z7o.js → InventoryBindingSummary-BdvlBlBa.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DP9gkO9u.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BIFLCYHD.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DjdvK5YG.js → PremiumBadge.vue_vue_type_script_setup_true_lang-gqJ2wFO2.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-RsvtuTgm.js → PurchaseOrderPrintPreview-DsWVxI5o.js} +1 -1
- package/dist/{ReceiveRequestView-BVYXX41L.js → ReceiveRequestView-C7I6nYFr.js} +18 -18
- package/dist/{RecipeView-BFj61pLR.js → RecipeView-DNf5Pdsx.js} +7 -7
- package/dist/{StockView-B8DHNq-I.js → StockView-BvtciIRT.js} +13 -13
- package/dist/{SupplierView-DE5glObY.js → SupplierView-Co0xIPuQ.js} +10 -10
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CAR2rHAz.js → TransferDetails.vue_vue_type_script_setup_true_lang-WlrPIph9.js} +321 -320
- package/dist/{TransferTemplateView-DaY-24XT.js → TransferTemplateView-BWuxHMCo.js} +14 -14
- package/dist/{UnitView-Bqh-DD8a.js → UnitView-DV1gTkKx.js} +5 -5
- package/dist/{WarehouseView-KOZF8E0j.js → WarehouseView-1nJhKxZf.js} +4 -4
- package/dist/api/netsuite.d.ts +1 -1
- package/dist/{app-CCmjyIGj.js → app-BxXrau2Y.js} +8 -8
- package/dist/app.js +1 -1
- package/dist/{date2-Bts8EH96.js → date2-BiwqC0aG.js} +1 -1
- package/dist/{dayjs.min-Bwx_xAqf.js → dayjs.min-BG6ShXQ2.js} +1 -1
- package/dist/{decimal-Cw3aj2HA.js → decimal-E0BNizw5.js} +1 -1
- package/dist/{defineDeepModel-DF4IooaB.js → defineDeepModel-35Pm_1zc.js} +1 -1
- package/dist/{feature-DUVlpk0T.js → feature-DEUGLUcC.js} +1 -1
- package/dist/{format-time-from-id-DRL6XFTy.js → format-time-from-id-C-CoKHdr.js} +1 -1
- package/dist/{format-unit-display-h-7i16En.js → format-unit-display-BTpv4xQq.js} +8 -8
- package/dist/{fuzzy-Csk59ocn.js → fuzzy-DnuAv442.js} +1 -1
- package/dist/{index-C49C9tXF.js → index-C-Tfi09A.js} +1 -1
- package/dist/{index-BUdfAMv8.js → index-CvuJB9Kj.js} +1 -1
- package/dist/{index-rrLxN15a.js → index-DAeQwHBr.js} +1 -1
- package/dist/{netsuite-Cgj-Fs7U.js → netsuite-B_j6HAOr.js} +44 -43
- package/dist/{rules-CSQd5FJv.js → rules-DQHD3_tG.js} +2 -2
- package/dist/{stock-DOndmj1b.js → stock-UdvZOkMj.js} +2 -2
- package/dist/stores/integration/netsuite.d.ts +1 -1
- package/dist/{supplier-Bv3Jvn8o.js → supplier-DPLyaiL4.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-C7br2QA4.js → use-inventory-binding-dialog-D5f_LR61.js} +2 -2
- package/dist/{use-template-enabled-locations-2-eX5uS542.js → use-template-enabled-locations-2-C7I0IWxW.js} +2 -2
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +6 -2
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
- package/dist/{xlsx-wOJHnWy6.js → xlsx-CtEy_Z3G.js} +1 -1
- package/dist/{xlsx.util-C4ZYbcNA.js → xlsx.util-CNlpT1T7.js} +1 -1
- package/package.json +3 -3
- package/dist/ClosingDraftView-TbFoEdiB.js +0 -767
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { k as N, h as B, a as
|
|
2
|
-
import { useCoreStore as
|
|
3
|
-
import { useSnackbar as
|
|
4
|
-
import { ref as
|
|
5
|
-
const b = N((g,
|
|
6
|
-
const
|
|
7
|
-
return
|
|
8
|
-
if (
|
|
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:
|
|
11
|
-
message:
|
|
10
|
+
title: c.title,
|
|
11
|
+
message: c.message,
|
|
12
12
|
type: "error"
|
|
13
|
-
}),
|
|
13
|
+
}), c;
|
|
14
14
|
}), {
|
|
15
15
|
async readSetting() {
|
|
16
16
|
var e;
|
|
17
|
-
const
|
|
18
|
-
return await
|
|
19
|
-
},
|
|
20
|
-
async syncTransferOrder(
|
|
21
|
-
var
|
|
22
|
-
const
|
|
23
|
-
return await
|
|
24
|
-
type:
|
|
25
|
-
|
|
26
|
-
|
|
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 =
|
|
50
|
-
function
|
|
51
|
-
const g =
|
|
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 =
|
|
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
|
|
89
|
+
return l.value;
|
|
89
90
|
},
|
|
90
91
|
get netSuiteMeasurementIdToMeasurementId() {
|
|
91
|
-
return
|
|
92
|
+
return p.value;
|
|
92
93
|
},
|
|
93
94
|
get netSuiteItemBySkuId() {
|
|
94
95
|
return m.value;
|
|
95
96
|
},
|
|
96
97
|
get unitByNetsuiteId() {
|
|
97
|
-
return
|
|
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
|
|
169
|
-
o = o.concat(r[
|
|
170
|
-
return o = [...new Set(o)], u.parentNetSuiteId === n.netSuiteId && o.some((
|
|
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
|
|
192
|
-
await
|
|
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
|
-
(
|
|
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,
|
|
219
|
-
const
|
|
220
|
-
function
|
|
221
|
-
return g.filter((d) => d.parentId === t).map((d) => ((r || 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:
|
|
229
|
+
children: c(n + 1, d.id, r || d.id === l)
|
|
229
230
|
}));
|
|
230
231
|
}
|
|
231
|
-
const f =
|
|
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:
|
|
241
|
+
available: p,
|
|
241
242
|
flat: m,
|
|
242
243
|
flatMapping: e
|
|
243
244
|
};
|
|
244
245
|
}
|
|
245
246
|
export {
|
|
246
|
-
|
|
247
|
+
w as u
|
|
247
248
|
};
|
|
@@ -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-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-
|
|
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-
|
|
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,
|
|
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-
|
|
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";
|