@feedmepos/mf-inventory-portal 1.1.8-dev.3 → 1.1.9-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-DdY-tL6d.js → App-BfIpFPGU.js} +1 -1
- package/dist/{ApprovalView-D1apNSin.js → ApprovalView-Do1yyzE6.js} +22 -22
- package/dist/{BindingsDialog-NYYC7EMS.js → BindingsDialog-ubaL5OwF.js} +2 -2
- package/dist/{BindingsPicker-DJ3sTg_e.js → BindingsPicker-BYchmbg-.js} +1 -1
- package/dist/{BindingsTable-B5FasJWs.js → BindingsTable-ICktlHep.js} +1 -1
- package/dist/{ClosingDraftView-BKu_losH.js → ClosingDraftView-DwbYmvym.js} +2 -2
- package/dist/{ClosingTemplateView--1VxQU7U.js → ClosingTemplateView-uQSTyQiB.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-DmVmPHIL.js → DeliveryOrderPrintPreview-mIAgCIr3.js} +8 -8
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BRG0Rfbm.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DDLdXyp6.js} +12 -12
- package/dist/{FmMultiselectDialog-Cz_Dmt91.js → FmMultiselectDialog-zemj5Lmo.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DXB6plH-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D9saKOiN.js} +25 -25
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-llPqmeTt.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BozsxAU4.js} +1 -1
- package/dist/{IngredientGroupView-Cl24Ekok.js → IngredientGroupView-COhf_EZ5.js} +2 -2
- package/dist/{IngredientsView-BQsC-7Fw.js → IngredientsView-8VBajGKt.js} +4 -4
- package/dist/{IntegrationView-C9gSyaTU.js → IntegrationView-Cs-WRZFa.js} +83 -83
- package/dist/{InventoryBindingForm-YxAIUhiw.js → InventoryBindingForm-BagZK7OF.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BFvVKi21.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DG7_OLWa.js} +3 -3
- package/dist/{InventoryBindingSummary-5uoBPt2b.js → InventoryBindingSummary-pPCMIHWZ.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CvBN72EI.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D2xliATx.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-By0rf6sh.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BvDgdLC4.js} +7 -7
- package/dist/{PublishView-BkEiBVqj.js → PublishView-BpSIH0g0.js} +4 -4
- package/dist/{PurchaseOrderPrintPreview-EyMcD2XW.js → PurchaseOrderPrintPreview-CHFo2OWK.js} +7 -7
- package/dist/{ReceiveRequestView-Dc09tWcz.js → ReceiveRequestView-DmhXAzCY.js} +60 -60
- package/dist/{RecipeView-CdqrhnMz.js → RecipeView-D_o1ilxq.js} +3 -3
- package/dist/StockView-BFRupdag.js +2080 -0
- package/dist/{SupplierView-EsdZPvdM.js → SupplierView-DfMlG0Kb.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-KPBQ3gpI.js → TransferDetails.vue_vue_type_script_setup_true_lang-CUbqoBpx.js} +5 -5
- package/dist/{TransferTemplateView-Ba5-1Ewp.js → TransferTemplateView-M90fc49b.js} +64 -64
- package/dist/{UnitView-B84IPbML.js → UnitView-DoBEmSwl.js} +3 -3
- package/dist/{WarehouseView-d-ecUPlf.js → WarehouseView-BsogK81-.js} +1 -1
- package/dist/api/stock.d.ts +1 -0
- package/dist/{app-BhhwuRBL.js → app-CwtJJj6R.js} +20733 -20627
- package/dist/app.js +1 -1
- package/dist/{decimal-DS1ycjoO.js → decimal-Chx0lsE-.js} +1 -1
- package/dist/{format-unit-display-CWtXsCmx.js → format-unit-display-CIdi-ibN.js} +17 -17
- package/dist/{index-ueQSTssg.js → index-DrX61Ix1.js} +1 -1
- package/dist/{index-DgOQJh8U.js → index-m57qt8LD.js} +1 -1
- package/dist/{stock-BnEVp_Jj.js → stock-DRK5DdRY.js} +30 -26
- package/dist/{supplier-DWViUySA.js → supplier-Dyvr7-wz.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-FetvENOi.js → use-ingredient-select-dialog-g2uXpJK9.js} +1 -1
- package/dist/{use-inventory-binding-dialog-DWuCe_pt.js → use-inventory-binding-dialog-CnXislSE.js} +1 -1
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +6 -2
- package/dist/views/stock/components/dialog/AmendAdjustmentForm.vue.d.ts +94 -0
- package/dist/views/stock/components/dialog/AmendAdjustmentFormProps.d.ts +3 -0
- package/package.json +3 -3
- package/dist/StockView-BvBAtCrX.js +0 -1885
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as de, mergeModels as Bd, computed as x, useModel as Gd, resolveComponent as A, openBlock as N, createElementBlock as I, createElementVNode as b, createVNode as P, withCtx as L, toDisplayString as w, unref as c, Fragment as Q, renderList as te, ref as M, createBlock as Y, createCommentVNode as X, isRef as Qe, normalizeClass as ee, createTextVNode as Hd, watch as Od, createSlots as jd, normalizeStyle as Kd, Teleport as Wd } from "vue";
|
|
2
|
-
import { u as oe } from "./supplier-
|
|
3
|
-
import { b as we, h as Yd, D as ed, i as se, f as Ne, a as Fd, o as dd, p as td, k as Xd, a2 as Zd, w as wd, u as ye, m as K, c as ve, e as U, r as Ad, s as zd, v as Td, x as qd, y as Jd, z as Qd, B as et, _ as dt, C as tt, E as rt, G as ue } from "./app-
|
|
2
|
+
import { u as oe } from "./supplier-Dyvr7-wz.js";
|
|
3
|
+
import { b as we, h as Yd, D as ed, i as se, f as Ne, a as Fd, o as dd, p as td, k as Xd, a2 as Zd, w as wd, u as ye, m as K, c as ve, e as U, r as Ad, s as zd, v as Td, x as qd, y as Jd, z as Qd, B as et, _ as dt, C as tt, E as rt, G as ue } from "./app-CwtJJj6R.js";
|
|
4
4
|
import { useI18n as z, useCoreStore as ge } from "@feedmepos/mf-common";
|
|
5
5
|
import { useDialog as Ae, useSnackbar as he, useProxiedModel as rd, useDialogChild as nt, useBreakpoints as ot } from "@feedmepos/ui-library";
|
|
6
6
|
import { _ as at } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
7
|
-
import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { _ as $t } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-D9saKOiN.js";
|
|
8
8
|
import { defineStore as it } from "pinia";
|
|
9
9
|
function lt(e, d) {
|
|
10
10
|
const { t } = z(), r = we();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { a3 as pt, u as me,
|
|
1
|
+
import { a3 as pt, u as me, aS as O, aT as Ae, aA as ie, c as $e, b as Te, ab as vt, ad as yt, ae as ht, aU as bt, e as Xe, f as rt, a0 as Ke, aV as gt, a8 as st, T as nt, j as fe, a6 as _t, aW as at, ai as qe, h as Ze, i as J, D as ne, aX as ot, aY as it, aZ as Ee, ay as Je, aa as xe, a4 as Le, a5 as St, a_ as ke, Q as wt } from "./app-CwtJJj6R.js";
|
|
2
2
|
import { ref as M, computed as Z, h as A, defineComponent as he, reactive as Rt, onMounted as lt, resolveComponent as z, openBlock as g, createBlock as oe, withCtx as ae, createElementVNode as o, createVNode as I, unref as w, createElementBlock as N, toDisplayString as D, createCommentVNode as U, Fragment as se, renderList as ve, watch as Ot, isRef as Nt, normalizeClass as De, createTextVNode as Be, resolveDynamicComponent as xt } from "vue";
|
|
3
|
-
import { F as kt } from "./decimal-
|
|
3
|
+
import { F as kt } from "./decimal-Chx0lsE-.js";
|
|
4
4
|
import { useCoreStore as Pe, useI18n as ct } from "@feedmepos/mf-common";
|
|
5
5
|
import { useDialog as je, useSnackbar as Ce, components as et, FmButtonVariant as re, useProxiedModel as Dt } from "@feedmepos/ui-library";
|
|
6
|
-
import { b as qt, u as At, P as ye, f as $t } from "./format-unit-display-
|
|
6
|
+
import { b as qt, u as At, P as ye, f as $t } from "./format-unit-display-CIdi-ibN.js";
|
|
7
7
|
import { E as Tt } from "./empty-placeholder-wf6-BWE8.js";
|
|
8
|
-
import { _ as Pt, F as Ct, a as It } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as Pt, F as Ct, a as It } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-D9saKOiN.js";
|
|
9
9
|
import { u as Ft, R as tt } from "./usePromise-CbVUCxhj.js";
|
|
10
|
-
import { u as Et } from "./index-
|
|
10
|
+
import { u as Et } from "./index-m57qt8LD.js";
|
|
11
11
|
const Ie = pt((p, e) => {
|
|
12
12
|
const a = me(), b = Pe();
|
|
13
13
|
return {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as ae, onMounted as Te, computed as L, ref as Y, watch as Ce, inject as ot, resolveComponent as V, openBlock as $, createElementBlock as N, createElementVNode as e, createVNode as m, withCtx as U, renderSlot as xe, withDirectives as Pe, normalizeClass as re, vModelText as Be, reactive as st, h as j, toDisplayString as
|
|
2
|
-
import { K as We,
|
|
1
|
+
import { defineComponent as ae, onMounted as Te, computed as L, ref as Y, watch as Ce, inject as ot, resolveComponent as V, openBlock as $, createElementBlock as N, createElementVNode as e, createVNode as m, withCtx as U, renderSlot as xe, withDirectives as Pe, normalizeClass as re, vModelText as Be, reactive as st, h as j, toDisplayString as I, unref as t, createCommentVNode as oe, Fragment as pe, normalizeStyle as _e, renderList as je, createBlock as le, mergeProps as Qe, createTextVNode as ne, mergeModels as qe, useModel as lt, isRef as Ye, Teleport as nt, normalizeProps as at, guardReactiveProps as rt } from "vue";
|
|
2
|
+
import { K as We, aJ as he, t as Ne, I as it, aK as ut, aL as dt, j as se, aM as mt, b as Ke, a as Ge, Q as Le, c as ge, m as ke, Y as be, T as ye, A as we, M as pt, G as ee, u as Je, an as ct, a0 as ft, E as Ze, e as ue, aN as ve, ai as yt, s as vt, aa as bt, B as gt, i as Ee, _ as ht, C as xt } from "./app-CwtJJj6R.js";
|
|
3
3
|
import { useI18n as me } from "@feedmepos/mf-common";
|
|
4
|
-
import { P as X, a as _t, f as kt, t as wt, b as ze, u as Tt } from "./format-unit-display-
|
|
4
|
+
import { P as X, a as _t, f as kt, t as wt, b as ze, u as Tt } from "./format-unit-display-CIdi-ibN.js";
|
|
5
5
|
import { components as de, useSnackbar as Ct, useProxiedModel as Xe, useBreakpoints as Ft } from "@feedmepos/ui-library";
|
|
6
|
-
import { defineStore as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { c as Dt, u as Vt, _ as At } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { u as Rt } from "./supplier-
|
|
10
|
-
import { u as Ut } from "./use-ingredient-select-dialog-
|
|
6
|
+
import { defineStore as St, storeToRefs as He } from "pinia";
|
|
7
|
+
import { _ as It, b as Mt, F as $t, a as Ot } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-D9saKOiN.js";
|
|
8
|
+
import { c as Dt, u as Vt, _ as At } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DDLdXyp6.js";
|
|
9
|
+
import { u as Rt } from "./supplier-Dyvr7-wz.js";
|
|
10
|
+
import { u as Ut } from "./use-ingredient-select-dialog-g2uXpJK9.js";
|
|
11
11
|
const Pt = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { class: "flex-1" }, Nt = { class: "flex items-center" }, Lt = { class: "flex-1" }, Et = { class: "flex-1" }, zt = /* @__PURE__ */ ae({
|
|
12
12
|
__name: "FmMinMaxInput",
|
|
13
13
|
props: {
|
|
@@ -175,7 +175,7 @@ function Qt(p) {
|
|
|
175
175
|
return !s && !u ? `Min & max must be a multiple of ${v}` : s ? u ? !0 : `Max must be a multiple of ${v}` : `Min must be a multiple of ${v}`;
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
|
-
const et =
|
|
178
|
+
const et = St("netsuite-custom-field-helper", () => {
|
|
179
179
|
const p = Ke();
|
|
180
180
|
function h(v, a, r, s, u) {
|
|
181
181
|
var F;
|
|
@@ -291,7 +291,7 @@ function Yt(p, h = {}) {
|
|
|
291
291
|
var d;
|
|
292
292
|
return ((d = o.measurement) == null ? void 0 : d.id) === P.id;
|
|
293
293
|
}), T = o.sku.unit._id !== f.unit._id || !b || o.measurement && !k;
|
|
294
|
-
return j(
|
|
294
|
+
return j(It, {
|
|
295
295
|
style: {
|
|
296
296
|
flex: "1 1 0%"
|
|
297
297
|
},
|
|
@@ -512,8 +512,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
512
512
|
return $(), N("div", Wt, [
|
|
513
513
|
e("div", Kt, [
|
|
514
514
|
e("div", Gt, [
|
|
515
|
-
e("span", Jt, " (" +
|
|
516
|
-
e("span", Zt,
|
|
515
|
+
e("span", Jt, " (" + I(a.row.original.sku.code) + ") ", 1),
|
|
516
|
+
e("span", Zt, I(a.row.original.sku.name), 1)
|
|
517
517
|
]),
|
|
518
518
|
e("div", null, [
|
|
519
519
|
m(t(ee), {
|
|
@@ -622,7 +622,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
622
622
|
e("td", {
|
|
623
623
|
colspan: v.row.getVisibleCells().length,
|
|
624
624
|
class: "text-red-600 px-16 py-2"
|
|
625
|
-
},
|
|
625
|
+
}, I(v.errorMessage), 9, mo)
|
|
626
626
|
])) : oe("", !0)
|
|
627
627
|
], 64));
|
|
628
628
|
}
|
|
@@ -788,7 +788,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
788
788
|
if (G)
|
|
789
789
|
return G;
|
|
790
790
|
const Z = { amount: 1, precision: be(A.unit) };
|
|
791
|
-
let
|
|
791
|
+
let S = {
|
|
792
792
|
id: f.usePurchaseOrderV2 ? crypto.randomUUID() : void 0,
|
|
793
793
|
sku: A,
|
|
794
794
|
code: A.code,
|
|
@@ -802,16 +802,16 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
802
802
|
quantityStep: Z
|
|
803
803
|
};
|
|
804
804
|
return k.validateUnitInput(
|
|
805
|
-
|
|
805
|
+
S,
|
|
806
806
|
A,
|
|
807
807
|
{
|
|
808
808
|
amount: Z,
|
|
809
809
|
measurement: null
|
|
810
810
|
},
|
|
811
811
|
(H) => {
|
|
812
|
-
|
|
812
|
+
S.code = H.code;
|
|
813
813
|
}
|
|
814
|
-
),
|
|
814
|
+
), S;
|
|
815
815
|
}
|
|
816
816
|
);
|
|
817
817
|
if (!q) return;
|
|
@@ -844,13 +844,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
844
844
|
label: t(u)("inventory.transfer.form.name"),
|
|
845
845
|
"label-mark": "required",
|
|
846
846
|
modelValue: t(s).name,
|
|
847
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
847
|
+
"onUpdate:modelValue": n[0] || (n[0] = (S) => t(s).name = S),
|
|
848
848
|
rules: [t(ke)()]
|
|
849
849
|
}, null, 8, ["label", "modelValue", "rules"]),
|
|
850
850
|
m(q, {
|
|
851
851
|
label: t(u)("inventory.transfer.form.type.title"),
|
|
852
852
|
"model-value": R.value,
|
|
853
|
-
"onUpdate:modelValue": n[1] || (n[1] = (
|
|
853
|
+
"onUpdate:modelValue": n[1] || (n[1] = (S) => R.value = S),
|
|
854
854
|
items: [
|
|
855
855
|
{
|
|
856
856
|
label: t(u)("inventory.transfer.form.type.purchase"),
|
|
@@ -873,34 +873,34 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
873
873
|
"line-clamp-1 fm-typo-en-body-lg-400",
|
|
874
874
|
l.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
875
875
|
])
|
|
876
|
-
},
|
|
876
|
+
}, I(t(ft)(R.value)), 3)
|
|
877
877
|
]),
|
|
878
878
|
_: 1
|
|
879
879
|
}, 8, ["label", "model-value", "items", "rules"]),
|
|
880
880
|
m(q, {
|
|
881
881
|
label: R.value === t(X).PURCHASE ? t(u)("inventory.transfer.form.purchaseFrom") : t(u)("inventory.transfer.form.transferFrom"),
|
|
882
882
|
modelValue: d.value,
|
|
883
|
-
"onUpdate:modelValue": n[2] || (n[2] = (
|
|
883
|
+
"onUpdate:modelValue": n[2] || (n[2] = (S) => d.value = S),
|
|
884
884
|
items: P.value
|
|
885
885
|
}, {
|
|
886
|
-
"menu-wrapper": U((
|
|
886
|
+
"menu-wrapper": U((S) => {
|
|
887
887
|
var H;
|
|
888
888
|
return [
|
|
889
|
-
m(At, Qe(
|
|
889
|
+
m(At, Qe(S, {
|
|
890
890
|
items: P.value,
|
|
891
891
|
"model-value": (H = l.modelValue.purchaseOrder.supplier) == null ? void 0 : H._id
|
|
892
892
|
}), null, 16, ["items", "model-value"])
|
|
893
893
|
];
|
|
894
894
|
}),
|
|
895
895
|
default: U(() => {
|
|
896
|
-
var
|
|
896
|
+
var S;
|
|
897
897
|
return [
|
|
898
898
|
e("span", {
|
|
899
899
|
class: re([
|
|
900
900
|
"line-clamp-1 fm-typo-en-body-lg-400",
|
|
901
901
|
l.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
902
902
|
])
|
|
903
|
-
},
|
|
903
|
+
}, I((S = P.value.find((H) => H.value === d.value)) == null ? void 0 : S.label), 3)
|
|
904
904
|
];
|
|
905
905
|
}),
|
|
906
906
|
_: 1
|
|
@@ -909,14 +909,14 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
909
909
|
label: t(u)("inventory.transfer.form.reference"),
|
|
910
910
|
"label-mark": "optional",
|
|
911
911
|
modelValue: t(s).purchaseOrder.ref,
|
|
912
|
-
"onUpdate:modelValue": n[3] || (n[3] = (
|
|
912
|
+
"onUpdate:modelValue": n[3] || (n[3] = (S) => t(s).purchaseOrder.ref = S)
|
|
913
913
|
}, null, 8, ["label", "modelValue"]),
|
|
914
914
|
m(z, {
|
|
915
915
|
label: t(u)("inventory.transfer.form.remark"),
|
|
916
916
|
"label-mark": "optional",
|
|
917
917
|
"max-length": 240,
|
|
918
918
|
modelValue: M.value,
|
|
919
|
-
"onUpdate:modelValue": n[4] || (n[4] = (
|
|
919
|
+
"onUpdate:modelValue": n[4] || (n[4] = (S) => M.value = S),
|
|
920
920
|
class: re({ "text-fm-color-typo-disabled": l.disabled })
|
|
921
921
|
}, null, 8, ["label", "modelValue", "class"])
|
|
922
922
|
])
|
|
@@ -952,7 +952,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
952
952
|
]),
|
|
953
953
|
e("div", go, [
|
|
954
954
|
e("div", ho, [
|
|
955
|
-
e("div", xo,
|
|
955
|
+
e("div", xo, I(t(u)("inventory.transfer.form.items.title")), 1),
|
|
956
956
|
t(b).isEnabled ? ($(), le(K, {
|
|
957
957
|
key: 0,
|
|
958
958
|
label: "Check NetSuite",
|
|
@@ -967,7 +967,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
967
967
|
"prepend-icon": "add",
|
|
968
968
|
variant: "plain",
|
|
969
969
|
class: "border-2 rounded-lg border-fm-color-primary",
|
|
970
|
-
onClick: n[5] || (n[5] = (
|
|
970
|
+
onClick: n[5] || (n[5] = (S) => J()),
|
|
971
971
|
size: "md"
|
|
972
972
|
}, null, 8, ["disabled", "label"])
|
|
973
973
|
]),
|
|
@@ -981,7 +981,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
981
981
|
]))) : oe("", !0),
|
|
982
982
|
e("div", ko, [
|
|
983
983
|
e("p", wo, [
|
|
984
|
-
ne(' Set "' +
|
|
984
|
+
ne(' Set "' + I(t(u)("inventory.transfer.form.items.table.DefaultAmount")) + '" to "0" to mark the item as ', 1),
|
|
985
985
|
n[10] || (n[10] = e("b", null, "optional", -1)),
|
|
986
986
|
n[11] || (n[11] = ne(" when creating an order request. ")),
|
|
987
987
|
n[12] || (n[12] = e("ul", { style: { "list-style": "initial", "margin-left": "20px" } }, [
|
|
@@ -993,26 +993,26 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
993
993
|
($(), le(D, {
|
|
994
994
|
"column-defs": E.value,
|
|
995
995
|
"row-data": t(s).purchaseOrder.items,
|
|
996
|
-
key: t(s).purchaseOrder.items.map((
|
|
996
|
+
key: t(s).purchaseOrder.items.map((S) => S.sku._id).join("."),
|
|
997
997
|
"hide-footer": "",
|
|
998
998
|
"page-size": t(s).purchaseOrder.items.length
|
|
999
999
|
}, {
|
|
1000
|
-
"table-row": U((
|
|
1000
|
+
"table-row": U((S) => [
|
|
1001
1001
|
m(po, {
|
|
1002
|
-
row:
|
|
1003
|
-
errorMessage: x.value[
|
|
1002
|
+
row: S,
|
|
1003
|
+
errorMessage: x.value[S.index],
|
|
1004
1004
|
"onUpdate:item": n[6] || (n[6] = (H) => W.value.updateItem(H)),
|
|
1005
1005
|
disabled: l.disabled
|
|
1006
1006
|
}, null, 8, ["row", "errorMessage", "disabled"])
|
|
1007
1007
|
]),
|
|
1008
|
-
"list-row": U((
|
|
1008
|
+
"list-row": U((S) => [
|
|
1009
1009
|
($(), le(Ze, {
|
|
1010
|
-
row:
|
|
1010
|
+
row: S,
|
|
1011
1011
|
key: t(s).purchaseOrder.items.map((H) => H.sku._id).join(".")
|
|
1012
1012
|
}, {
|
|
1013
1013
|
default: U((H) => [
|
|
1014
1014
|
m(ro, {
|
|
1015
|
-
row:
|
|
1015
|
+
row: S,
|
|
1016
1016
|
"cell-by-col-id": H,
|
|
1017
1017
|
"onUpdate:item": n[7] || (n[7] = (ie) => W.value.updateItem(ie)),
|
|
1018
1018
|
disabled: l.disabled
|
|
@@ -1062,7 +1062,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
1062
1062
|
overlay: !0
|
|
1063
1063
|
}, {
|
|
1064
1064
|
"dialog-header": U(() => [
|
|
1065
|
-
e("div", null,
|
|
1065
|
+
e("div", null, I(v.confirmTitle || "Confirm"), 1)
|
|
1066
1066
|
]),
|
|
1067
1067
|
"dialog-footer": U(() => [
|
|
1068
1068
|
e("div", Co, [
|
|
@@ -1081,7 +1081,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
1081
1081
|
]),
|
|
1082
1082
|
default: U(() => [
|
|
1083
1083
|
xe(u.$slots, "dialog-content", {}, () => [
|
|
1084
|
-
ne(
|
|
1084
|
+
ne(I(v.confirmMessage || "Are you sure you want to proceed?"), 1)
|
|
1085
1085
|
])
|
|
1086
1086
|
]),
|
|
1087
1087
|
_: 3
|
|
@@ -1089,7 +1089,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
1089
1089
|
]);
|
|
1090
1090
|
};
|
|
1091
1091
|
}
|
|
1092
|
-
}),
|
|
1092
|
+
}), So = { class: "flex items-center" }, Io = { class: "fm-typo-en-title-md-800" }, Mo = { class: "flex gap-4" }, $o = /* @__PURE__ */ ae({
|
|
1093
1093
|
__name: "TransferTemplateDialog",
|
|
1094
1094
|
props: /* @__PURE__ */ qe({
|
|
1095
1095
|
mode: {},
|
|
@@ -1236,8 +1236,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
1236
1236
|
"max-width": 1600
|
|
1237
1237
|
}, {
|
|
1238
1238
|
"side-sheet-header": U(() => [
|
|
1239
|
-
e("div",
|
|
1240
|
-
e("div",
|
|
1239
|
+
e("div", So, [
|
|
1240
|
+
e("div", Io, I(k.value), 1)
|
|
1241
1241
|
])
|
|
1242
1242
|
]),
|
|
1243
1243
|
default: U(() => [
|
|
@@ -1344,8 +1344,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
1344
1344
|
var _, W, te, E, B, J, l, n, C;
|
|
1345
1345
|
return [
|
|
1346
1346
|
e("div", Do, [
|
|
1347
|
-
e("div", Vo,
|
|
1348
|
-
e("div", Ao,
|
|
1347
|
+
e("div", Vo, I(t(s)("inventory.transfer.template.details.templateSummary")), 1),
|
|
1348
|
+
e("div", Ao, I(t(s)(
|
|
1349
1349
|
`inventory.transfer.receiveRequest.details.type.${c.value.toLocaleLowerCase("en-US")}`
|
|
1350
1350
|
)), 1)
|
|
1351
1351
|
]),
|
|
@@ -1353,32 +1353,32 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
1353
1353
|
e("div", Ro, [
|
|
1354
1354
|
e("div", Uo, [
|
|
1355
1355
|
e("div", Po, [
|
|
1356
|
-
e("div", Bo,
|
|
1356
|
+
e("div", Bo, I(t(s)("inventory.transfer.receiveRequest.details.createdAt")), 1)
|
|
1357
1357
|
]),
|
|
1358
|
-
e("div", qo,
|
|
1358
|
+
e("div", qo, I(t(yt)(((_ = b.template) == null ? void 0 : _._id) ?? "")), 1)
|
|
1359
1359
|
]),
|
|
1360
1360
|
(W = b.template) != null && W.updatedAt ? ($(), N("div", No, [
|
|
1361
1361
|
e("div", Lo, [
|
|
1362
|
-
e("div", Eo,
|
|
1362
|
+
e("div", Eo, I(t(s)("inventory.transfer.receiveRequest.details.updatedAt")), 1)
|
|
1363
1363
|
]),
|
|
1364
1364
|
e("div", zo, [
|
|
1365
|
-
ne(
|
|
1365
|
+
ne(I(t(vt)(new Date(b.template.updatedAt))) + " ", 1),
|
|
1366
1366
|
(te = b.template.updatedBy) != null && te.name ? ($(), N(pe, { key: 0 }, [
|
|
1367
|
-
ne(" (" +
|
|
1367
|
+
ne(" (" + I(b.template.updatedBy.name) + ") ", 1)
|
|
1368
1368
|
], 64)) : oe("", !0)
|
|
1369
1369
|
])
|
|
1370
1370
|
])) : oe("", !0),
|
|
1371
1371
|
(B = (E = u.value) == null ? void 0 : E.supplier) != null && B.name ? ($(), N("div", Ho, [
|
|
1372
|
-
e("div", jo,
|
|
1373
|
-
e("div", Qo,
|
|
1372
|
+
e("div", jo, I(t(s)("inventory.transfer.receiveRequest.details.from")), 1),
|
|
1373
|
+
e("div", Qo, I((l = (J = u.value) == null ? void 0 : J.supplier) == null ? void 0 : l.name), 1)
|
|
1374
1374
|
])) : oe("", !0),
|
|
1375
1375
|
(n = u.value) != null && n.ref ? ($(), N("div", Yo, [
|
|
1376
|
-
e("div", Wo,
|
|
1377
|
-
e("div", Ko,
|
|
1376
|
+
e("div", Wo, I(t(s)("inventory.transfer.receiveRequest.details.reference")), 1),
|
|
1377
|
+
e("div", Ko, I(u.value.ref), 1)
|
|
1378
1378
|
])) : oe("", !0),
|
|
1379
1379
|
(C = u.value) != null && C.remark ? ($(), N("div", Go, [
|
|
1380
|
-
e("div", Jo,
|
|
1381
|
-
e("div", Zo,
|
|
1380
|
+
e("div", Jo, I(t(s)("inventory.transfer.receiveRequest.details.remark")), 1),
|
|
1381
|
+
e("div", Zo, I(u.value.remark), 1)
|
|
1382
1382
|
])) : oe("", !0)
|
|
1383
1383
|
])
|
|
1384
1384
|
];
|
|
@@ -1388,19 +1388,19 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
1388
1388
|
]),
|
|
1389
1389
|
e("div", Xo, [
|
|
1390
1390
|
e("div", es, [
|
|
1391
|
-
e("div", ts,
|
|
1391
|
+
e("div", ts, I(t(s)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
|
|
1392
1392
|
($(!0), N(pe, null, je(((O = u.value) == null ? void 0 : O.items) ?? [], (_) => ($(), N("div", {
|
|
1393
1393
|
key: _.code,
|
|
1394
1394
|
class: "flex flex-col"
|
|
1395
1395
|
}, [
|
|
1396
1396
|
e("div", os, [
|
|
1397
|
-
e("div", ss,
|
|
1397
|
+
e("div", ss, I(_.name), 1),
|
|
1398
1398
|
k[3] || (k[3] = e("div", { class: "flex-1 min-w-32" }, null, -1)),
|
|
1399
|
-
e("div", ls,
|
|
1399
|
+
e("div", ls, I(t(kt)(_.quantity, _.sku.unit, _.measurement)), 1)
|
|
1400
1400
|
]),
|
|
1401
1401
|
e("div", ns, [
|
|
1402
|
-
e("div", as,
|
|
1403
|
-
_.totalCost && t(r).enableTotalCost ? ($(), N("div", rs, " (" +
|
|
1402
|
+
e("div", as, I(_.code), 1),
|
|
1403
|
+
_.totalCost && t(r).enableTotalCost ? ($(), N("div", rs, " (" + I(t(bt)(_.totalCost)) + ") ", 1)) : oe("", !0)
|
|
1404
1404
|
]),
|
|
1405
1405
|
t(wt)(_) ? ($(), N("div", is, [
|
|
1406
1406
|
m(P, {
|
|
@@ -1539,7 +1539,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
1539
1539
|
onRowClick: (B) => t(a)(B)
|
|
1540
1540
|
}, {
|
|
1541
1541
|
default: U((B) => {
|
|
1542
|
-
var J, l, n, C, q, z, K, D, A, G, Z,
|
|
1542
|
+
var J, l, n, C, q, z, K, D, A, G, Z, S, H, ie, Fe, Se, Ie, Me, $e, Oe, ce, De, Ve, Ae, Re, fe, Ue;
|
|
1543
1543
|
return [
|
|
1544
1544
|
e("div", cs, [
|
|
1545
1545
|
e("div", fs, [
|
|
@@ -1557,12 +1557,12 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Kt = { class: "flex items-cen
|
|
|
1557
1557
|
]),
|
|
1558
1558
|
e("div", bs, [
|
|
1559
1559
|
m(t(ee), {
|
|
1560
|
-
render: (H = (
|
|
1560
|
+
render: (H = (S = (Z = B.supplier) == null ? void 0 : Z.column) == null ? void 0 : S.columnDef) == null ? void 0 : H.cell,
|
|
1561
1561
|
props: (Fe = (ie = B.supplier) == null ? void 0 : ie.getContext) == null ? void 0 : Fe.call(ie)
|
|
1562
1562
|
}, null, 8, ["render", "props"])
|
|
1563
1563
|
]),
|
|
1564
|
-
e("div", null,
|
|
1565
|
-
e("div", gs,
|
|
1564
|
+
e("div", null, I((Se = E.original.locations) != null && Se.length ? `Enabled for ${(Ie = E.original.locations) == null ? void 0 : Ie.length} outlets` : "Enabled for all outlets"), 1),
|
|
1565
|
+
e("div", gs, I(E.original.purchaseOrder.items.length ? E.original.purchaseOrder.items.map((tt) => tt.name).join(", ") : "No items"), 1),
|
|
1566
1566
|
e("div", hs, [
|
|
1567
1567
|
m(t(ee), {
|
|
1568
1568
|
render: (Oe = ($e = (Me = B.ref) == null ? void 0 : Me.column) == null ? void 0 : $e.columnDef) == null ? void 0 : Oe.cell,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as G, computed as b, openBlock as v, createElementBlock as w, createElementVNode as s, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as Y, ref as R, watch as ee, resolveComponent as I, createBlock as T, withCtx as A, createVNode as f, unref as l, isRef as te, normalizeClass as ie, normalizeStyle as ue, Teleport as de, normalizeProps as me, guardReactiveProps as ce } from "vue";
|
|
2
|
-
import { a as K, e as U, S as pe, h as ve, D as ne, i as L, f as se, Q as fe, m as j, A as ye, j as J, T as be, V as ge, q as oe, u as xe, b as _e, B as he, _ as Ve, C as Ue, E as we, G as Ce } from "./app-
|
|
2
|
+
import { a as K, e as U, S as pe, h as ve, D as ne, i as L, f as se, Q as fe, m as j, A as ye, j as J, T as be, V as ge, q as oe, u as xe, b as _e, B as he, _ as Ve, C as Ue, E as we, G as Ce } from "./app-CwtJJj6R.js";
|
|
3
3
|
import { useDialog as Se, useSnackbar as ae, useProxiedModel as le, useBreakpoints as ke } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Fe, _ as Ee } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
5
|
import { defineStore as $e, storeToRefs as Ie } from "pinia";
|
|
6
6
|
import { useI18n as O } from "@feedmepos/mf-common";
|
|
7
|
-
import { F as De } from "./decimal-
|
|
8
|
-
import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { F as De } from "./decimal-Chx0lsE-.js";
|
|
8
|
+
import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D2xliATx.js";
|
|
9
9
|
const Re = { class: "flex flex-col gap-8" }, Me = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "flex flex-col"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as Fe, openBlock as R, createElementBlock as q, toRaw as ge, reactive as $e, createElementVNode as g, toDisplayString as T, unref as c, createVNode as _, resolveComponent as N, createSlots as Se, withCtx as B, createTextVNode as We, renderSlot as De, createBlock as z, createCommentVNode as Ae, computed as x, isRef as we, normalizeClass as Pe, normalizeStyle as Re } from "vue";
|
|
2
|
-
import { a3 as Ue,
|
|
2
|
+
import { a3 as Ue, av as Ee, aw as Te, h as Le, D as Ve, i as Q, f as O, ax as Ne, ao as Be, m as L, e as E, S as qe, u as ze, B as Ie, _ as je, C as Ge, E as Oe, G as X } from "./app-CwtJJj6R.js";
|
|
3
3
|
import { useCoreStore as Me, useI18n as j } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialogChild as Ke, useDialog as Ce, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as He } from "@feedmepos/ui-library";
|
|
5
5
|
import { c as le, u as se } from "./googlemap-Dm8ERVai.js";
|
package/dist/api/stock.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare const useStockApi: () => {
|
|
|
7
7
|
readAdjustmentById(id: string): Promise<WithRev<FdoInventoryAdjustment>>;
|
|
8
8
|
convertSku(dto: FdtoConvertSku): Promise<any>;
|
|
9
9
|
adjustSku(dto: FdtoAdjustSkuBalance): Promise<any>;
|
|
10
|
+
revertWastageAdjustment(payload: FdtoRevertWastageAdjustment): Promise<any>;
|
|
10
11
|
recalculation: {
|
|
11
12
|
getRecalculateAbility(): Promise<{
|
|
12
13
|
reason?: string | null | undefined;
|