@feedmepos/mf-inventory-portal 1.0.36-dev.7 → 1.0.37-dev.1
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-Cw7dAyRr.js → App-DomXC0uh.js} +46 -47
- package/dist/{ApprovalView-uzxVamAD.js → ApprovalView-DnINEwhh.js} +20 -20
- package/dist/{BindingsDialog-CjAyz7qd.js → BindingsDialog-MstJl2hJ.js} +10 -10
- package/dist/{BindingsPicker-VWQEClDc.js → BindingsPicker-BCgoeZK5.js} +1 -1
- package/dist/{BindingsTable-D_AidNg-.js → BindingsTable-knJs1DaE.js} +4 -4
- package/dist/{ClosingDraftView-DnPQE4xl.js → ClosingDraftView-Cg4siKrJ.js} +27 -27
- package/dist/{ClosingTemplateView-BzeUoP0S.js → ClosingTemplateView-D7nxxW1T.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-CQBfbvjK.js → DeliveryOrderPrintPreview-DUqWxzpS.js} +4 -4
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C5iYx065.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DMeIIyKI.js} +11 -11
- package/dist/{FmMultiselectDialog-DLZju68a.js → FmMultiselectDialog-H6rOzolY.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-elcx6AO6.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BAk4KHnz.js} +31 -31
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DMmGsyfI.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-SxPkPzU1.js} +1 -1
- package/dist/{IngredientGroupView-bFYU22r_.js → IngredientGroupView-CAA69KE_.js} +21 -21
- package/dist/{IngredientsView-BrfeKO6V.js → IngredientsView-BYhDmhQb.js} +42 -43
- package/dist/IntegrationView-CGBFyLWN.js +3303 -0
- package/dist/{InventoryBindingForm-DrNO6vLb.js → InventoryBindingForm-X-CFcWEY.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DU_Nt6VM.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CwV5nKPo.js} +18 -18
- package/dist/{InventoryBindingSummary-BztWC0Gi.js → InventoryBindingSummary-Cch1pODC.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-OvRfk02N.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Uc6h5Apn.js} +4 -4
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BsbrYUky.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BcWa_Dww.js} +10 -10
- package/dist/{PublishView-BwmvDibM.js → PublishView-DCAdzucX.js} +19 -19
- package/dist/{PurchaseOrderPrintPreview-DRo0ctOc.js → PurchaseOrderPrintPreview-IDiFQ15P.js} +12 -12
- package/dist/{ReceiveRequestView-yb4E_Dg6.js → ReceiveRequestView-7eslFHYc.js} +106 -107
- package/dist/{RecipeView-Dyf9kDoR.js → RecipeView-DOLJ5Gsx.js} +38 -39
- package/dist/{StockView-Cg-KD9qT.js → StockView-vCgmnyKT.js} +68 -69
- package/dist/{SupplierView-BtVTg_Ht.js → SupplierView-B6xdSB6T.js} +11 -12
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-lNmQ3zTi.js → TransferDetails.vue_vue_type_script_setup_true_lang-DrfHulTL.js} +105 -106
- package/dist/{TransferTemplateView-AUp2tI1x.js → TransferTemplateView-g1V3JX-5.js} +143 -144
- package/dist/{UnitView-BgbQjCfN.js → UnitView-BD28XnQL.js} +19 -19
- package/dist/{WarehouseView-BedfDS6s.js → WarehouseView-Cjgl43Xz.js} +14 -14
- package/dist/api/netsuite.d.ts +2 -0
- package/dist/app-dN4odAZ8.js +124833 -0
- package/dist/app.js +6 -6
- package/dist/{decimal-uKQOh7Qw.js → decimal-Blq-Ws2M.js} +1 -1
- package/dist/{format-unit-display-EMi6Weg0.js → format-unit-display-CzANmeBd.js} +13 -13
- package/dist/{index-B4jwhkHY.js → index-61_R9xfw.js} +3 -4
- package/dist/{index-BN_lVBL8.js → index-B8dsKHa4.js} +1 -1
- package/dist/{stock-SaEl13YM.js → stock-D7E6dj7b.js} +1 -1
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +1 -0
- package/dist/{supplier-hdrIxTLp.js → supplier-UeD3tjJh.js} +25 -26
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-B7XYGX1J.js → use-ingredient-select-dialog-CydPG1Ol.js} +1 -1
- package/dist/{use-inventory-binding-dialog-t7XQb2UV.js → use-inventory-binding-dialog-DzRlrnI6.js} +1 -1
- package/dist/views/integration/components/netsuite/InventoryTransferOutTable.vue.d.ts +2 -0
- package/dist/{vue-i18n-DBsdCMy_.js → vue-i18n-D64xeCoR.js} +285 -285
- package/package.json +1 -1
- package/dist/IntegrationView-KlnDvvRE.js +0 -6531
- package/dist/app-nDgEuY-Q.js +0 -102338
- package/dist/feature-_ggdK-7_.js +0 -19100
package/dist/app.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { ba as a, bb as e, bc as o, b9 as t, bd as b, a as i } from "./app-dN4odAZ8.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
a as FmApp,
|
|
5
|
+
e as InventoryBindingForm,
|
|
6
|
+
o as InventoryBindingSummary,
|
|
7
|
+
t as i18nMessages,
|
|
8
|
+
b as routers,
|
|
9
9
|
i as useInventoryStore
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a3 as Ie, a as V, T as Ne, ag as M, s as De, ah as ye, v as he, u as G, j as B, w as Oe, aK as ie, x as ve, b as ee, t as W, Y as J, aJ as Pe, aB as Fe, a0 as Ue, y as Me, z as Be, ai as Le, e as le, f as te, R as ce, a2 as Qe, af as He, D as j, i as N, h as qe } from "./app-dN4odAZ8.js";
|
|
2
2
|
import { useCoreStore as re, useI18n as ne } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialogChild as Ve, useSnackbar as ge, useDialog as je, FmButtonVariant as z, components as me } from "@feedmepos/ui-library";
|
|
4
4
|
import { defineStore as be } from "pinia";
|
|
5
|
-
import { defineComponent as xe, resolveComponent as Q, openBlock as $, createElementBlock as k, createElementVNode as C, normalizeClass as H, createTextVNode as ze, toDisplayString as D, unref as A, createCommentVNode as q, createVNode as F, withCtx as
|
|
5
|
+
import { defineComponent as xe, resolveComponent as Q, openBlock as $, createElementBlock as k, createElementVNode as C, normalizeClass as H, createTextVNode as ze, toDisplayString as D, unref as A, createCommentVNode as q, createVNode as F, withCtx as X, Fragment as L, renderList as Y, ref as E, onMounted as Ke, computed as ue, watch as Ye, createSlots as We, createBlock as K, h as Z } from "vue";
|
|
6
6
|
import { useRouter as Ge } from "vue-router";
|
|
7
|
-
import { u as oe } from "./supplier-
|
|
7
|
+
import { u as oe } from "./supplier-UeD3tjJh.js";
|
|
8
8
|
const Se = Ie((e, t) => {
|
|
9
9
|
function s() {
|
|
10
10
|
var o;
|
|
@@ -95,7 +95,7 @@ function $e() {
|
|
|
95
95
|
}
|
|
96
96
|
];
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Je(e) {
|
|
99
99
|
var c;
|
|
100
100
|
const s = re().currentBusiness.value, i = (c = e.map((a) => {
|
|
101
101
|
var g;
|
|
@@ -251,7 +251,7 @@ function Ze() {
|
|
|
251
251
|
}), g = `${i == null ? void 0 : i.name} transfer templates import.xlsx`;
|
|
252
252
|
return he(v, g), g;
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function Xe(e, t) {
|
|
255
255
|
const s = new Array(), l = /(.*) \(((supplier_|warehouse_|restaurant_).{24,})\)/, o = G().locationByDbName, c = oe().supplierById, a = e.trim(), m = l.exec(a);
|
|
256
256
|
if (!m)
|
|
257
257
|
return s.push(`Transfer from location value of ${a} cannot be read.`), {
|
|
@@ -428,18 +428,18 @@ function ot(e, t, s) {
|
|
|
428
428
|
}
|
|
429
429
|
const m = W(
|
|
430
430
|
e.quantityStep,
|
|
431
|
-
|
|
431
|
+
J(c, a)
|
|
432
432
|
);
|
|
433
433
|
(Number.isNaN(Number(e.quantityStep)) || Number(e.quantityStep) <= 0) && f.push("Amount step must be more than 0");
|
|
434
434
|
const h = Pe(m), d = nt(
|
|
435
435
|
e.minimumQuantity,
|
|
436
436
|
e.maximumQuantity,
|
|
437
|
-
|
|
437
|
+
J(c, a)
|
|
438
438
|
), u = d.min, v = d.max;
|
|
439
439
|
d.compareError && f.push(d.compareError);
|
|
440
440
|
const g = Fe(+e.minimumQuantity, +e.maximumQuantity), r = W(
|
|
441
441
|
e.defaultQuantity,
|
|
442
|
-
|
|
442
|
+
J(c, a)
|
|
443
443
|
), x = h(r);
|
|
444
444
|
typeof x == "string" && f.push(`Default amount: ${x}`);
|
|
445
445
|
const w = d.min && d.max ? g(`${e.defaultQuantity}`) : null;
|
|
@@ -468,7 +468,7 @@ function at(e) {
|
|
|
468
468
|
return t.reduce(
|
|
469
469
|
(o, f) => {
|
|
470
470
|
var p;
|
|
471
|
-
const c = new Array(), a = e.Sheets[f], m = tt(a), h =
|
|
471
|
+
const c = new Array(), a = e.Sheets[f], m = tt(a), h = Xe(m.transferFrom, m.type);
|
|
472
472
|
c.push(...h.errors);
|
|
473
473
|
const d = h.from, u = et(m.locations), v = u.filter((n) => n.location).map((n) => n.location);
|
|
474
474
|
c.push(...u.flatMap((n) => n.errors));
|
|
@@ -604,12 +604,12 @@ const it = { class: "flex items-center gap-12 pl-8" }, lt = { class: "flex flex-
|
|
|
604
604
|
], 2),
|
|
605
605
|
t.errors.length ? ($(), k("div", dt, [
|
|
606
606
|
F(i, { "z-index": 50 }, {
|
|
607
|
-
content:
|
|
607
|
+
content: X(() => [
|
|
608
608
|
C("ol", null, [
|
|
609
609
|
($(!0), k(L, null, Y(t.errors, (a, m) => ($(), k("li", { key: m }, D(a), 1))), 128))
|
|
610
610
|
])
|
|
611
611
|
]),
|
|
612
|
-
default:
|
|
612
|
+
default: X(() => [
|
|
613
613
|
F(l, {
|
|
614
614
|
name: "error",
|
|
615
615
|
size: "sm",
|
|
@@ -735,7 +735,7 @@ const it = { class: "flex items-center gap-12 pl-8" }, lt = { class: "flex flex-
|
|
|
735
735
|
}, We({ _: 2 }, [
|
|
736
736
|
t.value ? {
|
|
737
737
|
name: "default",
|
|
738
|
-
fn:
|
|
738
|
+
fn: X(({ openFileDialog: p }) => [
|
|
739
739
|
C("div", yt, [
|
|
740
740
|
C("div", {
|
|
741
741
|
class: H([
|
|
@@ -1088,7 +1088,7 @@ const $t = be("transferTemplateActions", () => {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
}
|
|
1090
1090
|
function p() {
|
|
1091
|
-
const n =
|
|
1091
|
+
const n = Je(l.templates);
|
|
1092
1092
|
t.open({
|
|
1093
1093
|
title: a("inventory.ingredient.export.success"),
|
|
1094
1094
|
message: a("inventory.ingredient.export.filename", [n]),
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ref as b, computed as u } from "vue";
|
|
2
|
-
import { u as d,
|
|
2
|
+
import { u as d, aZ as p, aQ as v, c as m, b as h } from "./app-dN4odAZ8.js";
|
|
3
3
|
import { useSnackbar as E } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as m } from "./feature-_ggdK-7_.js";
|
|
5
4
|
function I() {
|
|
6
5
|
return {
|
|
7
6
|
setting: {
|
|
@@ -125,7 +124,7 @@ function x() {
|
|
|
125
124
|
}
|
|
126
125
|
};
|
|
127
126
|
}
|
|
128
|
-
function
|
|
127
|
+
function N() {
|
|
129
128
|
const o = h(), n = C(), e = w(), t = x(), a = u(() => o.isEnabled), s = u(() => n.isEnabled), f = u(() => e.isEnabled), c = u(() => t.isEnabled);
|
|
130
129
|
return {
|
|
131
130
|
get enabledIntegrations() {
|
|
@@ -159,5 +158,5 @@ export {
|
|
|
159
158
|
C as a,
|
|
160
159
|
w as b,
|
|
161
160
|
x as c,
|
|
162
|
-
|
|
161
|
+
N as u
|
|
163
162
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aY as x, b3 as V, b4 as q, b5 as Re, b6 as ul, b7 as or, b8 as Dt } from "./app-dN4odAZ8.js";
|
|
2
2
|
function sl(t, e) {
|
|
3
3
|
for (var r = 0; r < e.length; r++) {
|
|
4
4
|
const n = e[r];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a3 as m, u as k, a as l, ar as B, T as p } from "./app-dN4odAZ8.js";
|
|
2
2
|
import { useCoreStore as v } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as $ } from "@feedmepos/ui-library";
|
|
4
4
|
import { ref as y, computed as S } from "vue";
|
package/dist/stores/feature.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export interface FeatureState {
|
|
|
21
21
|
useOperatePurchaseOrderV2: boolean;
|
|
22
22
|
inventory_xilnex_opening_migration: boolean;
|
|
23
23
|
inventory_synergy_opening_migration: boolean;
|
|
24
|
+
inventory_netsuite_inventory_transfer_out: boolean;
|
|
24
25
|
}
|
|
25
26
|
export declare const useFeatureStore: () => {
|
|
26
27
|
readonly businessDbName: string;
|
|
@@ -46,6 +47,7 @@ export declare const useFeatureStore: () => {
|
|
|
46
47
|
readonly usePurchaseOrderV2: boolean;
|
|
47
48
|
readonly acceptRequireFulfillment: boolean | undefined;
|
|
48
49
|
readonly useOperatePurchaseOrderV2: boolean;
|
|
50
|
+
readonly isNetSuiteInventoryTransferOutEnabled: boolean;
|
|
49
51
|
init(): Promise<void>;
|
|
50
52
|
awaitFeatureLoaded(callback: () => boolean): Promise<boolean>;
|
|
51
53
|
};
|
|
@@ -36,6 +36,7 @@ export declare function useNetSuiteStore(): {
|
|
|
36
36
|
transferTemplateColumnDefs(args: {
|
|
37
37
|
onUpdate: (index: number, sku: FdoInventorySku, code: string, measurement?: FdoUnitMeasurement) => void;
|
|
38
38
|
}): Record<number, ColumnDef<FdoPurchaseOrderTemplateItem>>;
|
|
39
|
+
readonly inventoryTransferOutEnabled: boolean;
|
|
39
40
|
readonly isReady: boolean;
|
|
40
41
|
readonly isEnabled: boolean;
|
|
41
42
|
readonly isBusinessLocation: boolean;
|
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { u as $ } from "./feature-_ggdK-7_.js";
|
|
1
|
+
import { a3 as m, u, c as b, w, as as v, at as $ } from "./app-dN4odAZ8.js";
|
|
3
2
|
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
4
|
-
import { defineStore as
|
|
3
|
+
import { defineStore as A } from "pinia";
|
|
5
4
|
import { ref as l, computed as d } from "vue";
|
|
6
|
-
const i =
|
|
7
|
-
function
|
|
5
|
+
const i = m((s, a) => {
|
|
6
|
+
function p() {
|
|
8
7
|
var o;
|
|
9
|
-
const t = c(), e = u(), n =
|
|
10
|
-
return n ? S :
|
|
8
|
+
const t = c(), e = u(), n = b().businessSupplierOnly, S = `business_${((o = t.currentBusiness.value) == null ? void 0 : o._id) ?? ""}`, y = e.currentLocation.dbName;
|
|
9
|
+
return n ? S : y;
|
|
11
10
|
}
|
|
12
11
|
return {
|
|
13
12
|
async readSuppliers() {
|
|
14
|
-
const t =
|
|
15
|
-
return await
|
|
13
|
+
const t = p(), e = `${s.inventoryBackendUrl}/${t}/supplier`;
|
|
14
|
+
return await a.get(e);
|
|
16
15
|
},
|
|
17
16
|
async readLocationSuppliers() {
|
|
18
17
|
const e = u().currentLocation.dbName, r = `${s.inventoryBackendUrl}/${e}/supplier`;
|
|
19
|
-
return await
|
|
18
|
+
return await a.get(r);
|
|
20
19
|
},
|
|
21
20
|
async readBusinessSuppliers() {
|
|
22
21
|
var n;
|
|
23
22
|
const e = `business_${((n = c().currentBusiness.value) == null ? void 0 : n._id) ?? ""}`, r = `${s.inventoryBackendUrl}/${e}/supplier`;
|
|
24
|
-
return await
|
|
23
|
+
return await a.get(r);
|
|
25
24
|
},
|
|
26
25
|
async createSupplier(t) {
|
|
27
|
-
const e =
|
|
28
|
-
return await
|
|
26
|
+
const e = p(), r = `${s.inventoryBackendUrl}/${e}/supplier`;
|
|
27
|
+
return await a.post(r, t);
|
|
29
28
|
},
|
|
30
29
|
async importSuppliers(t) {
|
|
31
|
-
const e =
|
|
32
|
-
return await
|
|
30
|
+
const e = p(), r = `${s.inventoryBackendUrl}/${e}/supplier/import`;
|
|
31
|
+
return await a.post(r, t);
|
|
33
32
|
},
|
|
34
33
|
async updateSupplier(t) {
|
|
35
|
-
const e =
|
|
36
|
-
return await
|
|
34
|
+
const e = p(), r = `${s.inventoryBackendUrl}/${e}/supplier`;
|
|
35
|
+
return await a.put(r, t);
|
|
37
36
|
},
|
|
38
37
|
async deleteSupplier(t) {
|
|
39
|
-
const e =
|
|
40
|
-
return await
|
|
38
|
+
const e = p(), r = `${s.inventoryBackendUrl}/${e}/supplier`;
|
|
39
|
+
return await a.delete(r, t);
|
|
41
40
|
}
|
|
42
41
|
};
|
|
43
|
-
}),
|
|
44
|
-
const s = l(new Array()),
|
|
42
|
+
}), k = A("supplier", () => {
|
|
43
|
+
const s = l(new Array()), a = l(new Array()), p = d(() => [...s.value, ...a.value]), t = d(() => w(p.value, "_id"));
|
|
45
44
|
return {
|
|
46
45
|
async readSuppliers() {
|
|
47
46
|
const e = i();
|
|
48
|
-
s.value = await e.readLocationSuppliers(),
|
|
47
|
+
s.value = await e.readLocationSuppliers(), a.value = await e.readBusinessSuppliers();
|
|
49
48
|
},
|
|
50
49
|
async createSupplier(e) {
|
|
51
50
|
await i().createSupplier(e);
|
|
@@ -64,15 +63,15 @@ const i = y((s, p) => {
|
|
|
64
63
|
try {
|
|
65
64
|
await this.readSuppliers();
|
|
66
65
|
} catch (r) {
|
|
67
|
-
throw r instanceof
|
|
66
|
+
throw r instanceof $ || e.error("Error at reading suppliers"), r;
|
|
68
67
|
}
|
|
69
68
|
},
|
|
70
|
-
suppliers:
|
|
69
|
+
suppliers: p,
|
|
71
70
|
locationSuppliers: s,
|
|
72
|
-
businessSuppliers:
|
|
71
|
+
businessSuppliers: a,
|
|
73
72
|
supplierById: t
|
|
74
73
|
};
|
|
75
74
|
});
|
|
76
75
|
export {
|
|
77
|
-
|
|
76
|
+
k as u
|
|
78
77
|
};
|