@feedmepos/mf-inventory-portal 1.2.22-dev.1 → 1.2.22-dev.3
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-CVo40hoN.js → App-aHs88TEq.js} +1 -1
- package/dist/{ApprovalView-B99YGXOt.js → ApprovalView-DBZQsKg9.js} +9 -9
- package/dist/{BindingsDialog-DGFYmVX9.js → BindingsDialog-arTYvJn2.js} +2 -2
- package/dist/{BindingsPicker-CVWxRkDE.js → BindingsPicker-Bm0s6sKE.js} +9 -9
- package/dist/{BindingsTable-Cxs_cQrM.js → BindingsTable-DXlM-qDU.js} +1 -1
- package/dist/ClosingDraftView-DVB02I09.js +1888 -0
- package/dist/ClosingTemplateView-k8EkjlIJ.js +2001 -0
- package/dist/{DeliveryOrderPrintPreview-D-H7S-4t.js → DeliveryOrderPrintPreview-CSv5FOby.js} +8 -8
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BsPMd4IE.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-D0BKSSSp.js} +33 -33
- package/dist/{FmMultiselectDialog-DXVvibUU.js → FmMultiselectDialog-DOf8rbVD.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Dq8lMkNV.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BZX05ToS.js} +49 -49
- package/dist/{ImportView-DUPfQshy.js → ImportView-6ckPf1Ll.js} +27 -27
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DxLVS1Ar.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-QK12Klz5.js} +8 -8
- package/dist/{IngredientGroupView-CqPl6RZI.js → IngredientGroupView-D2RuwnJ3.js} +17 -17
- package/dist/{IngredientsView--7ro7P7J.js → IngredientsView-CZIyrGJ0.js} +72 -73
- package/dist/{IntegrationView-BZnq8gYp.js → IntegrationView-D9JrR8Hb.js} +3 -3
- package/dist/{InventoryBindingForm-DASUGZuO.js → InventoryBindingForm-6QGOGZlB.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-l_EgNW0u.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DG_WKGVU.js} +12 -12
- package/dist/{InventoryBindingSummary-BoUAsK9S.js → InventoryBindingSummary-CoeODKLp.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DimqJCjO.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Ovi_bWlF.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C_wNgXUC.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CaKjg0eV.js} +7 -7
- package/dist/{PublishView-B-Zal--Y.js → PublishView-BLtshSks.js} +10 -10
- package/dist/{PurchaseOrderPrintPreview-CoXu4VO-.js → PurchaseOrderPrintPreview-DCLjVNlh.js} +13 -13
- package/dist/{ReceiveRequestView-B7rprDy7.js → ReceiveRequestView-DdJ3_qMY.js} +115 -115
- package/dist/{RecipeView-BbMlUt0v.js → RecipeView-DYFDguU9.js} +50 -50
- package/dist/{StockView-Bko2-Rzd.js → StockView-DyUrO7Y0.js} +7 -7
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DONtcweN.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bj05qEWl.js} +1 -1
- package/dist/{SupplierView-D4hAT4CW.js → SupplierView-BYDbDGfd.js} +93 -93
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DuaHM-Wk.js +3233 -0
- package/dist/{TransferTemplateView-BLWYhdZG.js → TransferTemplateView-db5L1CIZ.js} +140 -140
- package/dist/{UnitView-Boi_sRGP.js → UnitView-4ygzmFTY.js} +44 -44
- package/dist/{WarehouseView-B1aAyncU.js → WarehouseView-D-b-t21n.js} +66 -66
- package/dist/api/adjustment-template.d.ts +1 -0
- package/dist/api/closing-template.d.ts +1 -0
- package/dist/{app-C4dN86_k.js → app-BDiHcGqi.js} +30052 -30029
- package/dist/app.js +4 -4
- package/dist/{decimal-Cf4voIJl.js → decimal-C-phHxE7.js} +1 -1
- package/dist/{format-unit-display-CjsVuoHS.js → format-unit-display-MVZRrkkD.js} +33 -33
- package/dist/{import-export.helper-DmouV6nF.js → import-export.helper-C3camZX5.js} +6 -6
- package/dist/{index-DK93lkR_.js → index-B60G756h.js} +1 -1
- package/dist/{index-D2C87f4k.js → index-B6zknB--.js} +1 -1
- package/dist/{purchase-order-template-CQcIyT35.js → purchase-order-template-Bkz_Xjv5.js} +1 -1
- package/dist/{stock-CRKwCBhd.js → stock-DnawcaKQ.js} +1 -1
- package/dist/{supplier-BGeDlnSm.js → supplier-Bq0fMcn0.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-Dg3hbUaX.js → use-ingredient-select-dialog-BH2O0eEN.js} +1 -1
- package/dist/{use-inventory-binding-dialog-DRCiAYUs.js → use-inventory-binding-dialog-CI_pMWSk.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +60 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +60 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +56 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +468 -0
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +8 -1
- package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +8 -4
- package/package.json +3 -3
- package/dist/ClosingDraftView-gBO5Icdy.js +0 -1739
- package/dist/ClosingTemplateView-C61_1m3k.js +0 -1970
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-Cr30q-Ft.js +0 -3394
- package/dist/closing-template-CNtgIoiQ.js +0 -53
package/dist/app.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { bp as o, bq as a, br as e, bo as t, bs as i, a as m } from "./app-BDiHcGqi.js";
|
|
3
3
|
export {
|
|
4
4
|
o as FmApp,
|
|
5
5
|
a as InventoryBindingForm,
|
|
6
6
|
e as InventoryBindingSummary,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
t as i18nMessages,
|
|
8
|
+
i as routers,
|
|
9
|
+
m as useInventoryStore
|
|
10
10
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a as q,
|
|
1
|
+
import { a as q, a0 as Ie, ap as U, Y as Ne, aq as ye, X as he, u as X, n as L, ar as Oe, B as le, as as ve, b as te, t as G, z as Z, aV as De, aO as Fe, a6 as Pe, C as Me, E as Ue, at as Le, e as ce, f as re, R as me, x as Be, an as Qe, D as j, j as N, i as He } from "./app-BDiHcGqi.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 J } 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
|
|
7
|
-
import { useRouter as
|
|
8
|
-
import { u as ae } from "./supplier-
|
|
5
|
+
import { u as Se } from "./purchase-order-template-Bkz_Xjv5.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 O, unref as I, createCommentVNode as V, createVNode as P, withCtx as ee, Fragment as B, renderList as K, ref as k, onMounted as ze, computed as ue, watch as Ye, createSlots as Ke, createBlock as Y, h as W } from "vue";
|
|
7
|
+
import { useRouter as We } from "vue-router";
|
|
8
|
+
import { u as ae } from "./supplier-Bq0fMcn0.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;
|
|
@@ -400,7 +400,7 @@ function nt(e, t, a) {
|
|
|
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
|
-
const h =
|
|
403
|
+
const h = De(c), d = rt(
|
|
404
404
|
e.minimumQuantity,
|
|
405
405
|
e.maximumQuantity,
|
|
406
406
|
Z(l, o)
|
|
@@ -432,7 +432,7 @@ function nt(e, t, a) {
|
|
|
432
432
|
function ot(e) {
|
|
433
433
|
const t = e.SheetNames.filter(
|
|
434
434
|
(s) => !Object.values(se).map(String).includes(s)
|
|
435
|
-
), u = Ce().templates, i =
|
|
435
|
+
), u = Ce().templates, i = Oe(u, "_id");
|
|
436
436
|
try {
|
|
437
437
|
return t.reduce(
|
|
438
438
|
(s, f) => {
|
|
@@ -567,15 +567,15 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
567
567
|
"text-fm-color-system-error-300": t.errors.length
|
|
568
568
|
})
|
|
569
569
|
}, [
|
|
570
|
-
je(
|
|
571
|
-
C("span", ct, " (" +
|
|
570
|
+
je(O(t.name) + " ", 1),
|
|
571
|
+
C("span", ct, " (" + O(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, [
|
|
575
575
|
P(i, { "z-index": 50 }, {
|
|
576
576
|
content: ee(() => [
|
|
577
577
|
C("ol", null, [
|
|
578
|
-
(_(!0), E(B, null,
|
|
578
|
+
(_(!0), E(B, null, K(t.errors, (o, c) => (_(), E("li", { key: c }, O(o), 1))), 128))
|
|
579
579
|
])
|
|
580
580
|
]),
|
|
581
581
|
default: ee(() => [
|
|
@@ -597,7 +597,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
597
597
|
"text-fm-color-typo-secondary": !t.errors.length
|
|
598
598
|
}
|
|
599
599
|
])
|
|
600
|
-
},
|
|
600
|
+
}, O((s = t.locations) != null && s.length ? `${(f = t.locations) == null ? void 0 : f.length} locations` : "All locations") + ", " + O(`${(l = t.items) == null ? void 0 : l.length} items`), 3)
|
|
601
601
|
])
|
|
602
602
|
]);
|
|
603
603
|
};
|
|
@@ -677,7 +677,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
677
677
|
}), i.value = !1;
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
|
-
return
|
|
680
|
+
return Ye(t, (b) => {
|
|
681
681
|
b && v(b);
|
|
682
682
|
}), (b, r) => {
|
|
683
683
|
const x = Q("FmCircularProgress"), w = Q("FmIcon"), S = Q("FmButton");
|
|
@@ -701,7 +701,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
701
701
|
onFileUpload: r[0] || (r[0] = (p) => t.value = p),
|
|
702
702
|
label: I(m)("inventory.ingredient.import.uploadTemplate"),
|
|
703
703
|
"button-label": I(m)("inventory.ingredient.import.selectFile")
|
|
704
|
-
},
|
|
704
|
+
}, Ke({ _: 2 }, [
|
|
705
705
|
t.value ? {
|
|
706
706
|
name: "default",
|
|
707
707
|
fn: ee(({ openFileDialog: p }) => [
|
|
@@ -716,11 +716,11 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
716
716
|
}
|
|
717
717
|
])
|
|
718
718
|
}, [
|
|
719
|
-
i.value ? (_(),
|
|
719
|
+
i.value ? (_(), Y(x, {
|
|
720
720
|
key: 0,
|
|
721
721
|
size: "md",
|
|
722
722
|
color: "neutral-gray-200"
|
|
723
|
-
})) : (_(),
|
|
723
|
+
})) : (_(), Y(w, {
|
|
724
724
|
key: 1,
|
|
725
725
|
name: h.value ? "error" : "attach_file",
|
|
726
726
|
outline: "",
|
|
@@ -735,7 +735,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
735
735
|
}
|
|
736
736
|
])
|
|
737
737
|
}, [
|
|
738
|
-
C("div", yt,
|
|
738
|
+
C("div", yt, O(t.value.name), 1)
|
|
739
739
|
], 2),
|
|
740
740
|
i.value ? V("", !0) : (_(), E("div", ht, [
|
|
741
741
|
P(S, {
|
|
@@ -747,7 +747,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
747
747
|
]))
|
|
748
748
|
], 2),
|
|
749
749
|
l.value.length ? (_(), E("div", vt, [
|
|
750
|
-
(_(!0), E(B, null,
|
|
750
|
+
(_(!0), E(B, null, K(l.value, (n, y) => (_(), E("div", {
|
|
751
751
|
key: y,
|
|
752
752
|
class: "flex gap-8 items-center"
|
|
753
753
|
}, [
|
|
@@ -756,7 +756,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
756
756
|
size: "sm",
|
|
757
757
|
color: "system-error-300"
|
|
758
758
|
}),
|
|
759
|
-
C("div", gt,
|
|
759
|
+
C("div", gt, O(n), 1)
|
|
760
760
|
]))), 128))
|
|
761
761
|
])) : V("", !0)
|
|
762
762
|
])
|
|
@@ -765,8 +765,8 @@ 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,
|
|
769
|
-
(_(!0), E(B, null,
|
|
768
|
+
C("div", xt, O(I(m)("inventory.ingredient.import.summary")), 1),
|
|
769
|
+
(_(!0), E(B, null, K(o.value, (p, n) => (_(), Y(pe, {
|
|
770
770
|
key: n,
|
|
771
771
|
name: p.template.name,
|
|
772
772
|
"transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? I(A).TRANSFER : I(A).PURCHASE,
|
|
@@ -775,7 +775,7 @@ const st = { class: "flex items-center gap-12 pl-8" }, it = { class: "flex flex-
|
|
|
775
775
|
errors: p.errors,
|
|
776
776
|
type: "create"
|
|
777
777
|
}, null, 8, ["name", "transfer-type", "locations", "items", "errors"]))), 128)),
|
|
778
|
-
(_(!0), E(B, null,
|
|
778
|
+
(_(!0), E(B, null, K(c.value, (p) => (_(), Y(pe, {
|
|
779
779
|
key: p.template._id,
|
|
780
780
|
name: p.template.name,
|
|
781
781
|
"transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? I(A).TRANSFER : I(A).PURCHASE,
|
|
@@ -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 = X(), u = Ce(), i = Le(), s = Se(), f = te(), l =
|
|
805
|
+
const e = qe(), t = be(), a = X(), 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,
|
|
@@ -882,7 +882,7 @@ const _t = xe("transferTemplateActions", () => {
|
|
|
882
882
|
props: ["modelValue"],
|
|
883
883
|
emits: ["update:modelValue"],
|
|
884
884
|
setup(R) {
|
|
885
|
-
return () =>
|
|
885
|
+
return () => W(J.FmTextField, {
|
|
886
886
|
modelValue: R.modelValue,
|
|
887
887
|
"onUpdate:modelValue": (g) => $ = g,
|
|
888
888
|
label: "New Template Name",
|
|
@@ -935,8 +935,8 @@ const _t = xe("transferTemplateActions", () => {
|
|
|
935
935
|
const { promise: n, resolve: y } = Promise.withResolvers(), T = (g) => {
|
|
936
936
|
y(g);
|
|
937
937
|
}, $ = u.templates.filter((g) => {
|
|
938
|
-
var
|
|
939
|
-
return ((
|
|
938
|
+
var D, F;
|
|
939
|
+
return ((D = g.purchaseOrder.supplier) == null ? void 0 : D._id) === a.currentLocation.doc._id ? !1 : (F = g.locations) != null && F.length ? g.locations.find((M) => M.doc._id === a.currentLocation.doc._id) : !0;
|
|
940
940
|
});
|
|
941
941
|
if (!$.length)
|
|
942
942
|
return e.open({
|
|
@@ -955,10 +955,10 @@ const _t = xe("transferTemplateActions", () => {
|
|
|
955
955
|
}).onSecondary(() => T(void 0)).onClose(() => T(void 0)), n;
|
|
956
956
|
const R = $.map((g) => {
|
|
957
957
|
var ie;
|
|
958
|
-
const
|
|
958
|
+
const D = !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, Re =
|
|
961
|
+
location is ${(ie = f.getLocationSubsidiary(M == null ? void 0 : M.netSuiteId)) == null ? void 0 : ie.fullName}.` : void 0, Re = D || F, ke = D ? "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,
|
|
@@ -966,7 +966,7 @@ const _t = xe("transferTemplateActions", () => {
|
|
|
966
966
|
sublabel: ke ?? Ae
|
|
967
967
|
};
|
|
968
968
|
});
|
|
969
|
-
return R.sort((g,
|
|
969
|
+
return R.sort((g, D) => +!!g.disabled - +!!D.disabled), e.open({
|
|
970
970
|
title: "Select one template",
|
|
971
971
|
contentComponent: Be,
|
|
972
972
|
contentComponentProps: {
|
|
@@ -1175,8 +1175,8 @@ const Ce = xe(
|
|
|
1175
1175
|
},
|
|
1176
1176
|
cell(d) {
|
|
1177
1177
|
const m = Number(d.getValue()) || 0, v = d.row.original.purchaseOrder.items.some(Te);
|
|
1178
|
-
return m === 0 || v ?
|
|
1179
|
-
|
|
1178
|
+
return m === 0 || v ? W("div", { class: "flex justify-end gap-4 items-center" }, [
|
|
1179
|
+
W(
|
|
1180
1180
|
J.FmTooltip,
|
|
1181
1181
|
{},
|
|
1182
1182
|
{
|
|
@@ -1184,7 +1184,7 @@ const Ce = xe(
|
|
|
1184
1184
|
return v ? "The template is invalid due to invalid unit on some of the items. Please update this template." : "The template is invalid due to deleted ingredients. Please update this template.";
|
|
1185
1185
|
},
|
|
1186
1186
|
default() {
|
|
1187
|
-
return
|
|
1187
|
+
return W(J.FmIcon, {
|
|
1188
1188
|
name: "error",
|
|
1189
1189
|
color: "system-error-300",
|
|
1190
1190
|
size: "sm"
|
|
@@ -1244,14 +1244,14 @@ const Ce = xe(
|
|
|
1244
1244
|
};
|
|
1245
1245
|
}
|
|
1246
1246
|
);
|
|
1247
|
-
function
|
|
1247
|
+
function Ot(e, t, a) {
|
|
1248
1248
|
const u = (a == null ? void 0 : a.abbrev) ?? t.abbrev;
|
|
1249
1249
|
return `${L(e, !1)} ${u}`;
|
|
1250
1250
|
}
|
|
1251
1251
|
export {
|
|
1252
1252
|
A as P,
|
|
1253
1253
|
_t as a,
|
|
1254
|
-
|
|
1254
|
+
Ot as f,
|
|
1255
1255
|
Te as t,
|
|
1256
1256
|
Ce as u
|
|
1257
1257
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as y,
|
|
1
|
+
import { a as y, W as k, Y as w, X as N, n as H, o as $, ar as P, c as T, as as j, q as S, t as _, a4 as I, P as O } from "./app-BDiHcGqi.js";
|
|
2
2
|
import { useCoreStore as g } from "@feedmepos/mf-common";
|
|
3
3
|
function R() {
|
|
4
4
|
return {
|
|
@@ -67,7 +67,7 @@ function E() {
|
|
|
67
67
|
id: "measurementName",
|
|
68
68
|
name: "Measurement Name"
|
|
69
69
|
}
|
|
70
|
-
], t =
|
|
70
|
+
], t = T(), r = g(), n = $(r.currentCountry.value);
|
|
71
71
|
return t.enableTotalCost && e.push(
|
|
72
72
|
{
|
|
73
73
|
id: "valuationMethod",
|
|
@@ -112,7 +112,7 @@ function X() {
|
|
|
112
112
|
], s = r.map((m) => `system:${m.id}`), c = k(n, s), a = "FeedMe ingredients template.xlsx";
|
|
113
113
|
return N(c, a), a;
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function Y(e) {
|
|
116
116
|
const [
|
|
117
117
|
t,
|
|
118
118
|
r,
|
|
@@ -163,9 +163,9 @@ function U(e, t, r, { ignoreErrors: n = !1 } = {}) {
|
|
|
163
163
|
e.valuationMethod && !u && a.push(
|
|
164
164
|
`Expected valuation method to be one of ${S.options.join()} but got ${e.valuationMethod} instead.`
|
|
165
165
|
);
|
|
166
|
-
const l = g().currentCountry.value, p = (i) => `${i}`.length &&
|
|
166
|
+
const l = g().currentCountry.value, p = (i) => `${i}`.length && O()(i) === !0, f = p(`${e.pricePerUnit}`) === !0 ? {
|
|
167
167
|
costPerUnit: {
|
|
168
|
-
...
|
|
168
|
+
..._(Number(e.pricePerUnit) || 0, I(Number(e.pricePerUnit) || 0)),
|
|
169
169
|
currency: ((M = $(l)) == null ? void 0 : M.currency) ?? "MYR"
|
|
170
170
|
},
|
|
171
171
|
measurement: o
|
|
@@ -191,7 +191,7 @@ function U(e, t, r, { ignoreErrors: n = !1 } = {}) {
|
|
|
191
191
|
}
|
|
192
192
|
function z(e) {
|
|
193
193
|
try {
|
|
194
|
-
const t =
|
|
194
|
+
const t = Y(e).filter((o) => o.data.code), n = y().skus, s = P(n, "code"), c = t.filter((o) => !s[o.data.code]), a = t.filter((o) => s[o.data.code]), m = c.map(
|
|
195
195
|
(o) => U(o.data, o.index, t)
|
|
196
196
|
), d = a.map((o) => {
|
|
197
197
|
const u = U(o.data, o.index, t), h = s[o.data.code];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b8 as x, bg as V, bh as q, bi as Ne, bj as cl, bk as sr, bl as Lt, bm as fl, bn as $l } from "./app-BDiHcGqi.js";
|
|
2
2
|
function vl(t, e) {
|
|
3
3
|
for (var r = 0; r < e.length; r++) {
|
|
4
4
|
const n = e[r];
|
|
@@ -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, b9 as p, a$ as v, c as m, b as h } from "./app-BDiHcGqi.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 { aa as m, u as k, a as l, aC as B, a0 as p } from "./app-BDiHcGqi.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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aa as m, u, c as b, ar as w, aD as v, aE as $ } from "./app-BDiHcGqi.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";
|