@feedmepos/mf-inventory-portal 0.0.23-dev.4 → 0.0.23-dev.41
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-DReDvY0M.js → App-DW2K97Bb.js} +84 -72
- package/dist/{ApprovalView-BMZlYmRk.js → ApprovalView-BgSxdrwt.js} +25 -28
- package/dist/{BindingsDialog-Y2K4I7H7.js → BindingsDialog-CQtusdvp.js} +6 -6
- package/dist/{BindingsPicker-DKBq9c37.js → BindingsPicker-BnEjRAah.js} +8 -9
- package/dist/{BindingsTable-45v4SDfp.js → BindingsTable-DpTPAef_.js} +18 -22
- package/dist/ClosingDraftView-CXKYLCZS.js +1190 -0
- package/dist/{ClosingTemplateView-CKJVYSbj.js → ClosingTemplateView-CMTJHywt.js} +271 -285
- package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-zOmcCdDR.js +142 -0
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CMEOp-0r.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-mAPA5_sB.js} +18 -19
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C1DjyjyH.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BjNpfucZ.js} +25 -26
- package/dist/{IngredientGroupView-BuP-HGeg.js → IngredientGroupView-CrEfiZvn.js} +63 -69
- package/dist/IngredientsView-BB8LQlU9.js +1707 -0
- package/dist/{IntegrationView-kYCaKG0o.js → IntegrationView-D2wTkDyX.js} +89 -92
- package/dist/{InventoryBindingForm-BXHq4h-n.js → InventoryBindingForm-DW7rJDc1.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CVxJ_bV3.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ci8UI1eQ.js} +112 -104
- package/dist/{InventoryBindingSummary-Bjasfc_v.js → InventoryBindingSummary-B40KofiI.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DM0C4raP.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DD7VT9MS.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C3O3JebE.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BGuXTfn6.js} +19 -20
- package/dist/{PurchaseOrderPrintPreview-CmjkfTTS.js → PurchaseOrderPrintPreview-DQmx28Be.js} +17 -18
- package/dist/ReceiveRequestView-CJknzKfd.js +4205 -0
- package/dist/RecipeView-D5oWQ9Yd.js +609 -0
- package/dist/StockView-U59PHCy2.js +1818 -0
- package/dist/{SupplierView-DAx7E7sR.js → SupplierView-CLjjpTNZ.js} +2325 -787
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DLDDXnyG.js +1327 -0
- package/dist/TransferTemplateView-CFoVrPIX.js +1264 -0
- package/dist/{UnitView-CQPGZ8-r.js → UnitView-CAopphN_.js} +228 -227
- package/dist/{WarehouseView-jy-RNCgy.js → WarehouseView-DUZku5U6.js} +100 -106
- package/dist/api/adjustment-template.d.ts +25 -0
- package/dist/api/bill.d.ts +240 -84
- package/dist/api/closing-draft.d.ts +6 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/inventory.d.ts +15 -6
- package/dist/api/netsuite.d.ts +3 -3
- package/dist/app-0klJzLit.js +84527 -0
- package/dist/app.d.ts +64 -0
- package/dist/app.js +2 -2
- package/dist/components/FmCustomAttribute.vue.d.ts +23 -0
- package/dist/components/FmLockableField.vue.d.ts +37 -0
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +3 -1
- package/dist/components/row-action.enum.d.ts +1 -0
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +3 -1
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/{decimal-BAc9M88Q.js → decimal-Cu4rlnvU.js} +1 -1
- package/dist/feature-C1wCaXKQ.js +946 -0
- package/dist/format-unit-display-CMa5UhY1.js +1215 -0
- package/dist/{StockView-D9no-mrA.js → index-BJaMpEVJ.js} +2242 -3986
- package/dist/index-HTBqkVVr.js +29202 -0
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-CB4yNRMO.js +125 -0
- package/dist/stores/feature.d.ts +6 -0
- package/dist/stores/integration/netsuite.d.ts +70 -2
- package/dist/stores/inventory.d.ts +21 -12
- package/dist/stores/supplier.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-DJC0UZWv.js → supplier-biIIXGyr.js} +15 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-PEQbFRvO.js → use-inventory-binding-dialog-BopoOOxB.js} +10 -11
- package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
- package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
- package/dist/views/adjustment-template/import/export.d.ts +60 -0
- 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/WastageTemplateReason.vue.d.ts +18 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +1329 -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 +36 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1303 -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 +625 -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 +3645 -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/components/closing-template-form/composables/use-closing-template-items.d.ts +2 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +48 -204
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +49 -205
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +6 -3
- package/dist/views/ingredients/components/convert/ConvertFormProps.d.ts +1 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -2
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +1 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +2 -1
- package/dist/views/receive-request/components/netsuite/NetSuiteInfo.vue.d.ts +12 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +13 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteSync.vue.d.ts +12 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +13 -0
- package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +1 -1
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +70 -17
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +4 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +2 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +102 -24
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +102 -24
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +120 -42
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +6 -4
- 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 +2 -1
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +24 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +24 -12
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +2 -1
- package/package.json +7 -6
- package/dist/FmDroppableField-8RzKjEdL.js +0 -154
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BhdcqRh-.js +0 -436
- package/dist/FmMultiselectDialog-D7YtdoyJ.js +0 -415
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-zjvFEF5C.js +0 -51
- package/dist/IngredientsView-DMRN-odY.js +0 -1613
- package/dist/ReceiveRequestView-aQZJO8sq.js +0 -4165
- package/dist/RecipeView-DXO43tFi.js +0 -597
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DCA0RUfu.js +0 -1209
- package/dist/TransferTemplateView-CfxdQF1t.js +0 -1261
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-KnSMkJBV.js +0 -33496
- package/dist/date2-CIeUqUIc.js +0 -117
- package/dist/dayjs.min-Df5jSnDJ.js +0 -282
- package/dist/defineDeepModel-BfuQAIoM.js +0 -13
- package/dist/feature-dwB4OxRQ.js +0 -86
- package/dist/format-time-from-id-BbvzyIN6.js +0 -15
- package/dist/format-unit-display-BBWblJEt.js +0 -1216
- package/dist/fuzzy-B9ryZ9VZ.js +0 -41
- package/dist/index-BN0CY3sZ.js +0 -22277
- package/dist/index-Bj1fJum-.js +0 -45
- package/dist/index-C4yL_7rR.js +0 -10545
- package/dist/netsuite-ByWOS6tI.js +0 -194
- package/dist/normalizeArguments-DP7Hrren.js +0 -1552
- package/dist/row-action.enum-PMKMRrZR.js +0 -50
- package/dist/rules-C12nWDD1.js +0 -198
- package/dist/use-template-enabled-locations-2-k9g5t8tt.js +0 -86
- package/dist/xlsx-B4XHad7S.js +0 -24004
- package/dist/xlsx.util-BSO4SHJi.js +0 -78
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import { j as b, h as S, u as p } from "./app-KnSMkJBV.js";
|
|
2
|
-
import { useCoreStore as I } from "@feedmepos/mf-common";
|
|
3
|
-
import { useSnackbar as N } from "@feedmepos/ui-library";
|
|
4
|
-
import { ref as h, computed as y } from "vue";
|
|
5
|
-
const v = b((m, l) => {
|
|
6
|
-
const t = I(), i = N();
|
|
7
|
-
return l.onError(async (n) => {
|
|
8
|
-
if (n instanceof S)
|
|
9
|
-
throw i == null || i.open({
|
|
10
|
-
title: n.title,
|
|
11
|
-
message: n.message,
|
|
12
|
-
type: "error"
|
|
13
|
-
}), n;
|
|
14
|
-
}), {
|
|
15
|
-
async readSetting() {
|
|
16
|
-
var s;
|
|
17
|
-
const n = ((s = t.currentBusiness.value) == null ? void 0 : s._id) ?? "", e = `${m.netSuiteBackendUrl}/${n}/settings`;
|
|
18
|
-
return await l.get(e);
|
|
19
|
-
},
|
|
20
|
-
async syncPurchaseOrder(n, e) {
|
|
21
|
-
var o;
|
|
22
|
-
const s = ((o = t.currentBusiness.value) == null ? void 0 : o._id) ?? "", a = `${m.netSuiteBackendUrl}/${s}/sync/purchase-order`;
|
|
23
|
-
return await l.post(a, {
|
|
24
|
-
purchaseOrderId: n,
|
|
25
|
-
locationId: e
|
|
26
|
-
});
|
|
27
|
-
},
|
|
28
|
-
urls: m
|
|
29
|
-
};
|
|
30
|
-
});
|
|
31
|
-
function L() {
|
|
32
|
-
return {
|
|
33
|
-
setting: {
|
|
34
|
-
_id: "",
|
|
35
|
-
items: [],
|
|
36
|
-
childItems: [],
|
|
37
|
-
units: [],
|
|
38
|
-
locations: [],
|
|
39
|
-
subsidiaries: [],
|
|
40
|
-
vendors: [],
|
|
41
|
-
enable: !1,
|
|
42
|
-
syncedAt: null
|
|
43
|
-
},
|
|
44
|
-
vendorSubsidiary: {},
|
|
45
|
-
isReady: !1
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
const u = h(L());
|
|
49
|
-
function w() {
|
|
50
|
-
const m = y(() => u.value.setting.items.groupBy("netSuiteId", (t) => t.id)), l = y(() => u.value.setting.units.flatMap((t) => t.measurements).groupBy("netSuiteId", (t) => t.id));
|
|
51
|
-
return {
|
|
52
|
-
// state
|
|
53
|
-
get isReady() {
|
|
54
|
-
return u.value.isReady;
|
|
55
|
-
},
|
|
56
|
-
get isEnabled() {
|
|
57
|
-
return u.value.setting.enable;
|
|
58
|
-
},
|
|
59
|
-
get isBusinessLocation() {
|
|
60
|
-
return p().businessLevel;
|
|
61
|
-
},
|
|
62
|
-
get state() {
|
|
63
|
-
return u.value;
|
|
64
|
-
},
|
|
65
|
-
get netSuiteItemIdToSkuId() {
|
|
66
|
-
return m.value;
|
|
67
|
-
},
|
|
68
|
-
get netSuiteMeasurementIdToMeasurementId() {
|
|
69
|
-
return l.value;
|
|
70
|
-
},
|
|
71
|
-
getNetSuiteVendor(t) {
|
|
72
|
-
return u.value.setting.vendors.find((i) => i.id === t);
|
|
73
|
-
},
|
|
74
|
-
getNetSuiteLocation(t) {
|
|
75
|
-
const [i, n] = t.split("_");
|
|
76
|
-
return u.value.setting.locations.find((s) => s.id == n && s.type == i);
|
|
77
|
-
},
|
|
78
|
-
getLocationSubsidiary(t) {
|
|
79
|
-
var s;
|
|
80
|
-
if (!t)
|
|
81
|
-
return {
|
|
82
|
-
id: void 0,
|
|
83
|
-
name: "",
|
|
84
|
-
fullName: ""
|
|
85
|
-
};
|
|
86
|
-
const i = ((s = u.value.setting.locations.find((a) => a.netSuiteId === t)) == null ? void 0 : s.subsidiaryId) ?? null, { flat: n } = g(u.value.setting.subsidiaries), e = n.find((a) => a.id === i);
|
|
87
|
-
return {
|
|
88
|
-
id: e == null ? void 0 : e.id,
|
|
89
|
-
name: (e == null ? void 0 : e.name) || "",
|
|
90
|
-
fullName: `${(e == null ? void 0 : e.fullName) ?? ""}`
|
|
91
|
-
};
|
|
92
|
-
},
|
|
93
|
-
currentLocationSubsidiary() {
|
|
94
|
-
var o;
|
|
95
|
-
const t = p(), i = t.currentLocation.doc._id, n = t.currentLocation.type, e = ((o = u.value.setting.locations.find(
|
|
96
|
-
(r) => r.id === i && r.type == n
|
|
97
|
-
)) == null ? void 0 : o.subsidiaryId) ?? null, { flat: s } = g(u.value.setting.subsidiaries), a = s.find((r) => r.id === e);
|
|
98
|
-
return {
|
|
99
|
-
id: a == null ? void 0 : a.id,
|
|
100
|
-
name: (a == null ? void 0 : a.name) || "",
|
|
101
|
-
fullName: `${(a == null ? void 0 : a.fullName) ?? ""}`
|
|
102
|
-
};
|
|
103
|
-
},
|
|
104
|
-
currentVendorSubsidiary(t) {
|
|
105
|
-
var s;
|
|
106
|
-
const i = ((s = u.value.setting.vendors.find((a) => a.id === t)) == null ? void 0 : s.subsidiaryId) ?? null, { flat: n } = g(u.value.setting.subsidiaries), e = n.find((a) => a.id === i);
|
|
107
|
-
return {
|
|
108
|
-
id: e == null ? void 0 : e.id,
|
|
109
|
-
name: (e == null ? void 0 : e.name) || "",
|
|
110
|
-
fullName: `${(e == null ? void 0 : e.fullName) ?? ""}`
|
|
111
|
-
};
|
|
112
|
-
},
|
|
113
|
-
get subsidiaryOptions() {
|
|
114
|
-
const { flat: t } = g(u.value.setting.subsidiaries);
|
|
115
|
-
return t.map((i) => ({
|
|
116
|
-
label: `${" ".repeat(i.depth)}${i.name}`,
|
|
117
|
-
value: {
|
|
118
|
-
id: i.id,
|
|
119
|
-
name: i.name
|
|
120
|
-
}
|
|
121
|
-
}));
|
|
122
|
-
},
|
|
123
|
-
getAvailableItems(t) {
|
|
124
|
-
const { available: i } = g(u.value.setting.subsidiaries, t);
|
|
125
|
-
return u.value.setting.items.filter((n) => n.subsidiaryIds.some((e) => i.includes(e))).map((n) => n.id);
|
|
126
|
-
},
|
|
127
|
-
getAvailableMeasurements(t, i) {
|
|
128
|
-
const n = u.value.setting.items.find((r) => r.id === t);
|
|
129
|
-
if (!n)
|
|
130
|
-
return [];
|
|
131
|
-
const { available: e, flatMapping: s } = g(
|
|
132
|
-
u.value.setting.subsidiaries,
|
|
133
|
-
i
|
|
134
|
-
), o = u.value.setting.childItems.filter((r) => {
|
|
135
|
-
let c = r.subsidiaryIds;
|
|
136
|
-
if (r.includeChildren == !0)
|
|
137
|
-
for (const f of r.subsidiaryIds)
|
|
138
|
-
c = c.concat(s[f]);
|
|
139
|
-
return c = [...new Set(c)], r.parentNetSuiteId === n.netSuiteId && c.some((f) => e.includes(f));
|
|
140
|
-
}).flatMap((r) => r.unitTypeId);
|
|
141
|
-
return u.value.setting.units.filter((r) => o.includes(r.netSuiteId)).flatMap((r) => r.measurements).map((r) => r.id);
|
|
142
|
-
},
|
|
143
|
-
async readSetting() {
|
|
144
|
-
console.log("netsuite init");
|
|
145
|
-
const i = await v().readSetting();
|
|
146
|
-
if (i) {
|
|
147
|
-
this.state.setting = i;
|
|
148
|
-
const { flat: n } = g(u.value.setting.subsidiaries);
|
|
149
|
-
for (const e of i.vendors) {
|
|
150
|
-
const s = n.find((a) => a.id === e.subsidiaryId);
|
|
151
|
-
this.state.vendorSubsidiary[e.id] = (s == null ? void 0 : s.fullName) || "";
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
this.state.isReady = !0;
|
|
155
|
-
},
|
|
156
|
-
getVendorSubsidiaryName(t) {
|
|
157
|
-
return this.state.vendorSubsidiary[t] || "";
|
|
158
|
-
},
|
|
159
|
-
async syncPurchaseOrder(t) {
|
|
160
|
-
const i = v(), n = p(), e = n.currentLocation.doc._id, s = n.currentLocation.type;
|
|
161
|
-
await i.syncPurchaseOrder(t, `${s}_${e}`);
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
function g(m, l) {
|
|
166
|
-
const t = [], i = [];
|
|
167
|
-
function n(o, r, c = !1) {
|
|
168
|
-
return m.filter((d) => d.parentId === r).map((d) => ((c || d.id === l || !l) && t.push(d.id), {
|
|
169
|
-
id: d.id,
|
|
170
|
-
name: d.name,
|
|
171
|
-
country: d.country,
|
|
172
|
-
currency: d.currency,
|
|
173
|
-
parentId: d.parentId,
|
|
174
|
-
depth: o,
|
|
175
|
-
children: n(o + 1, d.id, c || d.id === l)
|
|
176
|
-
}));
|
|
177
|
-
}
|
|
178
|
-
const e = n(0, null), s = {};
|
|
179
|
-
function a(o, r = "") {
|
|
180
|
-
const c = o.fullName || o.name, f = r ? `${r} : ${c}` : c;
|
|
181
|
-
i.push({ ...o, fullName: f }), s[o.id] = [o.id];
|
|
182
|
-
for (const d of o.children)
|
|
183
|
-
a(d, f), s[o.id].push(...s[d.id]);
|
|
184
|
-
}
|
|
185
|
-
return e.forEach((o) => a(o)), {
|
|
186
|
-
tree: e,
|
|
187
|
-
available: t,
|
|
188
|
-
flat: i,
|
|
189
|
-
flatMapping: s
|
|
190
|
-
};
|
|
191
|
-
}
|
|
192
|
-
export {
|
|
193
|
-
w as u
|
|
194
|
-
};
|