@feedmepos/mf-inventory-portal 0.0.23-dev.3 → 0.0.23-dev.30
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-BREfwtck.js → App-Brc7GX7l.js} +85 -73
- package/dist/{ApprovalView-DCzLx24G.js → ApprovalView-CMRd7pcC.js} +24 -27
- package/dist/{BindingsDialog-CUcC8lue.js → BindingsDialog-DoakDtFI.js} +4 -4
- package/dist/{BindingsPicker-3VOdZBWI.js → BindingsPicker-BC3rjqKw.js} +8 -9
- package/dist/{BindingsTable-D5Lt6GOO.js → BindingsTable-xKRvhEV5.js} +18 -22
- package/dist/ClosingDraftView-DlaVbAHy.js +1190 -0
- package/dist/{ClosingTemplateView-CukthwOo.js → ClosingTemplateView-DFxLuV8k.js} +272 -286
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DjGGEGQ9.js +282 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DigsIOB0.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DNEwc797.js} +116 -114
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DweLQVwq.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DlM-xGKh.js} +5 -5
- package/dist/{IngredientGroupView-CkD8x2CP.js → IngredientGroupView-C4bL0O5L.js} +63 -69
- package/dist/IngredientsView-CfS8FgxA.js +1657 -0
- package/dist/{IntegrationView-BfeV07OO.js → IntegrationView-aSAeFNtp.js} +92 -95
- package/dist/{InventoryBindingForm-BsSmth0U.js → InventoryBindingForm-C7rIUyV1.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CMV5e99K.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ba6WLcom.js} +25 -27
- package/dist/{InventoryBindingSummary-BHloDawE.js → InventoryBindingSummary-Ix92wSE6.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BjddpTCS.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-6BUIvm7C.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BZBa_99i.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Cd6LQ6Yz.js} +23 -24
- package/dist/{PurchaseOrderPrintPreview-CTdd-RuH.js → PurchaseOrderPrintPreview-DJSF8YaR.js} +13 -14
- package/dist/ReceiveRequestView-BUyShiP2.js +4188 -0
- package/dist/{RecipeView-CrmDQdc5.js → RecipeView-c0XB2_P8.js} +79 -85
- package/dist/{StockView-Xb3fQaiD.js → StockView-DNPNymCW.js} +1338 -1446
- package/dist/{SupplierView-CrtIiaz0.js → SupplierView-Cz0hgito.js} +2325 -787
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-ySR4KngR.js +1227 -0
- package/dist/TransferTemplateView-B7kzPdfT.js +1264 -0
- package/dist/{UnitView-C6BgrZ1G.js → UnitView-BKWbaZfc.js} +40 -44
- package/dist/{WarehouseView-Hhd76ybU.js → WarehouseView-BgE3teyT.js} +94 -100
- 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 +1 -1
- package/dist/app-Bkg0JUKr.js +84182 -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-rPKr5T-H.js → decimal-CZ3lFF__.js} +1 -1
- package/dist/{feature-z95vJnA1.js → feature-By_PNrnn.js} +23 -9
- package/dist/format-unit-display-ZlJT10zr.js +1207 -0
- package/dist/index-B4nO9Djl.js +12087 -0
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-DNajb8lV.js +125 -0
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +69 -1
- package/dist/stores/inventory.d.ts +1 -4
- package/dist/style.css +1 -1
- package/dist/{supplier-BixmjZyl.js → supplier-eaFF1izE.js} +15 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-BRygbm1p.js → use-inventory-binding-dialog-14JW4t6q.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/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 +621 -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 +3621 -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 +25 -193
- 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/package.json +3 -3
- package/dist/FmDroppableField-8RzKjEdL.js +0 -154
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dwb3eBLo.js +0 -267
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CvtvzIt1.js +0 -436
- package/dist/FmMultiselectDialog-CKBcMDGC.js +0 -415
- package/dist/IngredientsView-DuK4YSD6.js +0 -1613
- package/dist/ReceiveRequestView-CgWNaYs1.js +0 -4104
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9H41eg7.js +0 -1189
- package/dist/TransferTemplateView-Cc7VRbZ7.js +0 -1262
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-CwUHqg7h.js +0 -33462
- package/dist/date2-CHNm4ELK.js +0 -117
- package/dist/dayjs.min-FE3dpxHU.js +0 -282
- package/dist/defineDeepModel-Dc1zZzOi.js +0 -13
- package/dist/format-time-from-id-CaPj8EHN.js +0 -15
- package/dist/format-unit-display-Bkz5kW6p.js +0 -1198
- package/dist/fuzzy-DXqhGaFi.js +0 -41
- package/dist/index-BMJHz32O.js +0 -22277
- package/dist/index-Be5vGZdr.js +0 -45
- package/dist/index-D2juQPg6.js +0 -10545
- package/dist/netsuite-P0as0Moa.js +0 -194
- package/dist/normalizeArguments-DP7Hrren.js +0 -1552
- package/dist/row-action.enum-PMKMRrZR.js +0 -50
- package/dist/rules-BQz4NGht.js +0 -198
- package/dist/use-template-enabled-locations-2-Dd15d-ng.js +0 -86
- package/dist/xlsx-k2Rf0NcF.js +0 -24004
- package/dist/xlsx.util-CJxPf7XZ.js +0 -78
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
import { j as b, h as S, u as p } from "./app-CwUHqg7h.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
|
-
};
|