@feedmepos/mf-inventory-portal 1.2.38 → 1.2.40-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-CONrAP7y.js → App-0DyZL1Fq.js} +3 -3
- package/dist/{ApprovalView-Cn9_7xk9.js → ApprovalView-BmBq5TGO.js} +5 -5
- package/dist/{BindingsDialog-L7mP6sx9.js → BindingsDialog-DtBdmYMs.js} +11 -11
- package/dist/{BindingsPicker-DZqBMDUg.js → BindingsPicker-BAGxi1ZC.js} +9 -9
- package/dist/{BindingsTable-DHkFDwiH.js → BindingsTable-DKlb_qiS.js} +24 -24
- package/dist/{ClosingDraftView-BtSmlj0J.js → ClosingDraftView-CEmvLMPP.js} +8 -8
- package/dist/{ClosingHistoryView-j83Wuxis.js → ClosingHistoryView-DOmSMiGH.js} +22 -22
- package/dist/{ClosingTemplateView-ZubBNFCd.js → ClosingTemplateView-Bd1KfJL3.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-DfS2E2tl.js → DeliveryOrderPrintPreview-DoE0Bmx4.js} +9 -9
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CoO6g5B9.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-20eCsiTr.js} +60 -61
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DnMjbyPc.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B05RFZv-.js} +2 -2
- package/dist/{FmMultiselectDialog-8_qMKCPt.js → FmMultiselectDialog-ChsBeANW.js} +2 -2
- package/dist/{FmMultiselectDialog-vj94RVLU.js → FmMultiselectDialog-i1uk7uNx.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Dihv3KTq.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BpT8OBQX.js} +3 -3
- package/dist/{ImportView--0ZbHtb9.js → ImportView-CCLgSwn2.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bosdu_28.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-EHwf-vCH.js} +1 -1
- package/dist/{IngredientGroupView-D937cHah.js → IngredientGroupView-BnEyAtcY.js} +49 -49
- package/dist/{IngredientsView-BNdvTpOT.js → IngredientsView-DEN_EqXP.js} +14 -14
- package/dist/{IntegrationView-Dm3Eur8-.js → IntegrationView-Cu_gMMz_.js} +1663 -1572
- package/dist/{InventoryBindingForm-rBhW4Snl.js → InventoryBindingForm-COw2tcQC.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Cvpi7GQx.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DIv_DrTj.js} +14 -14
- package/dist/{InventoryBindingSummary-emUM5QuA.js → InventoryBindingSummary-Csajkxbi.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DFW-jg1P.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BE9UFVFI.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BOxIYl0Z.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Da6ffJym.js} +2 -2
- package/dist/{PublishView-CXRBcsxc.js → PublishView-qCcwOaJ8.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-BvjDpyrq.js → PurchaseOrderPrintPreview-m2n6OT7Z.js} +9 -9
- package/dist/ReceiveRequestView-fhTKkIJA.js +2866 -0
- package/dist/{RecipeView-dggwqURE.js → RecipeView-Bp_59G4J.js} +8 -8
- package/dist/{StockView-Cml9AuXX.js → StockView-Co_sOnjs.js} +15 -15
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BTZa1E_o.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Npu98N-x.js} +1 -1
- package/dist/{SupplierView-CnD2QpE7.js → SupplierView-Bp4ez39s.js} +11 -11
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DIbaHfbR.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-JTXbmabq.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DeD1jiXL.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Dn2j9Xls.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Y0eaTjgd.js → TransferDetails.vue_vue_type_script_setup_true_lang-BSOi6Bbh.js} +374 -374
- package/dist/{TransferTemplateView-DytfORlu.js → TransferTemplateView-C5jzqjPy.js} +354 -354
- package/dist/{UnitView-ZUo-3Em1.js → UnitView-XcXvbWUz.js} +6 -6
- package/dist/{WarehouseView-DlZirt8V.js → WarehouseView-B37E963Z.js} +5 -5
- package/dist/{WastageTemplateView-5Qvs2GZC.js → WastageTemplateView-Dn2vSoCa.js} +14 -14
- package/dist/api/netsuite.d.ts +2 -0
- package/dist/{app-xCn1wZY9.js → app-CaXDnJ-Z.js} +1517 -1479
- package/dist/app.js +1 -1
- package/dist/{closing-template-DS8zFVJt.js → closing-template-CgLIA5Fw.js} +1 -1
- package/dist/{date2-hHwvNr68.js → date2-Dc5sFY0E.js} +1 -1
- package/dist/{dayjs.min-PqgQ_K75.js → dayjs.min-B-H7eU1F.js} +12 -12
- package/dist/{decimal-DOCxaZjf.js → decimal-BEqE-6GW.js} +2 -2
- package/dist/{defineDeepModel-CTlh0zvq.js → defineDeepModel-CXxtm-xp.js} +1 -1
- package/dist/{duplicate-template-F8fz-36_.js → duplicate-template-BX6XhNvd.js} +1 -1
- package/dist/feature-BsDnCbpL.js +25312 -0
- package/dist/{format-time-from-id-DTsuaGJG.js → format-time-from-id-Dhlv9sZk.js} +1 -1
- package/dist/{format-unit-display-DS3MzSfd.js → format-unit-display-B1WhMzNf.js} +246 -247
- package/dist/helper/reactivity.d.ts +11 -0
- package/dist/helper/reactivity.spec.d.ts +1 -0
- package/dist/{import-export.helper-BAUfb01o.js → import-export.helper-DaGtyevy.js} +5 -5
- package/dist/{index-CYZHYBBP.js → index-B2ziwUTD.js} +1 -1
- package/dist/{index-BX9ig-2t.js → index-CikPk76E.js} +3 -3
- package/dist/{index-D_kOnYds.js → index-CqbsiJk1.js} +60 -60
- package/dist/{lodash-Cqi23PoA.js → lodash-rwAZ9bXl.js} +1 -1
- package/dist/{netsuite-Cg_AEH3H.js → netsuite-SdH9FL9h.js} +254 -239
- package/dist/{purchase-order-template-Dh3D_2Tz.js → purchase-order-template-Daxs7lNG.js} +1 -1
- package/dist/{rules-C_FnXd1e.js → rules-81GqVkEm.js} +3 -3
- package/dist/{stock-DJDm1iIR.js → stock-BEmy7_Qs.js} +1 -1
- package/dist/{stock-BPdGitCC.js → stock-CpYHrEjC.js} +3 -3
- package/dist/stores/integration/netsuite.d.ts +86 -0
- package/dist/stores/inventory.d.ts +10 -669
- package/dist/{supplier-BtZVHCAl.js → supplier-Bw4fRGiq.js} +2 -2
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-n26Kr4C5.js → use-ingredient-select-dialog-CGTZ9UUP.js} +2 -2
- package/dist/{use-inventory-binding-dialog-kkpC2Tzi.js → use-inventory-binding-dialog-CUh7aMb7.js} +2 -2
- package/dist/{use-template-enabled-locations-2-4ou70XAL.js → use-template-enabled-locations-2-2oPspMus.js} +2 -2
- package/dist/views/receive-request/components/netsuite/NetSuitePanel.vue.d.ts +3 -2
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +3 -2
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +518 -2225
- package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +1430 -0
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-purchase-order-form-controller.d.ts +13974 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +3 -2
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +1 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +6 -6
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +7 -7
- package/dist/views/receive-request/helper/get-transfer-type.d.ts +1 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +3 -2
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +3 -2
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +4 -3
- package/dist/{vue-i18n-A7TH-x17.js → vue-i18n-Di6nYtv0.js} +378 -378
- package/dist/{xlsx-DRYtBAdX.js → xlsx-DXn_bv49.js} +1 -1
- package/dist/{xlsx.util-DGBUU4BN.js → xlsx.util-BawfHUuI.js} +1 -1
- package/package.json +3 -3
- package/dist/ReceiveRequestView-TwL3yVCN.js +0 -2821
- package/dist/feature-UnTx1VJG.js +0 -20162
- package/dist/views/receive-request/constants/purchase-order-transaction-type.d.ts +0 -4
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Recursively unwraps Vue reactive proxies to plain objects.
|
|
3
|
+
* Vue's `toRaw` only unwraps the immediate wrapper, not nested reactive objects.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* ```ts
|
|
7
|
+
* const reactive = ref({ nested: reactive({ value: 1 }) })
|
|
8
|
+
* const plain = deepToRaw(reactive.value) // { nested: { value: 1 } }
|
|
9
|
+
* ```
|
|
10
|
+
*/
|
|
11
|
+
export declare function deepToRaw<T>(value: T): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as w, t as H, i as T, I as P } from "./rules-
|
|
2
|
-
import { u as j } from "./feature-
|
|
1
|
+
import { a as w, t as H, i as T, I as P } from "./rules-81GqVkEm.js";
|
|
2
|
+
import { u as j } from "./feature-BsDnCbpL.js";
|
|
3
3
|
import { useCoreStore as g } from "@feedmepos/mf-common";
|
|
4
|
-
import { a as y, d as k, n as I, e as S } from "./app-
|
|
5
|
-
import { b as N, d as $, s as _ } from "./xlsx.util-
|
|
6
|
-
import { f as O } from "./date2-
|
|
4
|
+
import { a as y, d as k, n as I, e as S } from "./app-CaXDnJ-Z.js";
|
|
5
|
+
import { b as N, d as $, s as _ } from "./xlsx.util-BawfHUuI.js";
|
|
6
|
+
import { f as O } from "./date2-Dc5sFY0E.js";
|
|
7
7
|
function R() {
|
|
8
8
|
return {
|
|
9
9
|
low: 6,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { x, ag as V, ah as q, ai as Ne, a5 as cl, ad as sr, aj as Lt, ak as fl, al as $l } from "./app-CaXDnJ-Z.js";
|
|
2
2
|
function vl(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 { x as h } from "./app-CaXDnJ-Z.js";
|
|
2
2
|
var a = { exports: {} };
|
|
3
3
|
function x(r, s = 100, u = {}) {
|
|
4
4
|
if (typeof r != "function")
|
|
@@ -38,8 +38,8 @@ function x(r, s = 100, u = {}) {
|
|
|
38
38
|
}
|
|
39
39
|
a.exports.debounce = x;
|
|
40
40
|
a.exports = x;
|
|
41
|
-
var
|
|
42
|
-
const y = /* @__PURE__ */ h(
|
|
41
|
+
var g = a.exports;
|
|
42
|
+
const y = /* @__PURE__ */ h(g);
|
|
43
43
|
export {
|
|
44
44
|
y as d
|
|
45
45
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { u as p } from "./netsuite-
|
|
3
|
-
import { u as
|
|
4
|
-
import { useSnackbar as
|
|
5
|
-
import { u as m } from "./feature-
|
|
6
|
-
function
|
|
1
|
+
import { ref as v, computed as c } from "vue";
|
|
2
|
+
import { u as p } from "./netsuite-SdH9FL9h.js";
|
|
3
|
+
import { u as g, z as h, a as E, D as b } from "./app-CaXDnJ-Z.js";
|
|
4
|
+
import { useSnackbar as I } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as m } from "./feature-BsDnCbpL.js";
|
|
6
|
+
function C() {
|
|
7
7
|
return {
|
|
8
8
|
setting: {
|
|
9
9
|
_id: "",
|
|
@@ -28,137 +28,137 @@ function I() {
|
|
|
28
28
|
categories: []
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
const i =
|
|
32
|
-
function
|
|
31
|
+
const i = v(C());
|
|
32
|
+
function w() {
|
|
33
33
|
return {
|
|
34
34
|
// state
|
|
35
35
|
get isEnabled() {
|
|
36
36
|
return i.value.setting.enable;
|
|
37
37
|
},
|
|
38
38
|
get isBusinessLocation() {
|
|
39
|
-
return
|
|
39
|
+
return g().businessLevel;
|
|
40
40
|
},
|
|
41
41
|
get state() {
|
|
42
42
|
return i.value;
|
|
43
43
|
},
|
|
44
44
|
async init() {
|
|
45
|
-
var
|
|
46
|
-
const o = h();
|
|
45
|
+
var e, t, n, d;
|
|
46
|
+
const o = h(), a = E();
|
|
47
47
|
try {
|
|
48
|
-
const
|
|
49
|
-
i.value.menu = ((
|
|
50
|
-
const f = (((
|
|
51
|
-
...
|
|
52
|
-
_id:
|
|
48
|
+
const r = await a.readCachedMenu();
|
|
49
|
+
i.value.menu = ((e = r.modules) == null ? void 0 : e.item) ?? [], i.value.group = ((t = r.modules) == null ? void 0 : t.group) ?? [], i.value.variants = ((n = r.modules) == null ? void 0 : n.variant) ?? [];
|
|
50
|
+
const f = (((d = r.modules) == null ? void 0 : d.category) ?? []).map((s) => ({
|
|
51
|
+
...s,
|
|
52
|
+
_id: s._id === void 0 ? null : s._id
|
|
53
53
|
}));
|
|
54
54
|
i.value.categories = f, i.value.setting = await o.readSetting();
|
|
55
|
-
} catch (
|
|
56
|
-
|
|
55
|
+
} catch (r) {
|
|
56
|
+
I().open({
|
|
57
57
|
title: "Something went wrong",
|
|
58
58
|
message: "Cannot fetch integration info. Please try again.",
|
|
59
59
|
type: "error"
|
|
60
|
-
}), console.error("Error at fetching integration info",
|
|
60
|
+
}), console.error("Error at fetching integration info", r);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function S() {
|
|
66
66
|
return {
|
|
67
67
|
locationId: ""
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
const
|
|
71
|
-
function
|
|
72
|
-
const o =
|
|
70
|
+
const l = v(S());
|
|
71
|
+
function x() {
|
|
72
|
+
const o = g(), a = b();
|
|
73
73
|
return o.watchLocation(async (e) => {
|
|
74
74
|
if (m().enabledXilnexOpeningMigration) {
|
|
75
75
|
if (!e) {
|
|
76
|
-
|
|
76
|
+
l.value = S();
|
|
77
77
|
return;
|
|
78
78
|
}
|
|
79
|
-
|
|
80
|
-
const
|
|
81
|
-
|
|
79
|
+
l.value.locationId = e.dbName;
|
|
80
|
+
const n = await a.readLastClosing(e.dbName);
|
|
81
|
+
n ? l.value.closingDocumentId = n._id : l.value.closingDocumentId = "";
|
|
82
82
|
}
|
|
83
83
|
}), {
|
|
84
84
|
get isEnabled() {
|
|
85
85
|
const e = m();
|
|
86
|
-
return
|
|
86
|
+
return c(() => e.enabledXilnexOpeningMigration).value;
|
|
87
87
|
},
|
|
88
88
|
get state() {
|
|
89
|
-
return
|
|
89
|
+
return l.value;
|
|
90
90
|
},
|
|
91
91
|
async fetchClosingDocumentId() {
|
|
92
|
-
const e =
|
|
93
|
-
t ?
|
|
92
|
+
const e = g(), t = await a.readLastClosing(e.currentLocationDBName);
|
|
93
|
+
t ? l.value.closingDocumentId = t._id : l.value.closingDocumentId = "";
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function y() {
|
|
98
98
|
return {
|
|
99
99
|
locationId: ""
|
|
100
100
|
};
|
|
101
101
|
}
|
|
102
|
-
const
|
|
103
|
-
function
|
|
104
|
-
const o =
|
|
102
|
+
const u = v(y());
|
|
103
|
+
function D() {
|
|
104
|
+
const o = g(), a = b();
|
|
105
105
|
return o.watchLocation(async (e) => {
|
|
106
106
|
if (m()) {
|
|
107
107
|
if (!e) {
|
|
108
|
-
|
|
108
|
+
u.value = y();
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
|
-
|
|
112
|
-
const
|
|
113
|
-
|
|
111
|
+
u.value.locationId = e.dbName;
|
|
112
|
+
const n = await a.readLastClosing(e.dbName);
|
|
113
|
+
n ? u.value.closingDocumentId = n._id : u.value.closingDocumentId = "";
|
|
114
114
|
}
|
|
115
115
|
}), {
|
|
116
116
|
get isEnabled() {
|
|
117
117
|
const e = m();
|
|
118
|
-
return
|
|
118
|
+
return c(() => e.enabledSynergyOpeningMigration).value;
|
|
119
119
|
},
|
|
120
120
|
get state() {
|
|
121
|
-
return
|
|
121
|
+
return u.value;
|
|
122
122
|
},
|
|
123
123
|
async fetchClosingDocumentId() {
|
|
124
|
-
const e =
|
|
125
|
-
t ?
|
|
124
|
+
const e = g(), t = await a.readLastClosing(e.currentLocationDBName);
|
|
125
|
+
t ? u.value.closingDocumentId = t._id : u.value.closingDocumentId = "";
|
|
126
126
|
}
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
const o = p(),
|
|
129
|
+
function A() {
|
|
130
|
+
const o = p(), a = w(), e = x(), t = D(), n = c(() => o.isEnabled), d = c(() => a.isEnabled), r = c(() => e.isEnabled), f = c(() => t.isEnabled);
|
|
131
131
|
return {
|
|
132
132
|
get enabledIntegrations() {
|
|
133
133
|
return [
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
].filter((
|
|
134
|
+
n.value,
|
|
135
|
+
d.value,
|
|
136
|
+
r.value,
|
|
137
|
+
f.value
|
|
138
|
+
].filter((s) => s).length;
|
|
139
139
|
},
|
|
140
140
|
get isNetSuiteEnabled() {
|
|
141
|
-
return
|
|
141
|
+
return n.value;
|
|
142
142
|
},
|
|
143
143
|
async fetchFoodMarketHubSetting() {
|
|
144
144
|
try {
|
|
145
|
-
await
|
|
146
|
-
} catch (
|
|
147
|
-
console.error("Error fetching FoodMarketHub setting:",
|
|
145
|
+
await a.init();
|
|
146
|
+
} catch (s) {
|
|
147
|
+
console.error("Error fetching FoodMarketHub setting:", s);
|
|
148
148
|
}
|
|
149
149
|
},
|
|
150
150
|
async fetchNetSuiteSetting() {
|
|
151
151
|
try {
|
|
152
152
|
await o.readSetting();
|
|
153
|
-
} catch (
|
|
154
|
-
console.error("Error fetching NetSuite setting:",
|
|
153
|
+
} catch (s) {
|
|
154
|
+
console.error("Error fetching NetSuite setting:", s);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
159
|
export {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
160
|
+
x as a,
|
|
161
|
+
D as b,
|
|
162
|
+
A as c,
|
|
163
|
+
w as u
|
|
164
164
|
};
|