@feedmepos/mf-inventory-portal 1.0.3 → 1.0.5-dev
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-C1VupiZY.js → App-HiQFjdJ-.js} +1 -1
- package/dist/{ApprovalView-DplI9cBD.js → ApprovalView-CynLDEVc.js} +2 -2
- package/dist/{BindingsDialog-BRODuQYW.js → BindingsDialog-Bnp9wpfo.js} +2 -2
- package/dist/{BindingsPicker-BQJeW4T5.js → BindingsPicker-d0mYW8dg.js} +5 -5
- package/dist/{BindingsTable-DdPACqSs.js → BindingsTable-DTqY2ksc.js} +5 -5
- package/dist/ClosingDraftView-CWioP0pS.js +1394 -0
- package/dist/{ClosingTemplateView-BONrPuvT.js → ClosingTemplateView-BQrAl5fV.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-C9ZT6Hlg.js → DeliveryOrderPrintPreview-BDF8lY7Y.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-YdcIpvT7.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BN_xp-N6.js} +3 -3
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-B0cMgy-R.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BWUrzPyM.js} +1 -1
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DbCkYQRx.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-XhFhN0MD.js} +1 -1
- package/dist/{IngredientGroupView-K00nLk1c.js → IngredientGroupView-CyjtkSE4.js} +1 -1
- package/dist/{IngredientsView-B6Yu-gfy.js → IngredientsView-DcTIYA5r.js} +3 -3
- package/dist/IntegrationView-Jeh9aw2u.js +2148 -0
- package/dist/{InventoryBindingForm-Ck3YkMP8.js → InventoryBindingForm-dlNXDnnO.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Z0ofZoa5.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BeUd7kC6.js} +3 -3
- package/dist/{InventoryBindingSummary-mDDEGGrj.js → InventoryBindingSummary-BPvSql2a.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-p1otjx3-.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DFofvMkD.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Q7bKAXW1.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CaBtx2ad.js} +1 -1
- package/dist/{PublishView-DIGrMK7M.js → PublishView-4Mh9EtfQ.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-CIvH6ak4.js → PurchaseOrderPrintPreview-DFNVxR7Q.js} +1 -1
- package/dist/{ReceiveRequestView-Do8YpHUz.js → ReceiveRequestView-DGfyfwbS.js} +8 -8
- package/dist/{RecipeView-D87QEyUM.js → RecipeView-D-M9rodW.js} +3 -3
- package/dist/{StockView-BlAsmxkM.js → StockView-Dmy2nTn9.js} +6 -6
- package/dist/{SupplierView-CJW6pqqq.js → SupplierView-dwayUuSs.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-QGPSA275.js → TransferDetails.vue_vue_type_script_setup_true_lang-DtrWgdXq.js} +6 -6
- package/dist/{TransferTemplateView-Ufv0RRVH.js → TransferTemplateView-zl-E8FWk.js} +6 -6
- package/dist/{UnitView-CRJGTNRn.js → UnitView-DlgkMRfA.js} +3 -3
- package/dist/{WarehouseView-D_iqmtil.js → WarehouseView-Cwm2w_Li.js} +1 -1
- package/dist/api/closing.d.ts +7 -1
- package/dist/api/netsuite.d.ts +82 -0
- package/dist/api/stock.d.ts +44 -0
- package/dist/{app-DUVoMWjT.js → app-7jcARtWe.js} +2150 -2098
- package/dist/app.js +1 -1
- package/dist/{decimal-C2cu01Ty.js → decimal-Df15BvRp.js} +1 -1
- package/dist/{format-unit-display-BhApyqDh.js → format-unit-display-CEjqAYMQ.js} +2 -2
- package/dist/index-D1mi5w82.js +125 -0
- package/dist/{index-CzrCaC5N.js → index-D76OeHWL.js} +1 -1
- package/dist/{stock-BRe9UgbU.js → stock-C2o7RYsv.js} +35 -31
- package/dist/stores/feature.d.ts +4 -1
- package/dist/stores/integration/index.d.ts +1 -0
- package/dist/stores/integration/netsuite.d.ts +11 -0
- package/dist/stores/integration/xilnex.d.ts +12 -0
- package/dist/stores/inventory.d.ts +12 -12
- package/dist/stores/stock.d.ts +12 -12
- package/dist/{supplier-CjOLvGsU.js → supplier-DX4BGHJ3.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-316K96zh.js → use-ingredient-select-dialog-BQq-zLGA.js} +1 -1
- package/dist/{use-inventory-binding-dialog-fGBCj6Ba.js → use-inventory-binding-dialog-NM2fZkBw.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/integration/XilnexView.vue.d.ts +2 -0
- package/dist/views/integration/components/Xilnex/XilnexOpeningImport.vue.d.ts +2 -0
- package/dist/views/integration/components/Xilnex/XilnexProps.d.ts +7 -0
- package/dist/views/integration/components/Xilnex/XilnexSideSheet.vue.d.ts +24 -0
- package/dist/views/integration/components/Xilnex/importFn.d.ts +16 -0
- package/dist/views/integration/components/netsuite/AddLocationDialog.vue.d.ts +1334 -0
- package/dist/views/integration/components/netsuite/LocationConfigurationDialog.vue.d.ts +174 -0
- package/dist/views/integration/components/netsuite/LocationConfigurationDialogProps.d.ts +16 -0
- package/dist/views/integration/components/netsuite/NetSuiteLocationField.vue.d.ts +71 -0
- 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-DCtJpaCZ.js → vue-i18n-BRmzzMWS.js} +2 -2
- package/package.json +3 -2
- package/dist/ClosingDraftView-wCIesJUP.js +0 -1348
- package/dist/IntegrationView-CX3c7RQq.js +0 -1197
- package/dist/index-CrxvXOng.js +0 -84
package/dist/index-CrxvXOng.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { ref as l, computed as c } from "vue";
|
|
2
|
-
import { u as g, aP as d, b as m } from "./app-DUVoMWjT.js";
|
|
3
|
-
import { useSnackbar as f } from "@feedmepos/ui-library";
|
|
4
|
-
function b() {
|
|
5
|
-
return {
|
|
6
|
-
setting: {
|
|
7
|
-
_id: "",
|
|
8
|
-
enable: !1,
|
|
9
|
-
bindings: [],
|
|
10
|
-
uniqueCode: "",
|
|
11
|
-
branchCode: "",
|
|
12
|
-
server: {
|
|
13
|
-
password: "",
|
|
14
|
-
host: "",
|
|
15
|
-
username: "",
|
|
16
|
-
port: "",
|
|
17
|
-
directory: ""
|
|
18
|
-
},
|
|
19
|
-
histories: [],
|
|
20
|
-
modifiers: [],
|
|
21
|
-
exportAsJson: !1
|
|
22
|
-
},
|
|
23
|
-
menu: [],
|
|
24
|
-
group: [],
|
|
25
|
-
variants: [],
|
|
26
|
-
categories: []
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
const e = l(b());
|
|
30
|
-
function p() {
|
|
31
|
-
return {
|
|
32
|
-
// state
|
|
33
|
-
get isEnabled() {
|
|
34
|
-
return e.value.setting.enable;
|
|
35
|
-
},
|
|
36
|
-
get isBusinessLocation() {
|
|
37
|
-
return g().businessLevel;
|
|
38
|
-
},
|
|
39
|
-
get state() {
|
|
40
|
-
return e.value;
|
|
41
|
-
},
|
|
42
|
-
async init() {
|
|
43
|
-
var a, o, i, t;
|
|
44
|
-
const r = d();
|
|
45
|
-
try {
|
|
46
|
-
const n = await r.readMenu();
|
|
47
|
-
e.value.menu = ((a = n.modules) == null ? void 0 : a.item) ?? [], e.value.group = ((o = n.modules) == null ? void 0 : o.group) ?? [], e.value.variants = ((i = n.modules) == null ? void 0 : i.variant) ?? [];
|
|
48
|
-
const u = (((t = n.modules) == null ? void 0 : t.category) ?? []).map((s) => ({
|
|
49
|
-
...s,
|
|
50
|
-
_id: s._id === void 0 ? null : s._id
|
|
51
|
-
}));
|
|
52
|
-
e.value.categories = u, e.value.setting = await r.readSetting();
|
|
53
|
-
} catch (n) {
|
|
54
|
-
f().open({
|
|
55
|
-
title: "Something went wrong",
|
|
56
|
-
message: "Cannot fetch integration info. Please try again.",
|
|
57
|
-
type: "error"
|
|
58
|
-
}), console.error("Error at fetching integration info", n);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
function y() {
|
|
64
|
-
const r = m(), a = p(), o = c(() => r.isEnabled), i = c(() => a.isEnabled);
|
|
65
|
-
return {
|
|
66
|
-
get enabledIntegrations() {
|
|
67
|
-
return [o.value, i.value].filter((t) => t).length;
|
|
68
|
-
},
|
|
69
|
-
get isNetSuiteEnabled() {
|
|
70
|
-
return o.value;
|
|
71
|
-
},
|
|
72
|
-
async fetchFoodMarketHubSetting() {
|
|
73
|
-
try {
|
|
74
|
-
await a.init();
|
|
75
|
-
} catch (t) {
|
|
76
|
-
console.error("Error fetching FoodMarketHub setting:", t);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
export {
|
|
82
|
-
p as a,
|
|
83
|
-
y as u
|
|
84
|
-
};
|