@feedmepos/mf-inventory-portal 1.0.5-dev → 1.0.5
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-HiQFjdJ-.js → App-BC040Les.js} +1 -1
- package/dist/{ApprovalView-CynLDEVc.js → ApprovalView-DCvl3a_5.js} +2 -2
- package/dist/{BindingsDialog-Bnp9wpfo.js → BindingsDialog-CrVuhZqk.js} +2 -2
- package/dist/{BindingsPicker-d0mYW8dg.js → BindingsPicker-lmFa-poh.js} +5 -5
- package/dist/{BindingsTable-DTqY2ksc.js → BindingsTable-CT_lSIYf.js} +5 -5
- package/dist/{ClosingDraftView-CWioP0pS.js → ClosingDraftView-DRc0FjAS.js} +2 -2
- package/dist/{ClosingTemplateView-BQrAl5fV.js → ClosingTemplateView-C_X0J-M4.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-BDF8lY7Y.js → DeliveryOrderPrintPreview-BneNiMcQ.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BN_xp-N6.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BJWjd3-f.js} +3 -3
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BWUrzPyM.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CAEBtWpw.js} +1 -1
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-XhFhN0MD.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BhfVsV9p.js} +1 -1
- package/dist/{IngredientGroupView-CyjtkSE4.js → IngredientGroupView-NyW26_DP.js} +1 -1
- package/dist/{IngredientsView-DcTIYA5r.js → IngredientsView-BN1jydVe.js} +3 -3
- package/dist/IntegrationView-CVbR75fb.js +1197 -0
- package/dist/{InventoryBindingForm-dlNXDnnO.js → InventoryBindingForm-Bf52xXaz.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BeUd7kC6.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BLCgDC82.js} +3 -3
- package/dist/{InventoryBindingSummary-BPvSql2a.js → InventoryBindingSummary-BM48Xk8j.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DFofvMkD.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DYSoSSzj.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CaBtx2ad.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DjtXgvRo.js} +1 -1
- package/dist/{PublishView-4Mh9EtfQ.js → PublishView-C_c9fd-9.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-DFNVxR7Q.js → PurchaseOrderPrintPreview-CmIP1Zpp.js} +1 -1
- package/dist/{ReceiveRequestView-DGfyfwbS.js → ReceiveRequestView-DJknUS-e.js} +507 -498
- package/dist/{RecipeView-D-M9rodW.js → RecipeView-nzgPP4xb.js} +3 -3
- package/dist/{StockView-Dmy2nTn9.js → StockView-DERznopJ.js} +6 -6
- package/dist/{SupplierView-dwayUuSs.js → SupplierView-B03zhGGq.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DtrWgdXq.js → TransferDetails.vue_vue_type_script_setup_true_lang-D709Nkfi.js} +6 -6
- package/dist/{TransferTemplateView-zl-E8FWk.js → TransferTemplateView-HLrkeo9I.js} +6 -6
- package/dist/{UnitView-DlgkMRfA.js → UnitView-yMNF61nI.js} +3 -3
- package/dist/{WarehouseView-Cwm2w_Li.js → WarehouseView-Cl8O3zEO.js} +1 -1
- package/dist/api/closing.d.ts +1 -7
- package/dist/api/netsuite.d.ts +0 -82
- package/dist/api/stock.d.ts +12 -12
- package/dist/{app-7jcARtWe.js → app-ByZGP6to.js} +1993 -2053
- package/dist/app.js +1 -1
- package/dist/{decimal-Df15BvRp.js → decimal-C6ZIb15B.js} +1 -1
- package/dist/{format-unit-display-CEjqAYMQ.js → format-unit-display-Bixr5QQV.js} +2 -2
- package/dist/{index-D76OeHWL.js → index-3ud7W_2Y.js} +1 -1
- package/dist/index-CoqRZydm.js +84 -0
- package/dist/{stock-C2o7RYsv.js → stock-DpKjVgzG.js} +1 -1
- package/dist/stores/feature.d.ts +1 -4
- package/dist/stores/integration/index.d.ts +0 -1
- package/dist/stores/integration/netsuite.d.ts +0 -11
- package/dist/stores/inventory.d.ts +12 -12
- package/dist/stores/stock.d.ts +12 -12
- package/dist/{supplier-DX4BGHJ3.js → supplier-DfKwECUI.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-BQq-zLGA.js → use-ingredient-select-dialog-Cs5SmNLE.js} +1 -1
- package/dist/{use-inventory-binding-dialog-NM2fZkBw.js → use-inventory-binding-dialog-9RGXAtLh.js} +1 -1
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +40 -40
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +240 -240
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +32 -32
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +66 -66
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +66 -66
- package/dist/{vue-i18n-BRmzzMWS.js → vue-i18n-DR_smMg1.js} +392 -392
- package/package.json +2 -3
- package/dist/IntegrationView-Jeh9aw2u.js +0 -2148
- package/dist/index-D1mi5w82.js +0 -125
- package/dist/stores/integration/xilnex.d.ts +0 -12
- package/dist/views/integration/XilnexView.vue.d.ts +0 -2
- package/dist/views/integration/components/Xilnex/XilnexOpeningImport.vue.d.ts +0 -2
- package/dist/views/integration/components/Xilnex/XilnexProps.d.ts +0 -7
- package/dist/views/integration/components/Xilnex/XilnexSideSheet.vue.d.ts +0 -24
- package/dist/views/integration/components/Xilnex/importFn.d.ts +0 -16
- package/dist/views/integration/components/netsuite/AddLocationDialog.vue.d.ts +0 -1334
- package/dist/views/integration/components/netsuite/LocationConfigurationDialog.vue.d.ts +0 -174
- package/dist/views/integration/components/netsuite/LocationConfigurationDialogProps.d.ts +0 -16
- package/dist/views/integration/components/netsuite/NetSuiteLocationField.vue.d.ts +0 -71
package/dist/index-D1mi5w82.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { ref as f, computed as l } from "vue";
|
|
2
|
-
import { u as g, aP as b, aJ as v, c as d, b as S } from "./app-7jcARtWe.js";
|
|
3
|
-
import { useSnackbar as p } from "@feedmepos/ui-library";
|
|
4
|
-
import "@feedmepos/mf-common";
|
|
5
|
-
function h() {
|
|
6
|
-
return {
|
|
7
|
-
setting: {
|
|
8
|
-
_id: "",
|
|
9
|
-
enable: !1,
|
|
10
|
-
bindings: [],
|
|
11
|
-
uniqueCode: "",
|
|
12
|
-
branchCode: "",
|
|
13
|
-
server: {
|
|
14
|
-
password: "",
|
|
15
|
-
host: "",
|
|
16
|
-
username: "",
|
|
17
|
-
port: "",
|
|
18
|
-
directory: ""
|
|
19
|
-
},
|
|
20
|
-
histories: [],
|
|
21
|
-
modifiers: [],
|
|
22
|
-
exportAsJson: !1
|
|
23
|
-
},
|
|
24
|
-
menu: [],
|
|
25
|
-
group: [],
|
|
26
|
-
variants: [],
|
|
27
|
-
categories: []
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
const s = f(h());
|
|
31
|
-
function E() {
|
|
32
|
-
return {
|
|
33
|
-
// state
|
|
34
|
-
get isEnabled() {
|
|
35
|
-
return s.value.setting.enable;
|
|
36
|
-
},
|
|
37
|
-
get isBusinessLocation() {
|
|
38
|
-
return g().businessLevel;
|
|
39
|
-
},
|
|
40
|
-
get state() {
|
|
41
|
-
return s.value;
|
|
42
|
-
},
|
|
43
|
-
async init() {
|
|
44
|
-
var a, e, t, i;
|
|
45
|
-
const n = b();
|
|
46
|
-
try {
|
|
47
|
-
const o = await n.readMenu();
|
|
48
|
-
s.value.menu = ((a = o.modules) == null ? void 0 : a.item) ?? [], s.value.group = ((e = o.modules) == null ? void 0 : e.group) ?? [], s.value.variants = ((t = o.modules) == null ? void 0 : t.variant) ?? [];
|
|
49
|
-
const r = (((i = o.modules) == null ? void 0 : i.category) ?? []).map((c) => ({
|
|
50
|
-
...c,
|
|
51
|
-
_id: c._id === void 0 ? null : c._id
|
|
52
|
-
}));
|
|
53
|
-
s.value.categories = r, s.value.setting = await n.readSetting();
|
|
54
|
-
} catch (o) {
|
|
55
|
-
p().open({
|
|
56
|
-
title: "Something went wrong",
|
|
57
|
-
message: "Cannot fetch integration info. Please try again.",
|
|
58
|
-
type: "error"
|
|
59
|
-
}), console.error("Error at fetching integration info", o);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
function m() {
|
|
65
|
-
return {
|
|
66
|
-
locationId: ""
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
const u = f(m());
|
|
70
|
-
function x() {
|
|
71
|
-
const n = g(), a = v();
|
|
72
|
-
return n.watchLocation(async (e) => {
|
|
73
|
-
if (d().enabledXilnexOpeningMigration) {
|
|
74
|
-
if (!e) {
|
|
75
|
-
u.value = m();
|
|
76
|
-
return;
|
|
77
|
-
}
|
|
78
|
-
u.value.locationId = e.dbName;
|
|
79
|
-
const i = await a.readLastClosing(e.dbName);
|
|
80
|
-
i ? u.value.closingDocumentId = i._id : u.value.closingDocumentId = "";
|
|
81
|
-
}
|
|
82
|
-
}), {
|
|
83
|
-
get isEnabled() {
|
|
84
|
-
const e = d();
|
|
85
|
-
return l(() => e.enabledXilnexOpeningMigration).value;
|
|
86
|
-
},
|
|
87
|
-
get state() {
|
|
88
|
-
return u.value;
|
|
89
|
-
},
|
|
90
|
-
async fetchClosingDocumentId() {
|
|
91
|
-
const e = g(), t = await a.readLastClosing(e.currentLocationDBName);
|
|
92
|
-
t ? u.value.closingDocumentId = t._id : u.value.closingDocumentId = "";
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
function F() {
|
|
97
|
-
const n = S(), a = E(), e = x(), t = l(() => n.isEnabled), i = l(() => a.isEnabled), o = l(() => e.isEnabled);
|
|
98
|
-
return {
|
|
99
|
-
get enabledIntegrations() {
|
|
100
|
-
return [t.value, i.value, o.value].filter((r) => r).length;
|
|
101
|
-
},
|
|
102
|
-
get isNetSuiteEnabled() {
|
|
103
|
-
return t.value;
|
|
104
|
-
},
|
|
105
|
-
async fetchFoodMarketHubSetting() {
|
|
106
|
-
try {
|
|
107
|
-
await a.init();
|
|
108
|
-
} catch (r) {
|
|
109
|
-
console.error("Error fetching FoodMarketHub setting:", r);
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
async fetchNetSuiteSetting() {
|
|
113
|
-
try {
|
|
114
|
-
await n.readSetting();
|
|
115
|
-
} catch (r) {
|
|
116
|
-
console.error("Error fetching NetSuite setting:", r);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
export {
|
|
122
|
-
E as a,
|
|
123
|
-
x as b,
|
|
124
|
-
F as u
|
|
125
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface NetSuiteState {
|
|
2
|
-
locationId: string;
|
|
3
|
-
closingDocumentId?: string;
|
|
4
|
-
}
|
|
5
|
-
export declare function useXilnexStore(): {
|
|
6
|
-
readonly isEnabled: boolean;
|
|
7
|
-
readonly state: {
|
|
8
|
-
locationId: string;
|
|
9
|
-
closingDocumentId?: string | undefined;
|
|
10
|
-
};
|
|
11
|
-
fetchClosingDocumentId(): Promise<void>;
|
|
12
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { XilnexSideSheetProps } from './XilnexProps';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<XilnexSideSheetProps>, {}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
|
-
"update:show": (show: boolean) => void;
|
|
4
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<XilnexSideSheetProps>, {}>>> & Readonly<{
|
|
5
|
-
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
6
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
-
export default _default;
|
|
8
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
10
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
-
} : {
|
|
13
|
-
type: import('vue').PropType<T[K]>;
|
|
14
|
-
required: true;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
type __VLS_WithDefaults<P, D> = {
|
|
18
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
19
|
-
default: D[K];
|
|
20
|
-
}> : P[K];
|
|
21
|
-
};
|
|
22
|
-
type __VLS_Prettify<T> = {
|
|
23
|
-
[K in keyof T]: T[K];
|
|
24
|
-
} & {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface XilnexErrorData {
|
|
2
|
-
row: number;
|
|
3
|
-
itemCode: string;
|
|
4
|
-
itemName: string;
|
|
5
|
-
qty?: string;
|
|
6
|
-
message: string;
|
|
7
|
-
}
|
|
8
|
-
export interface XilnexOpeningBalanceRowDraft {
|
|
9
|
-
skuAdjustment: FdoSkuAdjustment;
|
|
10
|
-
skuBalance: FdoSkuBalance;
|
|
11
|
-
}
|
|
12
|
-
export interface XilnexOpeningBalanceDraft {
|
|
13
|
-
errors: XilnexErrorData[];
|
|
14
|
-
rows: Record<string, XilnexOpeningBalanceRowDraft>;
|
|
15
|
-
}
|
|
16
|
-
export declare function importXilnexExcel(unitAverageCosts: Record<string, number>, skuDocs: FdoInventorySku[], file: File): Promise<XilnexOpeningBalanceDraft>;
|