@feedmepos/mf-inventory-portal 1.2.9 → 1.2.10-dev.1
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-XpX30-FV.js → App-Bg2M5RwP.js} +1 -1
- package/dist/{ApprovalView-D2J7D_Nm.js → ApprovalView-C46UDXnc.js} +24 -24
- package/dist/{BindingsDialog-Uso69RV0.js → BindingsDialog-CtJjpbw-.js} +2 -2
- package/dist/{BindingsPicker-7w_Pih9R.js → BindingsPicker-B6Er5Lea.js} +1 -1
- package/dist/{BindingsTable-CbV4JqKs.js → BindingsTable-MPeTr_ip.js} +1 -1
- package/dist/{ClosingDraftView-Cs1hLPBv.js → ClosingDraftView-BaD3MLeG.js} +33 -33
- package/dist/{ClosingTemplateView-CzDxdTM8.js → ClosingTemplateView-C4z3GXwd.js} +3 -3
- package/dist/{DeliveryOrderPrintPreview-hVu8tti_.js → DeliveryOrderPrintPreview-BfafKFMa.js} +8 -8
- package/dist/{FmAdminBadge-UDCFElb7.js → FmAdminBadge-Dg5rl1fj.js} +4 -4
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CeEFXW2z.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BATVvC9u.js} +11 -11
- package/dist/{FmMultiselectDialog-Bevvx1r8.js → FmMultiselectDialog-DJ-dIe8C.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C0mdy9Mc.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BBWaPrlm.js} +38 -38
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BKIf5UrZ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-oaujHoaU.js} +1 -1
- package/dist/{IngredientGroupView-_eiXCYvr.js → IngredientGroupView-u4ubHtNF.js} +15 -15
- package/dist/{IngredientsView-okGkhfX0.js → IngredientsView-CXbJifY6.js} +831 -809
- package/dist/{IntegrationView-DYNRksif.js → IntegrationView-XEypfcAW.js} +137 -137
- package/dist/{InventoryBindingForm-DyFPXbNg.js → InventoryBindingForm-CETOb5Nj.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-1AvpT307.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DC52GJ2Y.js} +22 -22
- package/dist/{InventoryBindingSummary-BnzY__W8.js → InventoryBindingSummary-DbyJW8z0.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-iCRT5ZID.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BQWWQxaq.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CxhPTM5O.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BruydtsG.js} +9 -9
- package/dist/{PublishView-BGI8t6ZI.js → PublishView-Cl3IluMR.js} +12 -12
- package/dist/{PurchaseOrderPrintPreview-BY0m_m2t.js → PurchaseOrderPrintPreview-BG_uBL4o.js} +7 -7
- package/dist/{ReceiveRequestView-BN63OwrJ.js → ReceiveRequestView-BvGlUVTp.js} +191 -191
- package/dist/{RecipeView-C6SFIYEV.js → RecipeView-C-7XU5F8.js} +12 -12
- package/dist/{StockView-DxAqF_Uz.js → StockView-rYhlg4fr.js} +680 -665
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-D0kASPO9.js +158 -0
- package/dist/{SupplierView-BGWP3TQ0.js → SupplierView-BoGoqUS-.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Dr6Bst81.js → TransferDetails.vue_vue_type_script_setup_true_lang-D53vhWDq.js} +6 -6
- package/dist/{TransferTemplateView-CSMou2uQ.js → TransferTemplateView-DZIDXFp7.js} +143 -143
- package/dist/{UnitView-Dvn2OFBI.js → UnitView-CvHIFkue.js} +27 -27
- package/dist/{WarehouseView-DFIFxlqz.js → WarehouseView-Dh_WZz5L.js} +18 -18
- package/dist/{app-cExTkfVB.js → app-BT34Yv61.js} +9120 -9069
- package/dist/app.d.ts +6 -6
- package/dist/app.js +4 -4
- package/dist/{closing-template-CIbh7GpK.js → closing-template-JDCk0_lU.js} +1 -1
- package/dist/{decimal-DDB6xkYA.js → decimal-BTgTm2JD.js} +1 -1
- package/dist/{format-unit-display-C5nl2Pn9.js → format-unit-display-HHCA1rN3.js} +48 -48
- package/dist/{index-5McubZjo.js → index-Bz_lEYOD.js} +1 -1
- package/dist/{index-CYvmWIx7.js → index-CdamrmzX.js} +1 -1
- package/dist/{purchase-order-template-DqsMgrgI.js → purchase-order-template-DJiYiY6t.js} +1 -1
- package/dist/{stock-DzSlKGZm.js → stock-C8afHO4C.js} +1 -1
- package/dist/stores/integration/netsuite.d.ts +1 -0
- package/dist/{supplier-m9aBkFoK.js → supplier-C8RMKqQX.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-et1B0WDI.js → use-ingredient-select-dialog-fLK9yq-0.js} +1 -1
- package/dist/{use-inventory-binding-dialog-B7_YL7HE.js → use-inventory-binding-dialog--7tzpXgV.js} +1 -1
- package/dist/views/ingredients/components/ingredient-dialog/IngredientDialogProps.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -0
- package/package.json +1 -1
- package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +0 -59
package/dist/app.d.ts
CHANGED
|
@@ -3481,6 +3481,9 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
|
|
|
3481
3481
|
enableIngredientGroup: {
|
|
3482
3482
|
type: import("vue").PropType<boolean>;
|
|
3483
3483
|
};
|
|
3484
|
+
readonly: {
|
|
3485
|
+
type: import("vue").PropType<boolean>;
|
|
3486
|
+
};
|
|
3484
3487
|
disabled: {
|
|
3485
3488
|
type: import("vue").PropType<boolean>;
|
|
3486
3489
|
};
|
|
@@ -3504,9 +3507,6 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
|
|
|
3504
3507
|
}[]>;
|
|
3505
3508
|
default: () => never[];
|
|
3506
3509
|
};
|
|
3507
|
-
readonly: {
|
|
3508
|
-
type: import("vue").PropType<boolean>;
|
|
3509
|
-
};
|
|
3510
3510
|
iframeMode: {
|
|
3511
3511
|
type: import("vue").PropType<boolean>;
|
|
3512
3512
|
};
|
|
@@ -3559,6 +3559,9 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
|
|
|
3559
3559
|
enableIngredientGroup: {
|
|
3560
3560
|
type: import("vue").PropType<boolean>;
|
|
3561
3561
|
};
|
|
3562
|
+
readonly: {
|
|
3563
|
+
type: import("vue").PropType<boolean>;
|
|
3564
|
+
};
|
|
3562
3565
|
disabled: {
|
|
3563
3566
|
type: import("vue").PropType<boolean>;
|
|
3564
3567
|
};
|
|
@@ -3582,9 +3585,6 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
|
|
|
3582
3585
|
}[]>;
|
|
3583
3586
|
default: () => never[];
|
|
3584
3587
|
};
|
|
3585
|
-
readonly: {
|
|
3586
|
-
type: import("vue").PropType<boolean>;
|
|
3587
|
-
};
|
|
3588
3588
|
iframeMode: {
|
|
3589
3589
|
type: import("vue").PropType<boolean>;
|
|
3590
3590
|
};
|
package/dist/app.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { bl as o, bm as a, bn as e, bk as m, bo as t, a as i } from "./app-BT34Yv61.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
o as FmApp,
|
|
5
|
+
a as InventoryBindingForm,
|
|
6
|
+
e as InventoryBindingSummary,
|
|
7
7
|
m as i18nMessages,
|
|
8
8
|
t as routers,
|
|
9
9
|
i as useInventoryStore
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { a as q,
|
|
1
|
+
import { a as q, $ as Ie, ao as U, z as Ne, ap as ye, B as he, u as J, k as L, C as De, x as le, E as ve, b as te, t as G, w as Z, aR as Oe, aJ as Fe, a5 as Pe, G as Me, H as Ue, aq as Le, e as ce, f as re, R as me, s as Be, am as Qe, D as j, i as N, h as He } from "./app-BT34Yv61.js";
|
|
2
2
|
import { useCoreStore as ge, useI18n as ne } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialogChild as Ve, useSnackbar as be, useDialog as qe, FmButtonVariant as z, components as X } from "@feedmepos/ui-library";
|
|
4
4
|
import { defineStore as xe } from "pinia";
|
|
5
|
-
import { u as Se } from "./purchase-order-template-
|
|
6
|
-
import { defineComponent as oe, resolveComponent as Q, openBlock as _, createElementBlock as E, createElementVNode as C, normalizeClass as H, createTextVNode as je, toDisplayString as D, unref as
|
|
5
|
+
import { u as Se } from "./purchase-order-template-DJiYiY6t.js";
|
|
6
|
+
import { defineComponent as oe, resolveComponent as Q, openBlock as _, createElementBlock as E, createElementVNode as C, normalizeClass as H, createTextVNode as je, toDisplayString as D, unref as I, createCommentVNode as V, createVNode as P, withCtx as ee, Fragment as B, renderList as Y, ref as k, onMounted as ze, computed as ue, watch as Ke, createSlots as Ye, createBlock as K, h as W } from "vue";
|
|
7
7
|
import { useRouter as We } from "vue-router";
|
|
8
|
-
import { u as ae } from "./supplier-
|
|
8
|
+
import { u as ae } from "./supplier-C8RMKqQX.js";
|
|
9
9
|
function Te(e) {
|
|
10
10
|
const t = q(), a = e.sku, u = t.skuById[a._id];
|
|
11
11
|
if (u.unit._id !== a.unit._id) return !0;
|
|
12
12
|
const i = e.measurement;
|
|
13
13
|
return i ? !t.unitById[u.unit._id].measurements.find((l) => l.id === i.id) : !1;
|
|
14
14
|
}
|
|
15
|
-
var
|
|
16
|
-
const de =
|
|
15
|
+
var A = /* @__PURE__ */ ((e) => (e.PURCHASE = "PURCHASE", e.TRANSFER = "TRANSFER", e))(A || {}), se = /* @__PURE__ */ ((e) => (e.Source = "Source", e.Destination = "Destination", e.Ingredient = "Ingredient", e))(se || {});
|
|
16
|
+
const de = Ie(0);
|
|
17
17
|
function _e(e) {
|
|
18
18
|
var u;
|
|
19
19
|
const t = e.sku;
|
|
@@ -76,7 +76,7 @@ function Ge(e) {
|
|
|
76
76
|
["Menu version", a == null ? void 0 : a.menuVersion],
|
|
77
77
|
[
|
|
78
78
|
"Purchase/Transfer",
|
|
79
|
-
typeof o.purchaseOrder.supplier.internal == "string" ?
|
|
79
|
+
typeof o.purchaseOrder.supplier.internal == "string" ? A.TRANSFER : A.PURCHASE
|
|
80
80
|
],
|
|
81
81
|
[
|
|
82
82
|
"Transfer from",
|
|
@@ -109,8 +109,8 @@ function Ge(e) {
|
|
|
109
109
|
)) == null ? void 0 : l.sheets, s = `${a == null ? void 0 : a.name} transfer templates (${Ne(/* @__PURE__ */ new Date())}).xlsx`, f = ye(i);
|
|
110
110
|
return he(f, s), s;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
const e = ge(), t = ae(), a =
|
|
112
|
+
function Je() {
|
|
113
|
+
const e = ge(), t = ae(), a = J(), u = q(), i = e.currentBusiness.value, s = _e({
|
|
114
114
|
sku: {
|
|
115
115
|
unit: {
|
|
116
116
|
_id: "",
|
|
@@ -220,8 +220,8 @@ function Ze() {
|
|
|
220
220
|
}), b = `${i == null ? void 0 : i.name} transfer templates import.xlsx`;
|
|
221
221
|
return he(v, b), b;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
const a = new Array(), u = /(.*) \(((supplier_|warehouse_|restaurant_).{24,})\)/, s =
|
|
223
|
+
function Ze(e, t) {
|
|
224
|
+
const a = new Array(), u = /(.*) \(((supplier_|warehouse_|restaurant_).{24,})\)/, s = J().locationByDbName, l = ae().supplierById, o = e.trim(), c = u.exec(o);
|
|
225
225
|
if (!c)
|
|
226
226
|
return a.push(`Transfer from location value of ${o} cannot be read.`), {
|
|
227
227
|
errors: a
|
|
@@ -229,7 +229,7 @@ function Je(e, t) {
|
|
|
229
229
|
const h = c[1], d = c[2];
|
|
230
230
|
let m;
|
|
231
231
|
if (d.startsWith("supplier"))
|
|
232
|
-
m = l[d], t !==
|
|
232
|
+
m = l[d], t !== A.PURCHASE && a.push(`Expected transfer type Purchase but found ${t} instead.`);
|
|
233
233
|
else {
|
|
234
234
|
const v = s[d];
|
|
235
235
|
if (!v)
|
|
@@ -265,7 +265,7 @@ function Je(e, t) {
|
|
|
265
265
|
function Xe(e) {
|
|
266
266
|
if (!e.length || `${e[0]}`.toLocaleLowerCase() === "all")
|
|
267
267
|
return [];
|
|
268
|
-
const t = /(.*) \(((warehouse_|restaurant_).{24,})\)/, u =
|
|
268
|
+
const t = /(.*) \(((warehouse_|restaurant_).{24,})\)/, u = J().locationByDbName;
|
|
269
269
|
return e.map((i) => {
|
|
270
270
|
const s = new Array(), f = i.trim(), l = t.exec(f);
|
|
271
271
|
if (!l)
|
|
@@ -300,7 +300,7 @@ function et(e) {
|
|
|
300
300
|
return {
|
|
301
301
|
id: `${a[1] ?? ""}`.trim(),
|
|
302
302
|
name: `${u[1] ?? ""}`.trim(),
|
|
303
|
-
type: `${l[1] ?? ""}`.trim().toLocaleLowerCase() === "transfer" ?
|
|
303
|
+
type: `${l[1] ?? ""}`.trim().toLocaleLowerCase() === "transfer" ? A.TRANSFER : A.PURCHASE,
|
|
304
304
|
transferFrom: `${o[1] ?? ""}`.trim(),
|
|
305
305
|
locations: c.slice(1).map((m) => `${m}`.trim()).filter((m) => m),
|
|
306
306
|
reference: `${h[1] ?? ""}`.trim(),
|
|
@@ -397,18 +397,18 @@ function nt(e, t, a) {
|
|
|
397
397
|
}
|
|
398
398
|
const c = G(
|
|
399
399
|
e.quantityStep,
|
|
400
|
-
|
|
400
|
+
Z(l, o)
|
|
401
401
|
);
|
|
402
402
|
(Number.isNaN(Number(e.quantityStep)) || Number(e.quantityStep) <= 0) && f.push("Amount step must be more than 0");
|
|
403
403
|
const h = Oe(c), d = rt(
|
|
404
404
|
e.minimumQuantity,
|
|
405
405
|
e.maximumQuantity,
|
|
406
|
-
|
|
406
|
+
Z(l, o)
|
|
407
407
|
), m = d.min, v = d.max;
|
|
408
408
|
d.compareError && f.push(d.compareError);
|
|
409
409
|
const b = Fe(+e.minimumQuantity, +e.maximumQuantity), r = G(
|
|
410
410
|
e.defaultQuantity,
|
|
411
|
-
|
|
411
|
+
Z(l, o)
|
|
412
412
|
), x = h(r);
|
|
413
413
|
typeof x == "string" && f.push(`Default amount: ${x}`);
|
|
414
414
|
const w = d.min && d.max ? b(`${e.defaultQuantity}`) : null;
|
|
@@ -437,7 +437,7 @@ function ot(e) {
|
|
|
437
437
|
return t.reduce(
|
|
438
438
|
(s, f) => {
|
|
439
439
|
var p;
|
|
440
|
-
const l = new Array(), o = e.Sheets[f], c = et(o), h =
|
|
440
|
+
const l = new Array(), o = e.Sheets[f], c = et(o), h = Ze(c.transferFrom, c.type);
|
|
441
441
|
l.push(...h.errors);
|
|
442
442
|
const d = h.from, m = Xe(c.locations), v = m.filter((n) => n.location).map((n) => n.location);
|
|
443
443
|
l.push(...m.flatMap((n) => n.errors));
|
|
@@ -568,7 +568,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
568
568
|
})
|
|
569
569
|
}, [
|
|
570
570
|
je(D(t.name) + " ", 1),
|
|
571
|
-
C("span", ct, " (" + D(
|
|
571
|
+
C("span", ct, " (" + D(I(Pe)(`${t.transferType}`)) + ") ", 1),
|
|
572
572
|
t.type === "create" ? (_(), E("span", mt, "(new)")) : V("", !0)
|
|
573
573
|
], 2),
|
|
574
574
|
t.errors.length ? (_(), E("div", ut, [
|
|
@@ -617,7 +617,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
617
617
|
}, xt = { class: "fm-typo-en-body-lg-600" }, St = /* @__PURE__ */ oe({
|
|
618
618
|
__name: "TransferTemplateImport",
|
|
619
619
|
setup(e) {
|
|
620
|
-
const t =
|
|
620
|
+
const t = k(null), a = Ve(), u = be(), i = k(!1), s = k(!1), f = ae();
|
|
621
621
|
ze(async () => {
|
|
622
622
|
s.value = !0;
|
|
623
623
|
try {
|
|
@@ -632,7 +632,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
632
632
|
s.value = !1;
|
|
633
633
|
}
|
|
634
634
|
});
|
|
635
|
-
const l =
|
|
635
|
+
const l = k(new Array()), o = k([]), c = k([]), h = ue(
|
|
636
636
|
() => !!l.value.length || o.value.some((b) => b.errors.length) || c.value.some((b) => b.errors.length)
|
|
637
637
|
), d = ue(
|
|
638
638
|
() => !!o.value.length || !!c.value.length
|
|
@@ -699,8 +699,8 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
699
699
|
}),
|
|
700
700
|
accept: ".xlsx",
|
|
701
701
|
onFileUpload: r[0] || (r[0] = (p) => t.value = p),
|
|
702
|
-
label:
|
|
703
|
-
"button-label":
|
|
702
|
+
label: I(m)("inventory.ingredient.import.uploadTemplate"),
|
|
703
|
+
"button-label": I(m)("inventory.ingredient.import.selectFile")
|
|
704
704
|
}, Ye({ _: 2 }, [
|
|
705
705
|
t.value ? {
|
|
706
706
|
name: "default",
|
|
@@ -739,7 +739,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
739
739
|
], 2),
|
|
740
740
|
i.value ? V("", !0) : (_(), E("div", ht, [
|
|
741
741
|
P(S, {
|
|
742
|
-
label:
|
|
742
|
+
label: I(m)("inventory.ingredient.import.replaceFile"),
|
|
743
743
|
variant: h.value ? "destructive" : "secondary",
|
|
744
744
|
"prepend-icon": h.value ? void 0 : "autorenew",
|
|
745
745
|
onClick: p
|
|
@@ -765,11 +765,11 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
765
765
|
} : void 0
|
|
766
766
|
]), 1032, ["class", "label", "button-label"]),
|
|
767
767
|
d.value ? (_(), E("div", bt, [
|
|
768
|
-
C("div", xt, D(
|
|
768
|
+
C("div", xt, D(I(m)("inventory.ingredient.import.summary")), 1),
|
|
769
769
|
(_(!0), E(B, null, Y(o.value, (p, n) => (_(), K(pe, {
|
|
770
770
|
key: n,
|
|
771
771
|
name: p.template.name,
|
|
772
|
-
"transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? A
|
|
772
|
+
"transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? I(A).TRANSFER : I(A).PURCHASE,
|
|
773
773
|
locations: p.template.locations,
|
|
774
774
|
items: p.template.purchaseOrder.items,
|
|
775
775
|
errors: p.errors,
|
|
@@ -778,7 +778,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
778
778
|
(_(!0), E(B, null, Y(c.value, (p) => (_(), K(pe, {
|
|
779
779
|
key: p.template._id,
|
|
780
780
|
name: p.template.name,
|
|
781
|
-
"transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? A
|
|
781
|
+
"transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? I(A).TRANSFER : I(A).PURCHASE,
|
|
782
782
|
locations: p.template.locations,
|
|
783
783
|
items: p.template.purchaseOrder.items,
|
|
784
784
|
errors: p.errors,
|
|
@@ -802,7 +802,7 @@ function Tt(e) {
|
|
|
802
802
|
return u && u == i;
|
|
803
803
|
}
|
|
804
804
|
const _t = xe("transferTemplateActions", () => {
|
|
805
|
-
const e = qe(), t = be(), a =
|
|
805
|
+
const e = qe(), t = be(), a = J(), u = Ce(), i = Le(), s = Se(), f = te(), l = We(), { t: o } = ne(), c = k({});
|
|
806
806
|
function h() {
|
|
807
807
|
c.value = {
|
|
808
808
|
mode: ce.CREATE,
|
|
@@ -845,7 +845,7 @@ const _t = xe("transferTemplateActions", () => {
|
|
|
845
845
|
y.value = !0;
|
|
846
846
|
const [$] = await Promise.allSettled([
|
|
847
847
|
s.deleteTemplate(n),
|
|
848
|
-
new Promise((
|
|
848
|
+
new Promise((R) => setTimeout(R, 1e3))
|
|
849
849
|
]);
|
|
850
850
|
if ($.status === "rejected") throw $.reason;
|
|
851
851
|
t.open({
|
|
@@ -881,9 +881,9 @@ const _t = xe("transferTemplateActions", () => {
|
|
|
881
881
|
contentComponent: oe({
|
|
882
882
|
props: ["modelValue"],
|
|
883
883
|
emits: ["update:modelValue"],
|
|
884
|
-
setup(
|
|
884
|
+
setup(R) {
|
|
885
885
|
return () => W(X.FmTextField, {
|
|
886
|
-
modelValue:
|
|
886
|
+
modelValue: R.modelValue,
|
|
887
887
|
"onUpdate:modelValue": (g) => $ = g,
|
|
888
888
|
label: "New Template Name",
|
|
889
889
|
size: "md",
|
|
@@ -898,27 +898,27 @@ const _t = xe("transferTemplateActions", () => {
|
|
|
898
898
|
});
|
|
899
899
|
try {
|
|
900
900
|
y.value = !0;
|
|
901
|
-
const [
|
|
901
|
+
const [R] = await Promise.allSettled([
|
|
902
902
|
i.duplicatePurchaseOrderTemplate(n._id, $),
|
|
903
903
|
new Promise((g) => setTimeout(g, 1e3))
|
|
904
904
|
]);
|
|
905
|
-
if (
|
|
905
|
+
if (R.status === "rejected") throw R.reason;
|
|
906
906
|
t.open({
|
|
907
907
|
title: `Duplicated ${n.name}`,
|
|
908
908
|
type: "success"
|
|
909
909
|
});
|
|
910
|
-
} catch (
|
|
910
|
+
} catch (R) {
|
|
911
911
|
t.open({
|
|
912
912
|
title: `Unable to duplicate ${n.name}`,
|
|
913
|
-
message: `See error from server: ${
|
|
913
|
+
message: `See error from server: ${R}`,
|
|
914
914
|
type: "error"
|
|
915
|
-
}), console.error("error on duplicating purchase order template",
|
|
915
|
+
}), console.error("error on duplicating purchase order template", R);
|
|
916
916
|
} finally {
|
|
917
917
|
y.value = !1, T();
|
|
918
918
|
}
|
|
919
919
|
});
|
|
920
920
|
}
|
|
921
|
-
const b =
|
|
921
|
+
const b = k({});
|
|
922
922
|
function r(n) {
|
|
923
923
|
b.value = {
|
|
924
924
|
template: n,
|
|
@@ -953,24 +953,24 @@ const _t = xe("transferTemplateActions", () => {
|
|
|
953
953
|
}).onPrimary(() => {
|
|
954
954
|
l.push({ name: me.TRANSFER_TEMPLATE }), T(void 0);
|
|
955
955
|
}).onSecondary(() => T(void 0)).onClose(() => T(void 0)), n;
|
|
956
|
-
const
|
|
956
|
+
const R = $.map((g) => {
|
|
957
957
|
var ie;
|
|
958
958
|
const O = !g.purchaseOrder.items.length || g.purchaseOrder.items.some(Te), F = !Tt(g.purchaseOrder.supplier), M = g.purchaseOrder.supplier.internal ? f.getNetSuiteLocation(
|
|
959
959
|
`${g.purchaseOrder.supplier.internal}_${g.purchaseOrder.supplier._id}`
|
|
960
960
|
) : f.getNetSuiteVendor(g.purchaseOrder.supplier._id), Ee = F ? `The subsidiary of the request
|
|
961
|
-
location is ${(ie = f.getLocationSubsidiary(M == null ? void 0 : M.netSuiteId)) == null ? void 0 : ie.fullName}.` : void 0,
|
|
961
|
+
location is ${(ie = f.getLocationSubsidiary(M == null ? void 0 : M.netSuiteId)) == null ? void 0 : ie.fullName}.` : void 0, Re = O || F, ke = O ? "This template is invalid. Update this template." : F ? Ee : void 0, Ae = `${g.purchaseOrder.supplier.internal ? "Transfer" : "Purchase"} from ${g.purchaseOrder.supplier.name}`;
|
|
962
962
|
return {
|
|
963
963
|
label: g.name,
|
|
964
964
|
value: g._id,
|
|
965
|
-
disabled:
|
|
966
|
-
sublabel:
|
|
965
|
+
disabled: Re,
|
|
966
|
+
sublabel: ke ?? Ae
|
|
967
967
|
};
|
|
968
968
|
});
|
|
969
|
-
return
|
|
969
|
+
return R.sort((g, O) => +!!g.disabled - +!!O.disabled), e.open({
|
|
970
970
|
title: "Select one template",
|
|
971
971
|
contentComponent: Be,
|
|
972
972
|
contentComponentProps: {
|
|
973
|
-
items:
|
|
973
|
+
items: R,
|
|
974
974
|
singleSelect: !0
|
|
975
975
|
},
|
|
976
976
|
primaryActions: {
|
|
@@ -1033,7 +1033,7 @@ const _t = xe("transferTemplateActions", () => {
|
|
|
1033
1033
|
return;
|
|
1034
1034
|
}
|
|
1035
1035
|
e.close(), S(n);
|
|
1036
|
-
}).onTertiary(
|
|
1036
|
+
}).onTertiary(Je);
|
|
1037
1037
|
}
|
|
1038
1038
|
async function S(n) {
|
|
1039
1039
|
try {
|
|
@@ -1046,7 +1046,7 @@ const _t = xe("transferTemplateActions", () => {
|
|
|
1046
1046
|
)
|
|
1047
1047
|
], T = 100;
|
|
1048
1048
|
let $ = 0;
|
|
1049
|
-
const
|
|
1049
|
+
const R = () => {
|
|
1050
1050
|
$ += T, t.open({
|
|
1051
1051
|
title: o("inventory.ingredient.import.progress", [
|
|
1052
1052
|
Math.min($, y.length),
|
|
@@ -1055,7 +1055,7 @@ const _t = xe("transferTemplateActions", () => {
|
|
|
1055
1055
|
});
|
|
1056
1056
|
};
|
|
1057
1057
|
for (const g of y.chunk(100))
|
|
1058
|
-
|
|
1058
|
+
R(), await s.importTemplates(g);
|
|
1059
1059
|
t.open({
|
|
1060
1060
|
title: o("inventory.ingredient.import.success"),
|
|
1061
1061
|
type: "success"
|
|
@@ -1098,7 +1098,7 @@ function fe(e) {
|
|
|
1098
1098
|
const Ce = xe(
|
|
1099
1099
|
"transferTemplateTable",
|
|
1100
1100
|
function() {
|
|
1101
|
-
const { t } = ne(), a = _t(), u =
|
|
1101
|
+
const { t } = ne(), a = _t(), u = k(!1), i = k(new Array()), s = Se(), f = q();
|
|
1102
1102
|
async function l() {
|
|
1103
1103
|
i.value = [], u.value = !0;
|
|
1104
1104
|
try {
|
|
@@ -1249,7 +1249,7 @@ function Dt(e, t, a) {
|
|
|
1249
1249
|
return `${L(e, !1)} ${u}`;
|
|
1250
1250
|
}
|
|
1251
1251
|
export {
|
|
1252
|
-
|
|
1252
|
+
A as P,
|
|
1253
1253
|
_t as a,
|
|
1254
1254
|
Dt as f,
|
|
1255
1255
|
Te as t,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as b, computed as u } from "vue";
|
|
2
|
-
import { u as d,
|
|
2
|
+
import { u as d, b5 as p, aX as v, c as m, b as h } from "./app-BT34Yv61.js";
|
|
3
3
|
import { useSnackbar as E } from "@feedmepos/ui-library";
|
|
4
4
|
function I() {
|
|
5
5
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b4 as x, bc as V, bd as q, be as Ne, bf as cl, bg as sr, bh as Lt, bi as fl, bj as $l } from "./app-BT34Yv61.js";
|
|
2
2
|
function vl(t, e) {
|
|
3
3
|
for (var r = 0; r < e.length; r++) {
|
|
4
4
|
const n = e[r];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a7 as m, u as k, a as l, ay as B, $ as p } from "./app-BT34Yv61.js";
|
|
2
2
|
import { useCoreStore as v } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as $ } from "@feedmepos/ui-library";
|
|
4
4
|
import { ref as y, computed as b } from "vue";
|
|
@@ -41,6 +41,7 @@ export declare function useNetSuiteStore(): {
|
|
|
41
41
|
transferTemplateColumnDefs(args: {
|
|
42
42
|
onUpdate: (index: number, sku: FdoInventorySku, code: string, measurement?: FdoUnitMeasurement) => void;
|
|
43
43
|
}): Record<number, ColumnDef<FdoPurchaseOrderTemplateItem>>;
|
|
44
|
+
readonly skuSettingOptions: Record<string, NetSuiteSettingOption>;
|
|
44
45
|
readonly inventoryTransferOutEnabled: boolean;
|
|
45
46
|
readonly isReady: boolean;
|
|
46
47
|
readonly isEnabled: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a7 as m, u, c as b, C as w, az as v, aA as $ } from "./app-BT34Yv61.js";
|
|
2
2
|
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
3
3
|
import { defineStore as A } from "pinia";
|
|
4
4
|
import { ref as l, computed as d } from "vue";
|