@feedmepos/mf-inventory-portal 0.0.23-dev.2 → 0.0.23-dev.21
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-DRE3c1lJ.js → App-CvIvF0fg.js} +59 -51
- package/dist/{ApprovalView-B4ZYcS3B.js → ApprovalView-BOn2HDVY.js} +20 -23
- package/dist/{BindingsDialog-Df1yrWHU.js → BindingsDialog-9qfADiSA.js} +7 -7
- package/dist/{BindingsPicker-BERMWh4w.js → BindingsPicker-CpV9uOqj.js} +7 -8
- package/dist/{BindingsTable-DRIapOWW.js → BindingsTable-BYScxUTj.js} +16 -20
- package/dist/ClosingDraftView-DM7-3zOd.js +1116 -0
- package/dist/{ClosingTemplateView-CbFn3Sdy.js → ClosingTemplateView-Cye5VPAM.js} +66 -76
- package/dist/{FmDroppableField-8RzKjEdL.js → FmDroppableField-AIKfZo3H.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CQUsooGm.js +282 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BHSGZyJL.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CFQc-CBX.js} +121 -119
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DH5IQchQ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-2r8mut0B.js} +7 -7
- package/dist/{IngredientGroupView-DoETcEvV.js → IngredientGroupView-RNokzPJa.js} +30 -36
- package/dist/IngredientsView-M7K_GAEO.js +1660 -0
- package/dist/{IntegrationView-D1HeBiGF.js → IntegrationView-D9a8d1sO.js} +18 -20
- package/dist/{InventoryBindingForm-Dmz9BQ37.js → InventoryBindingForm-B0Gx5N1p.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DoyqVBOd.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DEOudgKD.js} +15 -17
- package/dist/{InventoryBindingSummary-DrpwiRGZ.js → InventoryBindingSummary-C16Nc5aN.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-yNEswIEI.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CZiypEex.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Br4_VUza.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BbYZwclN.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-cp671yWE.js → PurchaseOrderPrintPreview-DdKF8g0J.js} +13 -14
- package/dist/ReceiveRequestView-DBPRR6fz.js +4186 -0
- package/dist/{RecipeView-CD_dAWLo.js → RecipeView-CzUgVxKz.js} +58 -63
- package/dist/{StockView-DfUzFC1b.js → StockView-DCO3N1FS.js} +1338 -1446
- package/dist/{SupplierView-DB-zrNxh.js → SupplierView-CzV6DYSj.js} +2345 -783
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-00pcY0qu.js +1228 -0
- package/dist/TransferTemplateView-uL5PId9-.js +1265 -0
- package/dist/{UnitView-BlC9-WOA.js → UnitView-d-mCs-cS.js} +40 -44
- package/dist/{WarehouseView-CgEY87Lo.js → WarehouseView-B7z8m-Hv.js} +67 -73
- package/dist/api/adjustment-template.d.ts +23 -0
- 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 +69 -0
- package/dist/app-CTCC1zfY.js +58871 -0
- package/dist/app.d.ts +56 -0
- package/dist/app.js +2 -2
- package/dist/components/FmMinMaxInputRules.d.ts +4 -1
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/components/row-action.enum.d.ts +1 -0
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/{decimal-D7BCubZO.js → decimal-DhUR6QsF.js} +1 -1
- package/dist/{feature-BR-MsGYt.js → feature-DiGS5Fa4.js} +23 -9
- package/dist/format-unit-display-MRARpSlY.js +1210 -0
- package/dist/index-BSN3RnCl.js +12087 -0
- package/dist/netsuite-CIibMNer.js +251 -0
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-COHpOTJk.js +110 -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-aBuwVukl.js → supplier-csNwTHYl.js} +15 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-CLQ0LUmW.js → use-inventory-binding-dialog-172A48Xx.js} +10 -11
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +1295 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
- package/dist/views/adjustment-template/wastage-template/props.d.ts +29 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1273 -0
- 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 +451 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +25 -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-draft/helpers/export-draft.helper.d.ts +19 -0
- package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +4 -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/TransferForm.vue.d.ts +34 -34
- 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 +54 -54
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +54 -54
- 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/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- 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-BbtURTDy.js → xlsx-CH-bhcOL.js} +1 -1
- package/dist/{xlsx.util-zYS4OJFi.js → xlsx.util-4aHI7W-Z.js} +1 -1
- package/package.json +3 -3
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-7JYNssTm.js +0 -267
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-KbYSywk2.js +0 -436
- package/dist/FmMultiselectDialog-Da9JMCYa.js +0 -415
- package/dist/IngredientsView-DHAhj9pV.js +0 -1613
- package/dist/ReceiveRequestView-C1WBlpho.js +0 -4082
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-2mzqFGCz.js +0 -1144
- package/dist/TransferTemplateView-CaAJrqU6.js +0 -1262
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-CAyFhmAz.js +0 -33457
- package/dist/date2-D9i5izMt.js +0 -117
- package/dist/dayjs.min-SJKP9zBL.js +0 -282
- package/dist/defineDeepModel-DS4Shctf.js +0 -13
- package/dist/format-time-from-id-CUby60uW.js +0 -15
- package/dist/format-unit-display-D25Al2JZ.js +0 -1198
- package/dist/fuzzy-BryBtMz_.js +0 -41
- package/dist/index-ByJbUSIQ.js +0 -45
- package/dist/index-CFA_VFyX.js +0 -10545
- package/dist/index-CTvgBOum.js +0 -22280
- package/dist/netsuite-D0G4B60k.js +0 -146
- package/dist/normalizeArguments-DP7Hrren.js +0 -1552
- package/dist/row-action.enum-PMKMRrZR.js +0 -50
- package/dist/rules-DxVY0b7F.js +0 -198
- package/dist/use-template-enabled-locations-2-BgTiwy_3.js +0 -86
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { j as v, h as S, u as f } from "./app-CAyFhmAz.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
|
-
};
|