@feedmepos/mf-inventory-portal 0.0.23-dev.1 → 0.0.23-dev.10
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-Y3Ez8Rjf.js → App-DDxwfi6I.js} +36 -31
- package/dist/{ApprovalView-BUU1G4Q2.js → ApprovalView-7rpIigm0.js} +4 -4
- package/dist/{BindingsDialog-8wc4Q0JQ.js → BindingsDialog-DbyzX6mw.js} +2 -2
- package/dist/{BindingsPicker-DGWN1LQc.js → BindingsPicker-FZfhZr5O.js} +2 -2
- package/dist/{BindingsTable-7NJP2jT6.js → BindingsTable-Bk2770OV.js} +6 -6
- package/dist/ClosingDraftView-D9CnCwak.js +772 -0
- package/dist/{ClosingTemplateView-9s7vmwaT.js → ClosingTemplateView-DkpHmTtx.js} +32 -31
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DjBiov5r.js +283 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-5DINn0ZB.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CBC214tP.js} +2 -2
- package/dist/{FmMultiselectDialog-7hok9sJP.js → FmMultiselectDialog-CK6xwOeG.js} +128 -124
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-IFTMUhET.js +329 -0
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-FQ0HjuL3.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-D0otwOX8.js} +1 -1
- package/dist/{IngredientGroupView-C3maHTCg.js → IngredientGroupView-D5XtVfIQ.js} +12 -11
- package/dist/IngredientsView-c7WnQiTv.js +1666 -0
- package/dist/{IntegrationView-gO4h89Wj.js → IntegrationView-CHkhMxVM.js} +50 -50
- package/dist/{InventoryBindingForm-dh3GeyG-.js → InventoryBindingForm-BUZ9MS5V.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CJuo3i7W.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-YIRre_Km.js} +13 -13
- package/dist/{InventoryBindingSummary-BPoPcEoe.js → InventoryBindingSummary-BUi0mjeC.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-olm8sZKt.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CpYtHPFH.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BezTV43V.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D8IH1X1o.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-Dix_fIoo.js → PurchaseOrderPrintPreview-BLuoVz5N.js} +1 -1
- package/dist/ReceiveRequestView-BNM5JdQO.js +4165 -0
- package/dist/{RecipeView-C4-a4IEW.js → RecipeView-DxRumcLY.js} +11 -10
- package/dist/{StockView-Du2txrIP.js → StockView-CZyeg3sX.js} +1356 -1457
- package/dist/{SupplierView-D_09FbQh.js → SupplierView-C2XLbf27.js} +2352 -783
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BQG6UzUU.js +1229 -0
- package/dist/{TransferTemplateView-j3CRy6Lc.js → TransferTemplateView-BCxZCU0i.js} +307 -307
- package/dist/{UnitView-BXw2Vwq1.js → UnitView-uGpE4txg.js} +81 -80
- package/dist/{WarehouseView-CKamiETC.js → WarehouseView-DvQVmixr.js} +25 -24
- package/dist/api/bill.d.ts +2 -2
- package/dist/api/closing-draft.d.ts +6 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/netsuite.d.ts +70 -0
- package/dist/{app-GUbzqEtW.js → app-BaOENyRY.js} +3425 -3343
- package/dist/app.d.ts +3 -0
- package/dist/app.js +1 -1
- package/dist/components/FmMinMaxInputRules.d.ts +4 -1
- package/dist/components/row-action.enum.d.ts +1 -0
- package/dist/{date2-CLE9fB2R.js → date2-CfGU3sHq.js} +1 -1
- package/dist/{dayjs.min-CY1d38w7.js → dayjs.min-BMk-E1IO.js} +17 -17
- package/dist/{decimal-SIjO6Mjw.js → decimal-BkLhxOFS.js} +1 -1
- package/dist/{defineDeepModel-l40rX7kr.js → defineDeepModel-Cy-_HBnw.js} +1 -1
- package/dist/{feature-BXruKUhX.js → feature-GoxrdjJJ.js} +23 -9
- package/dist/form-mode.enum-BKiNVH6A.js +4 -0
- package/dist/{format-time-from-id-CcFsBXmk.js → format-time-from-id-96hwVl9P.js} +1 -1
- package/dist/format-unit-display-Cp0DBbM8.js +1217 -0
- package/dist/{fuzzy-CVOV9zJc.js → fuzzy-CBGiL1wK.js} +1 -1
- package/dist/index-0HEhOwKT.js +12087 -0
- package/dist/{index-BX5KZXhI.js → index-CoL8wxbn.js} +126 -122
- package/dist/{index-m9e9nYfl.js → index-S7yfliEo.js} +1 -1
- package/dist/netsuite-D3VPLW8O.js +225 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/{row-action.enum-PMKMRrZR.js → row-action.enum-7rGLGZ5v.js} +10 -5
- package/dist/{rules-DlnN8IP3.js → rules-DxLLla7a.js} +40 -35
- package/dist/stock-BbFKtx1y.js +111 -0
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +81 -0
- package/dist/stores/inventory.d.ts +1 -4
- package/dist/style.css +1 -1
- package/dist/{supplier-B21WlSAM.js → supplier-gGovyyjr.js} +22 -22
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-D3x6xj2O.js → use-inventory-binding-dialog-DIBMf_9-.js} +2 -2
- package/dist/{use-template-enabled-locations-2-z-b-UXef.js → use-template-enabled-locations-2-Bof9JMYI.js} +2 -2
- package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +2 -0
- package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +22 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +447 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +22 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +2601 -0
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +24 -192
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +24 -192
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +40 -40
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +63 -63
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +63 -63
- package/dist/views/receive-request/helper/check-netsuite-subsidiary.helper.d.ts +1 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -8
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -96
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -96
- package/dist/{xlsx-6mM1eNiL.js → xlsx-DOnDmayp.js} +1 -1
- package/dist/{xlsx.util-BLftcF4q.js → xlsx.util-BqsQd9YP.js} +1 -1
- package/package.json +3 -3
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B4DDh9-a.js +0 -267
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-CxR1FCft.js +0 -326
- package/dist/IngredientsView-DCR3IBkR.js +0 -1613
- package/dist/ReceiveRequestView-DdPiYb2P.js +0 -4082
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9MOos--.js +0 -1144
- package/dist/format-unit-display-DEKg8cJm.js +0 -1198
- package/dist/index-CVsyOEb1.js +0 -10545
- package/dist/netsuite-DAKRv7zr.js +0 -146
- package/dist/normalizeArguments-DP7Hrren.js +0 -1552
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { j as v, h as S, u as f } from "./app-GUbzqEtW.js";
|
|
2
|
-
import { useCoreStore as b } from "@feedmepos/mf-common";
|
|
3
|
-
import { useSnackbar as y } from "@feedmepos/ui-library";
|
|
4
|
-
import { ref as I, computed as p } from "vue";
|
|
5
|
-
const N = v((d, l) => {
|
|
6
|
-
const t = b(), i = y();
|
|
7
|
-
return l.onError(async (s) => {
|
|
8
|
-
if (s instanceof S)
|
|
9
|
-
throw i == null || i.open({
|
|
10
|
-
title: s.title,
|
|
11
|
-
message: s.message,
|
|
12
|
-
type: "error"
|
|
13
|
-
}), s;
|
|
14
|
-
}), {
|
|
15
|
-
async readSetting() {
|
|
16
|
-
var a;
|
|
17
|
-
const s = ((a = t.currentBusiness.value) == null ? void 0 : a._id) ?? "", e = `${d.netSuiteBackendUrl}/${s}/settings`;
|
|
18
|
-
return await l.get(e);
|
|
19
|
-
},
|
|
20
|
-
urls: d
|
|
21
|
-
};
|
|
22
|
-
});
|
|
23
|
-
function L() {
|
|
24
|
-
return {
|
|
25
|
-
setting: {
|
|
26
|
-
_id: "",
|
|
27
|
-
items: [],
|
|
28
|
-
childItems: [],
|
|
29
|
-
units: [],
|
|
30
|
-
locations: [],
|
|
31
|
-
subsidiaries: [],
|
|
32
|
-
vendors: [],
|
|
33
|
-
enable: !1,
|
|
34
|
-
syncedAt: null
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
const r = I(L());
|
|
39
|
-
function M() {
|
|
40
|
-
const d = p(() => r.value.setting.items.groupBy("netSuiteId", (t) => t.id)), l = p(() => r.value.setting.units.flatMap((t) => t.measurements).groupBy("netSuiteId", (t) => t.id));
|
|
41
|
-
return {
|
|
42
|
-
// state
|
|
43
|
-
get isEnabled() {
|
|
44
|
-
return r.value.setting.enable;
|
|
45
|
-
},
|
|
46
|
-
get isBusinessLocation() {
|
|
47
|
-
return f().businessLevel;
|
|
48
|
-
},
|
|
49
|
-
get state() {
|
|
50
|
-
return r.value;
|
|
51
|
-
},
|
|
52
|
-
get netSuiteItemIdToSkuId() {
|
|
53
|
-
return d.value;
|
|
54
|
-
},
|
|
55
|
-
get netSuiteMeasurementIdToMeasurementId() {
|
|
56
|
-
return l.value;
|
|
57
|
-
},
|
|
58
|
-
getNetSuiteVendor(t) {
|
|
59
|
-
return r.value.setting.vendors.find((i) => i.id === t);
|
|
60
|
-
},
|
|
61
|
-
getNetSuiteLocation(t) {
|
|
62
|
-
const [i, s] = t.split("_");
|
|
63
|
-
return r.value.setting.locations.find((a) => a.id == s && a.type == i);
|
|
64
|
-
},
|
|
65
|
-
getLocationSubsidiary(t) {
|
|
66
|
-
var a;
|
|
67
|
-
if (!t)
|
|
68
|
-
return {
|
|
69
|
-
id: void 0,
|
|
70
|
-
name: "",
|
|
71
|
-
fullName: ""
|
|
72
|
-
};
|
|
73
|
-
const i = ((a = r.value.setting.locations.find((n) => n.netSuiteId === t)) == null ? void 0 : a.subsidiaryId) ?? null, { flat: s } = m(r.value.setting.subsidiaries), e = s.find((n) => n.id === i);
|
|
74
|
-
return {
|
|
75
|
-
id: e == null ? void 0 : e.id,
|
|
76
|
-
name: (e == null ? void 0 : e.name) || "",
|
|
77
|
-
fullName: `${(e == null ? void 0 : e.fullName) ?? ""}`
|
|
78
|
-
};
|
|
79
|
-
},
|
|
80
|
-
currentLocationSubsidiary() {
|
|
81
|
-
var c;
|
|
82
|
-
const t = f(), i = t.currentLocation.doc._id, s = t.currentLocation.type, e = ((c = r.value.setting.locations.find(
|
|
83
|
-
(o) => o.id === i && o.type == s
|
|
84
|
-
)) == null ? void 0 : c.subsidiaryId) ?? null, { flat: a } = m(r.value.setting.subsidiaries), n = a.find((o) => o.id === e);
|
|
85
|
-
return {
|
|
86
|
-
id: n == null ? void 0 : n.id,
|
|
87
|
-
name: (n == null ? void 0 : n.name) || "",
|
|
88
|
-
fullName: `${(n == null ? void 0 : n.fullName) ?? ""}`
|
|
89
|
-
};
|
|
90
|
-
},
|
|
91
|
-
currentVendorSubsidiary(t) {
|
|
92
|
-
var a;
|
|
93
|
-
const i = ((a = r.value.setting.vendors.find((n) => n.id === t)) == null ? void 0 : a.subsidiaryId) ?? null, { flat: s } = m(r.value.setting.subsidiaries), e = s.find((n) => n.id === i);
|
|
94
|
-
return {
|
|
95
|
-
id: e == null ? void 0 : e.id,
|
|
96
|
-
name: (e == null ? void 0 : e.name) || "",
|
|
97
|
-
fullName: `${(e == null ? void 0 : e.fullName) ?? ""}`
|
|
98
|
-
};
|
|
99
|
-
},
|
|
100
|
-
get subsidiaryOptions() {
|
|
101
|
-
const { flat: t } = m(r.value.setting.subsidiaries);
|
|
102
|
-
return t.map((i) => ({
|
|
103
|
-
label: `${" ".repeat(i.depth)}${i.name}`,
|
|
104
|
-
value: {
|
|
105
|
-
id: i.id,
|
|
106
|
-
name: i.name
|
|
107
|
-
}
|
|
108
|
-
}));
|
|
109
|
-
},
|
|
110
|
-
getAvailableItems(t) {
|
|
111
|
-
const { available: i } = m(r.value.setting.subsidiaries, t);
|
|
112
|
-
return r.value.setting.items.filter((s) => s.subsidiaryIds.some((e) => i.includes(e))).map((s) => s.id);
|
|
113
|
-
},
|
|
114
|
-
async readSetting() {
|
|
115
|
-
const i = await N().readSetting();
|
|
116
|
-
i && (this.state.setting = i);
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
function m(d, l) {
|
|
121
|
-
const t = [], i = [];
|
|
122
|
-
function s(n, c, o = !1) {
|
|
123
|
-
return d.filter((u) => u.parentId === c).map((u) => ((o || u.id === l || !l) && t.push(u.id), {
|
|
124
|
-
id: u.id,
|
|
125
|
-
name: u.name,
|
|
126
|
-
country: u.country,
|
|
127
|
-
currency: u.currency,
|
|
128
|
-
parentId: u.parentId,
|
|
129
|
-
depth: n,
|
|
130
|
-
children: s(n + 1, u.id, o || u.id === l)
|
|
131
|
-
}));
|
|
132
|
-
}
|
|
133
|
-
const e = s(0, null);
|
|
134
|
-
function a(n, c = "") {
|
|
135
|
-
const o = n.fullName || n.name, g = c ? `${c} : ${o}` : o;
|
|
136
|
-
i.push({ ...n, fullName: g }), n.children.forEach((u) => a(u, g));
|
|
137
|
-
}
|
|
138
|
-
return e.forEach((n) => a(n)), {
|
|
139
|
-
tree: e,
|
|
140
|
-
available: t,
|
|
141
|
-
flat: i
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
export {
|
|
145
|
-
M as u
|
|
146
|
-
};
|