@feedmepos/mf-inventory-portal 0.0.23-dev.19 → 0.0.23-dev.20
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-DY01VbHo.js → App-N2myASr3.js} +44 -41
- package/dist/{ApprovalView-DtwXb5T7.js → ApprovalView-B87DpnNq.js} +20 -23
- package/dist/{BindingsDialog-ClnnwUTV.js → BindingsDialog-DehCgt1T.js} +7 -7
- package/dist/{BindingsPicker-DbdkXiHx.js → BindingsPicker-BBtJ3rBB.js} +7 -8
- package/dist/{BindingsTable-Cqh3Ku0d.js → BindingsTable-CfHuy-K1.js} +16 -20
- package/dist/{ClosingDraftView-CzuMTeC1.js → ClosingDraftView-BYZ1mZrG.js} +190 -196
- package/dist/{ClosingTemplateView-CVQlOya4.js → ClosingTemplateView-CAL9jYaf.js} +49 -60
- package/dist/{FmDroppableField-8RzKjEdL.js → FmDroppableField-CC7RiBoR.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BO1wCa9i.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C4G9LaXv.js} +24 -25
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-sgvBxxkn.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BBf7jmJz.js} +56 -57
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-D7uvrzFU.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DjTvrLPs.js} +7 -7
- package/dist/{IngredientGroupView-DgDZnggI.js → IngredientGroupView-X0ST4tW9.js} +30 -37
- package/dist/{IngredientsView-SuCckJrj.js → IngredientsView-BUJXzpVr.js} +106 -112
- package/dist/{IntegrationView-CZQoHCkX.js → IntegrationView-QbuIwjec.js} +63 -65
- package/dist/{InventoryBindingForm-C-E3EINv.js → InventoryBindingForm-C1BR_h_3.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B3nsmCuj.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CRwcFskQ.js} +18 -20
- package/dist/{InventoryBindingSummary-DNiOKfO8.js → InventoryBindingSummary-gn3Gq1ok.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdYa8Pv2.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-GY3FFm5_.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BwxgZ-vM.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DVwtuUg9.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-C6i2S9L-.js → PurchaseOrderPrintPreview-FuOYaO56.js} +13 -14
- package/dist/{ReceiveRequestView-BABjGvIn.js → ReceiveRequestView-BNz1brve.js} +66 -75
- package/dist/{RecipeView-CoMcIuHu.js → RecipeView-DRKTODfC.js} +58 -64
- package/dist/{StockView-DhJshtaj.js → StockView-DnMcfkGG.js} +80 -87
- package/dist/{SupplierView-hQtDIQzE.js → SupplierView-DAnnWZUN.js} +45 -52
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DsJUSZsm.js → TransferDetails.vue_vue_type_script_setup_true_lang-BBARPa0S.js} +103 -110
- package/dist/{TransferTemplateView-GzwT4hp-.js → TransferTemplateView-2qlKwwKg.js} +217 -227
- package/dist/{UnitView-CRMF6RWu.js → UnitView-u5wZGetF.js} +103 -108
- package/dist/{WarehouseView-AVEDff0v.js → WarehouseView-Z80N7FJV.js} +77 -84
- package/dist/api/adjustment-template.d.ts +23 -0
- package/dist/app-Fc2FPGhO.js +58871 -0
- package/dist/app.d.ts +51 -0
- package/dist/app.js +2 -2
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/{decimal-N5ymnwhP.js → decimal-BDD-e5Lb.js} +1 -1
- package/dist/{feature-Bfq8yWgS.js → feature-BMEyYowI.js} +1 -1
- package/dist/{format-unit-display-CXawcmvj.js → format-unit-display-DvlR_z--.js} +205 -212
- package/dist/{index-CcCqc9jx.js → index-CR22QBdu.js} +1 -1
- package/dist/{netsuite-DX6L1oLu.js → netsuite-CqMWgzKo.js} +9 -9
- package/dist/router/name.d.ts +1 -0
- package/dist/{stock-Btlxmf8R.js → stock-sIy40ix1.js} +7 -8
- package/dist/style.css +1 -1
- package/dist/supplier-Cf24JqTH.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-BFqxWNzX.js → use-inventory-binding-dialog-Br9Uv9o8.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/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/{xlsx-C3L2eW52.js → xlsx-sL0sD2HQ.js} +1 -1
- package/dist/{xlsx.util-CJKLCuWK.js → xlsx.util-D2Tdwf8J.js} +1 -1
- package/package.json +3 -3
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-m92y5x0G.js +0 -436
- package/dist/FmMultiselectDialog-Jr9uL_z_.js +0 -415
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-ww5ibHkL.js +0 -33540
- package/dist/date2-D5MTVjlP.js +0 -117
- package/dist/dayjs.min-7pwGJ2aW.js +0 -282
- package/dist/defineDeepModel-DJODEpcR.js +0 -13
- package/dist/form-mode.enum-BKiNVH6A.js +0 -4
- package/dist/format-time-from-id-0UkRUr39.js +0 -15
- package/dist/fuzzy-DdOiOd-q.js +0 -41
- package/dist/index-Cin_fxtb.js +0 -45
- package/dist/index-gvJJ-xRY.js +0 -22283
- package/dist/row-action.enum-7rGLGZ5v.js +0 -55
- package/dist/rules-C83wiSGb.js +0 -203
- package/dist/supplier-CSzla-9I.js +0 -77
- package/dist/use-template-enabled-locations-2-CUkqC-cd.js +0 -86
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useCoreStore as
|
|
3
|
-
import { useSnackbar as
|
|
1
|
+
import { N as L, m as $, a as M, u as N } from "./app-Fc2FPGhO.js";
|
|
2
|
+
import { useCoreStore as _ } from "@feedmepos/mf-common";
|
|
3
|
+
import { useSnackbar as k } from "@feedmepos/ui-library";
|
|
4
4
|
import { ref as C, computed as S } from "vue";
|
|
5
|
-
const
|
|
6
|
-
const p =
|
|
5
|
+
const h = L((g, l) => {
|
|
6
|
+
const p = _(), m = k();
|
|
7
7
|
return l.onError(async (o) => {
|
|
8
8
|
if (o instanceof $)
|
|
9
9
|
throw m == null || m.open({
|
|
@@ -174,7 +174,7 @@ function E() {
|
|
|
174
174
|
},
|
|
175
175
|
async readSetting() {
|
|
176
176
|
console.log("netsuite init");
|
|
177
|
-
const i = await
|
|
177
|
+
const i = await h().readSetting();
|
|
178
178
|
if (i) {
|
|
179
179
|
this.state.setting = i;
|
|
180
180
|
const { flat: n } = y(a.value.setting.subsidiaries);
|
|
@@ -189,7 +189,7 @@ function E() {
|
|
|
189
189
|
return this.state.vendorSubsidiary[e] || "";
|
|
190
190
|
},
|
|
191
191
|
async syncTransferOrder(e, i, n) {
|
|
192
|
-
const t =
|
|
192
|
+
const t = h(), r = N(), s = r.currentLocation.doc._id, d = r.currentLocation.type;
|
|
193
193
|
await t.syncTransferOrder(e, `${d}_${s}`, i, n);
|
|
194
194
|
},
|
|
195
195
|
getItemPKTCode(e, i) {
|
|
@@ -207,8 +207,8 @@ function E() {
|
|
|
207
207
|
if (u) {
|
|
208
208
|
const c = ["ZPH"], I = a.value.setting.childItems.filter(
|
|
209
209
|
(v) => v.parentNetSuiteId === d && v.unitTypeId === (s == null ? void 0 : s.netSuiteId) && v.unitOfMeasureId === u.netSuiteId && v.externalId && !c.some((T) => {
|
|
210
|
-
var
|
|
211
|
-
return (
|
|
210
|
+
var B;
|
|
211
|
+
return (B = v.externalId) == null ? void 0 : B.startsWith(T);
|
|
212
212
|
})
|
|
213
213
|
)[0];
|
|
214
214
|
I && (I.pktCode && (t = I.pktCode), I.externalId && (t = I.externalId));
|
package/dist/router/name.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare enum RouteName {
|
|
|
6
6
|
STOCK = "STOCK",
|
|
7
7
|
CLOSING_TEMPLATE = "CLOSING_TEMPLATE",
|
|
8
8
|
CLOSING_DRAFT = "CLOSING_DRAFT",
|
|
9
|
+
WASTAGE_TEMPLATE = "WASTAGE_TEMPLATE",
|
|
9
10
|
WAREHOUSE = "WAREHOUSE",
|
|
10
11
|
RECEIVE_REQUEST = "RECEIVE_REQUEST",
|
|
11
12
|
TRANSFER_TEMPLATE = "TRANSFER_TEMPLATE",
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useCoreStore as
|
|
3
|
-
import { useSnackbar as
|
|
4
|
-
import { g as v } from "./index-gvJJ-xRY.js";
|
|
1
|
+
import { N as l, u as m, a as B, ae as k } from "./app-Fc2FPGhO.js";
|
|
2
|
+
import { useCoreStore as p } from "@feedmepos/mf-common";
|
|
3
|
+
import { useSnackbar as v } from "@feedmepos/ui-library";
|
|
5
4
|
import { ref as y } from "vue";
|
|
6
5
|
const $ = l((o, t) => {
|
|
7
|
-
const s = m(), u =
|
|
6
|
+
const s = m(), u = p(), c = v();
|
|
8
7
|
return t.onError(async (e) => {
|
|
9
8
|
e.name === "SvcForbiddenError" && (c == null || c.open({
|
|
10
9
|
title: e.title,
|
|
@@ -62,7 +61,7 @@ function S() {
|
|
|
62
61
|
productBalance: []
|
|
63
62
|
};
|
|
64
63
|
}
|
|
65
|
-
const d = y(S()),
|
|
64
|
+
const d = y(S()), N = () => {
|
|
66
65
|
const o = $();
|
|
67
66
|
return {
|
|
68
67
|
// state
|
|
@@ -84,7 +83,7 @@ const d = y(S()), I = () => {
|
|
|
84
83
|
},
|
|
85
84
|
async readProductBalance() {
|
|
86
85
|
this.productBalance = [];
|
|
87
|
-
const t = B(), s =
|
|
86
|
+
const t = B(), s = k({
|
|
88
87
|
recipes: t.recipes,
|
|
89
88
|
skus: t.skus,
|
|
90
89
|
inventoryBindingMapping: {},
|
|
@@ -107,5 +106,5 @@ const d = y(S()), I = () => {
|
|
|
107
106
|
};
|
|
108
107
|
export {
|
|
109
108
|
$ as a,
|
|
110
|
-
|
|
109
|
+
N as u
|
|
111
110
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.fm-forecast-notification-low{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-forecast-notification-mid{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-forecast-notification-high{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-forecast-notification-indicator{display:inline-block;height:12px;width:12px;border-radius:9999px}.fm-forecast-notification-indicator-low{background-color:var(--fm-color-system-red-400)}.fm-forecast-notification-indicator-mid{background-color:var(--fm-color-system-orange-400)}.fm-forecast-notification-indicator-high{background-color:var(--fm-color-system-green-400)}.
|
|
1
|
+
.fade-enter-active,.fade-leave-active{transition:opacity .5s ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-enter-active[data-v-0b70e452],.fade-leave-active[data-v-0b70e452]{transition:opacity .25s ease}.fade-enter[data-v-0b70e452],.fade-leave-to[data-v-0b70e452]{opacity:0}.fm-forecast-notification-low{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-forecast-notification-mid{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-forecast-notification-high{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-forecast-notification-indicator{display:inline-block;height:12px;width:12px;border-radius:9999px}.fm-forecast-notification-indicator-low{background-color:var(--fm-color-system-red-400)}.fm-forecast-notification-indicator-mid{background-color:var(--fm-color-system-orange-400)}.fm-forecast-notification-indicator-high{background-color:var(--fm-color-system-green-400)}.fm-droppable-field[data-v-e121b2c1]{display:flex;flex-direction:column;gap:4px}.fm-droppable-field__container[data-v-e121b2c1]{position:relative;background-color:var(--fm-color-neutral-white);padding:12px;border-radius:8px;border-width:2px;border-style:dashed;border-color:var(--fm-color-neutral-gray-300);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}.fm-droppable-field__container--disabled[data-v-e121b2c1]{cursor:not-allowed;color:var(--fm-color-neutral-gray-200);border-color:var(--fm-color-neutral-gray-200)}.fm-droppable-field__container--dragging[data-v-e121b2c1]{border-color:var(--fm-color-primary)}.fm-droppable-field__container--invalid[data-v-e121b2c1]{border-color:var(--fm-color-system-red-300)}.fm-droppable-field__container[data-v-e121b2c1]:hover:not(.fm-droppable-field__container--disabled){border-color:var(--fm-color-neutral-gray-400)}.fm-droppable-field__input[data-v-e121b2c1]{cursor:pointer;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%}.fm-droppable-field__input[data-v-e121b2c1]:disabled{display:none;cursor:not-allowed}.map-button[data-v-272f5e8b]{border-top-width:1px;border-top-color:var(--fm-color-neutral-gray-200);color:var(--fm-color-neutral-gray-400);padding:.2rem 1rem;border-radius:8px}table[data-v-92a03d5c]{width:100%;border-spacing:unset;line-height:inherit}table td[data-v-92a03d5c],table th[data-v-92a03d5c]{padding:3px 5px;vertical-align:top}hr[data-v-92a03d5c]{border-collapse:unset;background:#888;height:2px;border:0px}.text-left[data-v-92a03d5c]{text-align:left}.text-right[data-v-92a03d5c]{text-align:right}.purchase-box[data-v-92a03d5c]{max-width:800px;margin:auto;padding:30px;border:1px solid #eee;box-shadow:0 0 10px #00000026;font-size:16px;line-height:1.5;font-family:Helvetica Neue,Helvetica,Helvetica,Arial,sans-serif;color:#555}.title[data-v-92a03d5c]{padding-bottom:0;font-size:30px;color:#333}.header[data-v-92a03d5c]{font-weight:600;color:#333}.sub-header[data-v-92a03d5c]{font-size:18px;color:#333}.caption[data-v-92a03d5c]{font-size:14px;color:#666}.address[data-v-92a03d5c]{font-size:16px;line-height:1.2;color:#666}.purchase-body[data-v-92a03d5c]{margin-top:30px}.item-header[data-v-92a03d5c]{border:0px;background:#ccc;color:#444}.v-enter-active[data-v-fb8b7488],.v-leave-active[data-v-fb8b7488]{transition:opacity .1s ease}.v-enter-from[data-v-fb8b7488],.v-leave-to[data-v-fb8b7488]{opacity:0}.fm-status-badge{font-size:.875rem;font-weight:600;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;border-radius:8px;display:flex;align-items:center;padding-left:8px;padding-right:8px;height:22px}.fm-status-badge-draft{background-color:var(--fm-color-neutral-gray-100);color:var(--fm-color-neutral-gray-500)}.fm-status-badge-receiving{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-cancel{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-status-badge-complete{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-status-badge-processing,.fm-status-badge-requesting{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-status-badge-transfer-info,.fm-status-badge-info-secondary{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-success-secondary{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { N as m, u, o as y, af as b, ag as v } from "./app-Fc2FPGhO.js";
|
|
2
|
+
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
3
|
+
import { defineStore as w } from "pinia";
|
|
4
|
+
import { ref as l, computed as d } from "vue";
|
|
5
|
+
const i = m((t, p) => {
|
|
6
|
+
function a() {
|
|
7
|
+
var o;
|
|
8
|
+
const s = c(), e = u(), r = e.businessLevel, n = `business_${((o = s.currentBusiness.value) == null ? void 0 : o._id) ?? ""}`, S = e.currentLocation.dbName;
|
|
9
|
+
return r ? n : S;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
async readSuppliers() {
|
|
13
|
+
const s = a(), e = `${t.inventoryBackendUrl}/${s}/supplier`;
|
|
14
|
+
return await p.get(e);
|
|
15
|
+
},
|
|
16
|
+
async readLocationSuppliers() {
|
|
17
|
+
const e = u().currentLocation.dbName, r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
18
|
+
return await p.get(r);
|
|
19
|
+
},
|
|
20
|
+
async readBusinessSuppliers() {
|
|
21
|
+
var n;
|
|
22
|
+
const e = `business_${((n = c().currentBusiness.value) == null ? void 0 : n._id) ?? ""}`, r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
23
|
+
return await p.get(r);
|
|
24
|
+
},
|
|
25
|
+
async createSupplier(s) {
|
|
26
|
+
const e = a(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
27
|
+
return await p.post(r, s);
|
|
28
|
+
},
|
|
29
|
+
async importSuppliers(s) {
|
|
30
|
+
const e = a(), r = `${t.inventoryBackendUrl}/${e}/supplier/import`;
|
|
31
|
+
return await p.post(r, s);
|
|
32
|
+
},
|
|
33
|
+
async updateSupplier(s) {
|
|
34
|
+
const e = a(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
35
|
+
return await p.put(r, s);
|
|
36
|
+
},
|
|
37
|
+
async deleteSupplier(s) {
|
|
38
|
+
const e = a(), r = `${t.inventoryBackendUrl}/${e}/supplier`;
|
|
39
|
+
return await p.delete(r, s);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}), f = w("supplier", () => {
|
|
43
|
+
const t = l(new Array()), p = l(new Array()), a = d(() => [...t.value, ...p.value]), s = d(() => y(a.value, "_id"));
|
|
44
|
+
return {
|
|
45
|
+
async readSuppliers() {
|
|
46
|
+
const e = i();
|
|
47
|
+
t.value = await e.readLocationSuppliers(), p.value = await e.readBusinessSuppliers();
|
|
48
|
+
},
|
|
49
|
+
async createSupplier(e) {
|
|
50
|
+
await i().createSupplier(e);
|
|
51
|
+
},
|
|
52
|
+
async updateSupplier(e) {
|
|
53
|
+
await i().updateSupplier(e);
|
|
54
|
+
},
|
|
55
|
+
async deleteSupplier(e) {
|
|
56
|
+
await i().deleteSupplier(e);
|
|
57
|
+
},
|
|
58
|
+
async importSuppliers(e) {
|
|
59
|
+
await i().importSuppliers(e);
|
|
60
|
+
},
|
|
61
|
+
async init() {
|
|
62
|
+
const e = b();
|
|
63
|
+
try {
|
|
64
|
+
await this.readSuppliers();
|
|
65
|
+
} catch (r) {
|
|
66
|
+
throw r instanceof v || e.error("Error at reading suppliers"), r;
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
suppliers: a,
|
|
70
|
+
locationSuppliers: t,
|
|
71
|
+
businessSuppliers: p,
|
|
72
|
+
supplierById: s
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
export {
|
|
76
|
+
f as u
|
|
77
|
+
};
|