@feedmepos/mf-inventory-portal 1.2.49 → 1.2.50-dev.2
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-w_Dbl-jn.js → App-DAO7XF9h.js} +72 -68
- package/dist/{ApprovalView-CuOM9Ych.js → ApprovalView-BUHefc15.js} +34 -34
- package/dist/{BindingsDialog-DkMSnr51.js → BindingsDialog-Cx9ngX7X.js} +2 -2
- package/dist/{BindingsPicker-DrXdWUTh.js → BindingsPicker-CIZ9FVgv.js} +2 -2
- package/dist/{BindingsTable-Bj0eBYdU.js → BindingsTable-CMyZkvyn.js} +4 -4
- package/dist/{ClosingDraftView-D1oohB8Y.js → ClosingDraftView-D4CMfSvf.js} +19 -18
- package/dist/{ClosingHistoryView-BCYNhLDg.js → ClosingHistoryView-J_2EA-F4.js} +3 -3
- package/dist/{ClosingTemplateView-DIvZkCgT.js → ClosingTemplateView-Bz21bJLn.js} +18 -17
- package/dist/{DeliveryOrderPrintPreview-C83_a-LI.js → DeliveryOrderPrintPreview-D9xRJSBT.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bmas1qkC.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ifkxhq6-.js} +4 -4
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CQ_Er40u.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BcJ1ydJ1.js} +12 -12
- package/dist/FmMultiselectDialog-B5F93-xV.js +621 -0
- package/dist/{FmMultiselectDialog-BtvZkE6p.js → FmMultiselectDialog-Cxj6_Bbq.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BN9OeQF3.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CJsg-6qm.js} +3 -3
- package/dist/{ImportView-CRdvYxW3.js → ImportView-mq9p_YKN.js} +7 -7
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-D6J1wcU6.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CvdNblLJ.js} +1 -1
- package/dist/{IngredientGroupView-DCdnjh-f.js → IngredientGroupView-1YQdweWW.js} +108 -107
- package/dist/{IngredientsView-DhZadYV8.js → IngredientsView-rZZDO37M.js} +126 -125
- package/dist/{IntegrationView-B_D6Sgj-.js → IntegrationView-0KCNTL9w.js} +80 -80
- package/dist/{InventoryBindingForm-CM47I9t9.js → InventoryBindingForm-Cz6tMVlQ.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BYKUWI9e.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-9jHxMOEn.js} +4 -4
- package/dist/{InventoryBindingSummary-BSuJMrFU.js → InventoryBindingSummary-DarjH7Dn.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-9TTwcC8s.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BR6U0SpT.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D2vWMBZF.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C9ffyR0d.js} +2 -2
- package/dist/{PublishView-DxhE5g9_.js → PublishView-Bam4W7ko.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-BzIwRI7z.js → PurchaseOrderPrintPreview-DEKkUMB6.js} +1 -1
- package/dist/ReceiveRequestView-DDfHVcG2.js +3028 -0
- package/dist/{RecipeView-Azx2MoPR.js → RecipeView-CwwKtDRg.js} +83 -82
- package/dist/{StockView-D51RBHWQ.js → StockView-CVN5MKbj.js} +113 -112
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-R0yauCbz.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bm1MxmBR.js} +1 -1
- package/dist/{SupplierView-BeHjJ0xJ.js → SupplierView-BhnmPv7N.js} +28 -27
- package/dist/SurchargeView-nlkL3YIK.js +460 -0
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DG1p3Rim.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DdPVsOZY.js} +2 -2
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js +84 -0
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-cPIomfPb.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-Bp49G_dV.js} +13 -13
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BZR_EozX.js → TransferDetails.vue_vue_type_script_setup_true_lang-BQFBZ0CH.js} +15 -15
- package/dist/{TransferTemplateView-BwdhVKO4.js → TransferTemplateView-7AJGTAAy.js} +16 -16
- package/dist/{UnitView-BT23dBtV.js → UnitView-Dz4bgzmW.js} +20 -19
- package/dist/{WarehouseView-PWigQlHk.js → WarehouseView-DEYOa_Ol.js} +21 -20
- package/dist/{WastageTemplateView-BGO19Pux.js → WastageTemplateView-DdPkFfyQ.js} +165 -164
- package/dist/api/netsuite.d.ts +8 -0
- package/dist/api/surcharge.d.ts +31 -0
- package/dist/app-DiX-EfV6.js +8167 -0
- package/dist/{app-C0a15lwm.js → app-kim0oKgm.js} +4511 -4408
- package/dist/app.d.ts +52 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-C9jSN68K.js → closing-template-MLHUWgwA.js} +1 -1
- package/dist/component-DpCUABT3.js +82 -0
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +8 -0
- package/dist/components/FmMultiselectDialogProps.d.ts +5 -0
- package/dist/{date2-DND2dkpu.js → date2-Ck1fxOS1.js} +1 -1
- package/dist/{dayjs.min-CvewwBuM.js → dayjs.min-CgHxLw1P.js} +1 -1
- package/dist/{decimal-C11049RC.js → decimal-DVjzMCmx.js} +2 -2
- package/dist/{defineDeepModel-BYmk9G2K.js → defineDeepModel-CLo1ie3w.js} +1 -1
- package/dist/{duplicate-template-CJLrmGdo.js → duplicate-template-B_f_fYhs.js} +1 -1
- package/dist/{feature-D2GGGVQh.js → feature-D4HcMaGK.js} +3442 -2812
- package/dist/{format-time-from-id-DuUqVP8F.js → format-time-from-id-CwtHJpC0.js} +1 -1
- package/dist/{format-unit-display-BwBGMuCk.js → format-unit-display-DRIOlVir.js} +11 -11
- package/dist/{import-export.helper-ejk_vT2V.js → import-export.helper-BrcydEPI.js} +5 -5
- package/dist/{index-D65a-5cn.js → index-ChruXaud.js} +1 -1
- package/dist/{index-Cy-YW3O0.js → index-D9dtwK1d.js} +1 -1
- package/dist/{index-C9F5LU0v.js → index-Wd74fJNj.js} +3 -3
- package/dist/{lodash-DNLSknxF.js → lodash-MkfFbMhZ.js} +1 -1
- package/dist/netsuite-D4cXyIr7.js +5402 -0
- package/dist/{purchase-order-template-C7J9I7o4.js → purchase-order-template-BdKUiSPI.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/{rules-DQNuaKK6.js → rules-KSzt3qOJ.js} +3 -3
- package/dist/{stock-bYU0NTHD.js → stock-BHWNLsBc.js} +1 -1
- package/dist/{stock-1aynIWpi.js → stock-DZliLQNR.js} +3 -3
- package/dist/stores/integration/netsuite.d.ts +5 -0
- package/dist/stores/surcharge.d.ts +18 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-B72SAF3j.js → supplier-CiMOpHKx.js} +2 -2
- package/dist/surcharge-CjdNdcm1.js +71 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-DO20RWUv.js → use-ingredient-select-dialog-CK_Ldhwm.js} +2 -2
- package/dist/{use-inventory-binding-dialog-R2VQakMR.js → use-inventory-binding-dialog-jfME3m3c.js} +2 -2
- package/dist/{use-template-enabled-locations-2-C7L_vyIF.js → use-template-enabled-locations-2-Dbk_RoRj.js} +2 -2
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +714 -0
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +5 -0
- package/dist/views/surcharge/SurchargeView.vue.d.ts +2 -0
- package/dist/vue-i18n-DUlOMRWF.js +2365 -0
- package/dist/{xlsx-DZcSBj-s.js → xlsx-CiNXr9Ie.js} +1 -1
- package/dist/{xlsx.util-DMCjqrHn.js → xlsx.util-D81JjCsx.js} +1 -1
- package/package.json +2 -2
- package/dist/FmMultiselectDialog-IU5C9o_F.js +0 -598
- package/dist/ReceiveRequestView-C5wqi0jE.js +0 -2913
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js +0 -162
- package/dist/app-uBuHtW8m.js +0 -8127
- package/dist/netsuite-TqUeqkqw.js +0 -5131
- package/dist/vue-i18n-BLzLoy1U.js +0 -2365
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { defineComponent as me, ref as L, computed as N, resolveComponent as
|
|
1
|
+
import { defineComponent as me, ref as L, computed as N, resolveComponent as T, openBlock as j, createBlock as q, withCtx as U, createElementVNode as e, normalizeClass as he, toDisplayString as v, createVNode as y, createElementBlock as W, Fragment as le, renderList as ce, unref as a, h as _e, watch as Ae, isRef as He, createCommentVNode as se, reactive as ut, mergeModels as Qe, useModel as bt, onMounted as qe, createTextVNode as pe, normalizeStyle as ct, Teleport as xt, normalizeProps as Ne, mergeProps as Ye } from "vue";
|
|
2
2
|
import { F as Xe, u as St, _ as wt } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
|
|
3
|
-
import { u as be, c as Ue, a as Ee, F as Ze, G as Ft, C as ae, v as At, o as $t, A as Vt, s as Q, h as Ve, i as et, e as tt, H as ke } from "./app-
|
|
4
|
-
import { u as Pe } from "./stock-
|
|
5
|
-
import { c as Ct
|
|
6
|
-
import { g as $e } from "./decimal-
|
|
7
|
-
import { d as ve } from "./dayjs.min-
|
|
8
|
-
import { e as
|
|
9
|
-
import { _ as We, S as Le, g as mt, a as
|
|
10
|
-
import { _ as
|
|
3
|
+
import { u as be, c as Ue, a as Ee, F as Ze, G as Ft, C as ae, v as At, o as $t, A as Vt, s as Q, h as Ve, i as et, e as tt, H as ke } from "./app-kim0oKgm.js";
|
|
4
|
+
import { u as Pe } from "./stock-DZliLQNR.js";
|
|
5
|
+
import { c as Ct } from "./component-DpCUABT3.js";
|
|
6
|
+
import { g as $e } from "./decimal-DVjzMCmx.js";
|
|
7
|
+
import { d as ve } from "./dayjs.min-CgHxLw1P.js";
|
|
8
|
+
import { e as jt, u as dt, i as Me, _ as nt } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-C9ffyR0d.js";
|
|
9
|
+
import { _ as We, S as Le, g as mt, a as Dt } from "./SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bm1MxmBR.js";
|
|
10
|
+
import { _ as Mt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
11
11
|
import { useI18n as fe, useCoreStore as ft } from "@feedmepos/mf-common";
|
|
12
|
-
import { useSnackbar as xe, useDialog as Re, useProxiedModel as Oe, useBreakpoints as
|
|
13
|
-
import { defineStore as
|
|
14
|
-
import { g as Ke, a as ye, f as Tt, t as Be, h as Ie, A as
|
|
15
|
-
import { u as Se } from "./stock-
|
|
16
|
-
import { u as
|
|
17
|
-
import { a as vt } from "./FmMultiselectDialog-
|
|
18
|
-
import { _ as
|
|
19
|
-
import { a as
|
|
20
|
-
import { i as
|
|
21
|
-
import { E as
|
|
22
|
-
import { F as ze, u as
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
12
|
+
import { useSnackbar as xe, useDialog as Re, useProxiedModel as Oe, useBreakpoints as Bt } from "@feedmepos/ui-library";
|
|
13
|
+
import { defineStore as It } from "pinia";
|
|
14
|
+
import { g as Ke, a as ye, f as Tt, t as Be, h as Ie, A as Ht, M as Ut, d as ge, i as Et, j as ot, k as pt, l as Je, R as Pt, e as je, m as Rt } from "./rules-KSzt3qOJ.js";
|
|
15
|
+
import { u as Se } from "./stock-BHWNLsBc.js";
|
|
16
|
+
import { u as Ot } from "./use-inventory-binding-dialog-jfME3m3c.js";
|
|
17
|
+
import { a as vt } from "./FmMultiselectDialog-B5F93-xV.js";
|
|
18
|
+
import { _ as Nt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BR6U0SpT.js";
|
|
19
|
+
import { a as Yt, b as Lt, f as yt, t as st, c as at, p as zt, n as Gt, d as Wt } from "./date2-Ck1fxOS1.js";
|
|
20
|
+
import { i as Kt, _ as qt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BcJ1ydJ1.js";
|
|
21
|
+
import { E as Xt } from "./empty-placeholder-wf6-BWE8.js";
|
|
22
|
+
import { F as ze, u as Jt } from "./feature-D4HcMaGK.js";
|
|
23
|
+
import { _ as Qt, F as lt } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
|
|
24
|
+
import { u as Zt } from "./netsuite-D4cXyIr7.js";
|
|
25
|
+
import { P as en, J as tn } from "./app-DiX-EfV6.js";
|
|
25
26
|
var De = /* @__PURE__ */ ((k) => (k.History = "History", k.Convert = "Convert", k.Adjust = "Adjust", k))(De || {});
|
|
26
27
|
const nn = [
|
|
27
28
|
{
|
|
@@ -55,7 +56,7 @@ async function sn(k) {
|
|
|
55
56
|
/ /g,
|
|
56
57
|
"_"
|
|
57
58
|
)}_${ve().format("DD_MM_YYYY_HHmm")}.xlsx`;
|
|
58
|
-
await
|
|
59
|
+
await jt(
|
|
59
60
|
[
|
|
60
61
|
{
|
|
61
62
|
name: "stock",
|
|
@@ -72,7 +73,7 @@ async function sn(k) {
|
|
|
72
73
|
{
|
|
73
74
|
name: "Balance",
|
|
74
75
|
selector: (s) => {
|
|
75
|
-
const D =
|
|
76
|
+
const D = Te(s, s.unit);
|
|
76
77
|
return D.type === "unit" ? $e(s.balance, s.unit, null, !1) : $e(s.balance, s.unit, D.measurement, !1);
|
|
77
78
|
}
|
|
78
79
|
},
|
|
@@ -80,7 +81,7 @@ async function sn(k) {
|
|
|
80
81
|
name: "Unit",
|
|
81
82
|
selector: (s) => {
|
|
82
83
|
var F;
|
|
83
|
-
const D =
|
|
84
|
+
const D = Te(s, s.unit);
|
|
84
85
|
return D.type === "unit" ? s.unit.abbrev : ((F = s.unit.measurements.find((c) => c.id === D.measurement)) == null ? void 0 : F.abbrev) || "";
|
|
85
86
|
}
|
|
86
87
|
}
|
|
@@ -90,7 +91,7 @@ async function sn(k) {
|
|
|
90
91
|
d
|
|
91
92
|
);
|
|
92
93
|
}
|
|
93
|
-
function
|
|
94
|
+
function Te(k, m) {
|
|
94
95
|
const d = localStorage.getItem(`uom:${k._id}`);
|
|
95
96
|
return d ? d === m._id ? {
|
|
96
97
|
type: "unit"
|
|
@@ -120,9 +121,9 @@ const an = { class: "fm-typo-en-body-md-400 flex-grow" }, _t = /* @__PURE__ */ m
|
|
|
120
121
|
}
|
|
121
122
|
function d(B) {
|
|
122
123
|
const S = m(s.sku);
|
|
123
|
-
B ? localStorage.setItem(S, B) : localStorage.setItem(S, s.unit._id), D.value =
|
|
124
|
+
B ? localStorage.setItem(S, B) : localStorage.setItem(S, s.unit._id), D.value = Te(s.sku, s.unit);
|
|
124
125
|
}
|
|
125
|
-
const s = k, D = L(
|
|
126
|
+
const s = k, D = L(Te(s.sku, s.unit)), F = N(() => {
|
|
126
127
|
const { measurements: B } = s.unit;
|
|
127
128
|
return [
|
|
128
129
|
{
|
|
@@ -145,7 +146,7 @@ const an = { class: "fm-typo-en-body-md-400 flex-grow" }, _t = /* @__PURE__ */ m
|
|
|
145
146
|
}
|
|
146
147
|
), h = L(!1);
|
|
147
148
|
return (B, S) => {
|
|
148
|
-
const i =
|
|
149
|
+
const i = T("FmIcon"), f = T("FmMenuItem"), I = T("FmMenu");
|
|
149
150
|
return j(), q(I, {
|
|
150
151
|
"stop-click-propagation": "",
|
|
151
152
|
onMenuChanged: S[0] || (S[0] = (b) => h.value = b)
|
|
@@ -181,14 +182,14 @@ const an = { class: "fm-typo-en-body-md-400 flex-grow" }, _t = /* @__PURE__ */ m
|
|
|
181
182
|
__name: "StockHeaderPreview",
|
|
182
183
|
setup(k) {
|
|
183
184
|
const { t: m } = fe();
|
|
184
|
-
return (d, s) => (j(), q(
|
|
185
|
+
return (d, s) => (j(), q(Mt, null, {
|
|
185
186
|
default: U(() => [
|
|
186
187
|
e("div", ln, v(a(m)("inventory.stock.prediction.daysRemaining")), 1)
|
|
187
188
|
]),
|
|
188
189
|
_: 1
|
|
189
190
|
}));
|
|
190
191
|
}
|
|
191
|
-
}), kt =
|
|
192
|
+
}), kt = It("stockActions", () => {
|
|
192
193
|
const k = L(!1), m = be(), d = Pe(), s = dt(), D = xe(), F = Re(), { t: c } = fe();
|
|
193
194
|
async function l() {
|
|
194
195
|
if (m._currentLocation) {
|
|
@@ -217,11 +218,11 @@ const an = { class: "fm-typo-en-body-md-400 flex-grow" }, _t = /* @__PURE__ */ m
|
|
|
217
218
|
return;
|
|
218
219
|
}
|
|
219
220
|
const o = {
|
|
220
|
-
maxCount: ((C = d.productBalance.find(({ id:
|
|
221
|
+
maxCount: ((C = d.productBalance.find(({ id: H }) => H === w._id)) == null ? void 0 : C.count) || 0,
|
|
221
222
|
sku: w,
|
|
222
223
|
show: !0,
|
|
223
|
-
"onUpdate:show"(
|
|
224
|
-
h.value.show =
|
|
224
|
+
"onUpdate:show"(H) {
|
|
225
|
+
h.value.show = H;
|
|
225
226
|
},
|
|
226
227
|
onSubmitted() {
|
|
227
228
|
l();
|
|
@@ -414,7 +415,7 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
|
|
|
414
415
|
},
|
|
415
416
|
emits: ["update:show", "submitted"],
|
|
416
417
|
setup(k, { expose: m, emit: d }) {
|
|
417
|
-
const s = k, D = d, F =
|
|
418
|
+
const s = k, D = d, F = Ot(), c = Ee(), l = Se(), h = xe(), { t: B } = fe(), S = L(0), i = L(null), f = N(() => c.skus), I = N(
|
|
418
419
|
() => {
|
|
419
420
|
var p, $;
|
|
420
421
|
return ((($ = (p = s.sku) == null ? void 0 : p.convert) == null ? void 0 : $.inventoryBindings) ?? []).filter(
|
|
@@ -446,7 +447,7 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
|
|
|
446
447
|
const $ = (E = s.sku.convert) != null && E.measurement ? s.sku.unit.measurements.find((_) => {
|
|
447
448
|
var r;
|
|
448
449
|
return _.id === ((r = s.sku.convert) == null ? void 0 : r.measurement);
|
|
449
|
-
}) ?? null : null, G = Ke(s.sku.unit, $), P =
|
|
450
|
+
}) ?? null : null, G = Ke(s.sku.unit, $), P = Et(+p);
|
|
450
451
|
return rt(P).isInteger().max(G).error ? "Precision cannot be more than " + G : !0;
|
|
451
452
|
}
|
|
452
453
|
const g = N(
|
|
@@ -498,7 +499,7 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
|
|
|
498
499
|
($ = (p = C.value) == null ? void 0 : p.resetInputs) == null || $.call(p);
|
|
499
500
|
}
|
|
500
501
|
});
|
|
501
|
-
const
|
|
502
|
+
const H = Oe(s, "show");
|
|
502
503
|
async function O(p, $, G) {
|
|
503
504
|
w.value = !0;
|
|
504
505
|
try {
|
|
@@ -578,11 +579,11 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
|
|
|
578
579
|
p || (i.value = null, S.value = 0);
|
|
579
580
|
}
|
|
580
581
|
), (p, $) => {
|
|
581
|
-
const G =
|
|
582
|
+
const G = T("FmTextField"), P = T("FmForm"), Y = T("FmCard"), E = T("FmSwitch"), _ = T("FmFormGroup"), r = T("FmSelect"), M = T("FmButton"), V = T("FmSideSheet");
|
|
582
583
|
return j(), q(V, {
|
|
583
584
|
"dismiss-away": "",
|
|
584
|
-
modelValue: a(
|
|
585
|
-
"onUpdate:modelValue": $[3] || ($[3] = (u) =>
|
|
585
|
+
modelValue: a(H),
|
|
586
|
+
"onUpdate:modelValue": $[3] || ($[3] = (u) => He(H) ? H.value = u : null),
|
|
586
587
|
"max-width": 500
|
|
587
588
|
}, {
|
|
588
589
|
"side-sheet-header": U(() => [
|
|
@@ -644,7 +645,7 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
|
|
|
644
645
|
b.value ? (j(), W(le, { key: 0 }, [
|
|
645
646
|
y(_, {
|
|
646
647
|
modelValue: i.value,
|
|
647
|
-
rules: [a(
|
|
648
|
+
rules: [a(Ht)(1, "Must have at least one ingredient binding")]
|
|
648
649
|
}, null, 8, ["modelValue", "rules"]),
|
|
649
650
|
e("div", hn, [
|
|
650
651
|
e("div", gn, v(a(B)("inventory.stock.convert.ingredients")), 1),
|
|
@@ -653,7 +654,7 @@ const dn = { class: "flex items-center" }, mn = { class: "fm-typo-en-title-md-80
|
|
|
653
654
|
disabled: w.value,
|
|
654
655
|
modelValue: +a(ye)(u.amount ?? { amount: 1, precision: 0 }),
|
|
655
656
|
rules: [
|
|
656
|
-
a(
|
|
657
|
+
a(Ut)(
|
|
657
658
|
f.value.find((A) => A._id === u.id).unit,
|
|
658
659
|
u.measurement
|
|
659
660
|
),
|
|
@@ -784,7 +785,7 @@ const Ge = {
|
|
|
784
785
|
...d.modelValue
|
|
785
786
|
};
|
|
786
787
|
o.type = t;
|
|
787
|
-
const g =
|
|
788
|
+
const g = ot(d.modelValue.amount);
|
|
788
789
|
o.amount = Ge[o.type].toAdjustmentAmount(
|
|
789
790
|
+ye(g),
|
|
790
791
|
g.precision
|
|
@@ -792,7 +793,7 @@ const Ge = {
|
|
|
792
793
|
}
|
|
793
794
|
}), B = N({
|
|
794
795
|
get() {
|
|
795
|
-
const t =
|
|
796
|
+
const t = ot(d.modelValue.amount);
|
|
796
797
|
return +ye(t);
|
|
797
798
|
},
|
|
798
799
|
set(t) {
|
|
@@ -839,8 +840,8 @@ const Ge = {
|
|
|
839
840
|
() => $e(b.value, d.modelValue.doc.unit)
|
|
840
841
|
), n = N(() => I.value.amount < 0);
|
|
841
842
|
return (t, o) => {
|
|
842
|
-
const g =
|
|
843
|
-
return j(), q(
|
|
843
|
+
const g = T("FmButton"), x = T("FmSelect"), C = T("FmTextarea"), H = T("FmCard");
|
|
844
|
+
return j(), q(H, {
|
|
844
845
|
variant: "outlined",
|
|
845
846
|
class: "grid grid-cols-2 gap-8 p-16"
|
|
846
847
|
}, {
|
|
@@ -863,10 +864,10 @@ const Ge = {
|
|
|
863
864
|
items: c.value,
|
|
864
865
|
modelValue: h.value,
|
|
865
866
|
"onUpdate:modelValue": o[1] || (o[1] = (O) => h.value = O),
|
|
866
|
-
rules: [a(
|
|
867
|
+
rules: [a(Pt)()],
|
|
867
868
|
"label-mark": "required"
|
|
868
869
|
}, null, 8, ["disabled", "items", "modelValue", "rules"]),
|
|
869
|
-
y(
|
|
870
|
+
y(Nt, {
|
|
870
871
|
disabled: t.disabled,
|
|
871
872
|
label: "Amount",
|
|
872
873
|
step: +a(ye)({
|
|
@@ -903,7 +904,7 @@ const Ge = {
|
|
|
903
904
|
});
|
|
904
905
|
};
|
|
905
906
|
}
|
|
906
|
-
}), Dn = { class: "flex items-center" }, Mn = { class: "fm-typo-en-title-md-800" }, Bn = { class: "flex items-center" }, In = { class: "fm-typo-en-title-sm-800 flex-1" },
|
|
907
|
+
}), Dn = { class: "flex items-center" }, Mn = { class: "fm-typo-en-title-md-800" }, Bn = { class: "flex items-center" }, In = { class: "fm-typo-en-title-sm-800 flex-1" }, Tn = { class: "flex gap-8" }, Hn = /* @__PURE__ */ me({
|
|
907
908
|
__name: "AdjustSkuDialog",
|
|
908
909
|
props: {
|
|
909
910
|
stock: {},
|
|
@@ -960,9 +961,9 @@ const Ge = {
|
|
|
960
961
|
try {
|
|
961
962
|
await l.adjustSku({
|
|
962
963
|
remark: o.remark,
|
|
963
|
-
adjustments: o.adjustments.map(({ doc: g, remark: x, type: C, amount:
|
|
964
|
+
adjustments: o.adjustments.map(({ doc: g, remark: x, type: C, amount: H, measurement: O }) => ({
|
|
964
965
|
id: g._id,
|
|
965
|
-
amount:
|
|
966
|
+
amount: H,
|
|
966
967
|
measurement: O,
|
|
967
968
|
remark: x,
|
|
968
969
|
doc: g,
|
|
@@ -1006,10 +1007,10 @@ const Ge = {
|
|
|
1006
1007
|
}
|
|
1007
1008
|
}).onPrimary((x) => {
|
|
1008
1009
|
b.adjustments = x.map(
|
|
1009
|
-
(C) => b.adjustments.find((
|
|
1010
|
+
(C) => b.adjustments.find((H) => H.doc._id === C) ?? {
|
|
1010
1011
|
id: `sku_${(/* @__PURE__ */ new Date()).toISOString()}_${Math.random().toString(16).slice(2, 8)}`,
|
|
1011
1012
|
type: ae.enum.PURCHASE,
|
|
1012
|
-
doc: F.skus.find((
|
|
1013
|
+
doc: F.skus.find((H) => H._id === C),
|
|
1013
1014
|
measurement: null,
|
|
1014
1015
|
remark: "",
|
|
1015
1016
|
amount: ge(1)
|
|
@@ -1021,10 +1022,10 @@ const Ge = {
|
|
|
1021
1022
|
b.adjustments.splice(o, 1);
|
|
1022
1023
|
}
|
|
1023
1024
|
return (o, g) => {
|
|
1024
|
-
const x =
|
|
1025
|
+
const x = T("FmTextarea"), C = T("FmButton"), H = T("FmForm"), O = T("FmSideSheet");
|
|
1025
1026
|
return j(), q(O, {
|
|
1026
1027
|
modelValue: a(I),
|
|
1027
|
-
"onUpdate:modelValue": g[2] || (g[2] = (X) =>
|
|
1028
|
+
"onUpdate:modelValue": g[2] || (g[2] = (X) => He(I) ? I.value = X : null),
|
|
1028
1029
|
"dismiss-away": "",
|
|
1029
1030
|
"max-width": 500
|
|
1030
1031
|
}, {
|
|
@@ -1034,7 +1035,7 @@ const Ge = {
|
|
|
1034
1035
|
])
|
|
1035
1036
|
]),
|
|
1036
1037
|
default: U(() => [
|
|
1037
|
-
y(
|
|
1038
|
+
y(H, {
|
|
1038
1039
|
class: "w-full flex flex-col gap-12",
|
|
1039
1040
|
ref_key: "formRef",
|
|
1040
1041
|
ref: f,
|
|
@@ -1066,7 +1067,7 @@ const Ge = {
|
|
|
1066
1067
|
}, 512)
|
|
1067
1068
|
]),
|
|
1068
1069
|
"side-sheet-footer": U(() => [
|
|
1069
|
-
e("div",
|
|
1070
|
+
e("div", Tn, [
|
|
1070
1071
|
y(C, {
|
|
1071
1072
|
label: a(S)("inventory.stock.adjust.adjustButton"),
|
|
1072
1073
|
loading: B.value,
|
|
@@ -1115,11 +1116,11 @@ const Ge = {
|
|
|
1115
1116
|
}), x;
|
|
1116
1117
|
});
|
|
1117
1118
|
function t() {
|
|
1118
|
-
const x = F.skus.map((
|
|
1119
|
-
label:
|
|
1120
|
-
sublabel:
|
|
1121
|
-
value:
|
|
1122
|
-
})), C = i.adjustments.map((
|
|
1119
|
+
const x = F.skus.map((H) => ({
|
|
1120
|
+
label: H.name,
|
|
1121
|
+
sublabel: H.code,
|
|
1122
|
+
value: H._id
|
|
1123
|
+
})), C = i.adjustments.map((H) => H.doc._id);
|
|
1123
1124
|
l.open({
|
|
1124
1125
|
title: D("inventory.stock.adjust.selectIngredients"),
|
|
1125
1126
|
contentComponent: vt,
|
|
@@ -1140,8 +1141,8 @@ const Ge = {
|
|
|
1140
1141
|
close: !0,
|
|
1141
1142
|
variant: "tertiary"
|
|
1142
1143
|
}
|
|
1143
|
-
}).onPrimary((
|
|
1144
|
-
i.adjustments =
|
|
1144
|
+
}).onPrimary((H) => {
|
|
1145
|
+
i.adjustments = H.map(
|
|
1145
1146
|
(O) => i.adjustments.find((X) => X.doc._id === O) ?? {
|
|
1146
1147
|
id: "",
|
|
1147
1148
|
type: ae.enum.PURCHASE,
|
|
@@ -1168,12 +1169,12 @@ const Ge = {
|
|
|
1168
1169
|
S.value = !0;
|
|
1169
1170
|
try {
|
|
1170
1171
|
const x = i.adjustments.map(
|
|
1171
|
-
({ doc:
|
|
1172
|
-
id:
|
|
1172
|
+
({ doc: H, remark: O, type: X, amount: z, measurement: Z }) => ({
|
|
1173
|
+
id: H._id,
|
|
1173
1174
|
amount: z,
|
|
1174
1175
|
measurement: Z,
|
|
1175
1176
|
remark: O,
|
|
1176
|
-
doc:
|
|
1177
|
+
doc: H,
|
|
1177
1178
|
type: X
|
|
1178
1179
|
})
|
|
1179
1180
|
), C = {
|
|
@@ -1193,10 +1194,10 @@ const Ge = {
|
|
|
1193
1194
|
}
|
|
1194
1195
|
}
|
|
1195
1196
|
return (x, C) => {
|
|
1196
|
-
const
|
|
1197
|
+
const H = T("FmTextarea"), O = T("FmDatePicker"), X = T("FmTimePicker"), z = T("FmButton"), Z = T("FmSideSheet");
|
|
1197
1198
|
return j(), q(Z, {
|
|
1198
1199
|
modelValue: a(B),
|
|
1199
|
-
"onUpdate:modelValue": C[4] || (C[4] = (K) =>
|
|
1200
|
+
"onUpdate:modelValue": C[4] || (C[4] = (K) => He(B) ? B.value = K : null),
|
|
1200
1201
|
"dismiss-away": "",
|
|
1201
1202
|
"max-width": 560,
|
|
1202
1203
|
onAfterEnter: w
|
|
@@ -1208,7 +1209,7 @@ const Ge = {
|
|
|
1208
1209
|
]),
|
|
1209
1210
|
default: U(() => [
|
|
1210
1211
|
e("div", Pn, [
|
|
1211
|
-
y(
|
|
1212
|
+
y(H, {
|
|
1212
1213
|
label: a(D)("inventory.stock.adjust.remark"),
|
|
1213
1214
|
modelValue: i.remark,
|
|
1214
1215
|
"onUpdate:modelValue": C[0] || (C[0] = (K) => i.remark = K),
|
|
@@ -1320,8 +1321,8 @@ const Ge = {
|
|
|
1320
1321
|
var x;
|
|
1321
1322
|
Object.keys(((x = F.value) == null ? void 0 : x[g]) || {}).forEach((C) => {
|
|
1322
1323
|
var O, X;
|
|
1323
|
-
const
|
|
1324
|
-
|
|
1324
|
+
const H = (X = (O = F.value) == null ? void 0 : O[g]) == null ? void 0 : X[Number(C)];
|
|
1325
|
+
H && I(H.amount) > 0 && (n[g] || (n[g] = []), n[g].push(H));
|
|
1325
1326
|
});
|
|
1326
1327
|
}), await D.revertWastageAdjustment({
|
|
1327
1328
|
targetWastageAdjustmentId: d.adjustmentId,
|
|
@@ -1331,8 +1332,8 @@ const Ge = {
|
|
|
1331
1332
|
function f(n, t, o) {
|
|
1332
1333
|
return N({
|
|
1333
1334
|
get: () => {
|
|
1334
|
-
var x, C,
|
|
1335
|
-
const g = (
|
|
1335
|
+
var x, C, H;
|
|
1336
|
+
const g = (H = (C = (x = F.value) == null ? void 0 : x[n]) == null ? void 0 : C[t]) == null ? void 0 : H.amount;
|
|
1336
1337
|
return g ? I(g, !0) : 0;
|
|
1337
1338
|
},
|
|
1338
1339
|
set: (g) => {
|
|
@@ -1357,7 +1358,7 @@ const Ge = {
|
|
|
1357
1358
|
return t === 0 ? "N/A" : (n + t).toString();
|
|
1358
1359
|
}
|
|
1359
1360
|
return (n, t) => {
|
|
1360
|
-
const o =
|
|
1361
|
+
const o = T("FmIcon"), g = T("FmStepperField"), x = T("FmCard"), C = T("FmForm"), H = T("FmSpacer"), O = T("FmButton"), X = T("FmDialog");
|
|
1361
1362
|
return j(), q(X, {
|
|
1362
1363
|
modelValue: h.value,
|
|
1363
1364
|
"onUpdate:modelValue": t[4] || (t[4] = (z) => h.value = z),
|
|
@@ -1386,7 +1387,7 @@ const Ge = {
|
|
|
1386
1387
|
e("div", ao, [
|
|
1387
1388
|
t[13] || (t[13] = e("span", { class: "text-fm-color-system-warning-400 fm-typo-en-body-sm-400" }, "1. New adjustment EXTRA will be created for each reversal", -1)),
|
|
1388
1389
|
e("div", lo, [
|
|
1389
|
-
y(
|
|
1390
|
+
y(H),
|
|
1390
1391
|
y(O, {
|
|
1391
1392
|
class: "sm:w-full xs:w-full",
|
|
1392
1393
|
label: "Close",
|
|
@@ -1421,7 +1422,7 @@ const Ge = {
|
|
|
1421
1422
|
e("p", Qn, [
|
|
1422
1423
|
t[6] || (t[6] = e("b", null, "Date:", -1)),
|
|
1423
1424
|
t[7] || (t[7] = e("br", null, null, -1)),
|
|
1424
|
-
pe(" " + v(a(
|
|
1425
|
+
pe(" " + v(a(Yt)(a(Vt)(B.value._id))), 1)
|
|
1425
1426
|
]),
|
|
1426
1427
|
e("div", Zn, [
|
|
1427
1428
|
(j(!0), W(le, null, ce(B.value.skus, (z, Z) => (j(), W(le, { key: Z }, [
|
|
@@ -1539,7 +1540,7 @@ const Ge = {
|
|
|
1539
1540
|
{}
|
|
1540
1541
|
);
|
|
1541
1542
|
}), { t: h } = fe(), B = N(() => m.record.adjustmentsByTime.map(({ date: S, adjustments: i }) => ({
|
|
1542
|
-
time:
|
|
1543
|
+
time: Lt(new Date(S)),
|
|
1543
1544
|
adjustments: i.flatMap(
|
|
1544
1545
|
(f) => {
|
|
1545
1546
|
var I, b;
|
|
@@ -1562,7 +1563,7 @@ const Ge = {
|
|
|
1562
1563
|
var x;
|
|
1563
1564
|
let g = o.cost;
|
|
1564
1565
|
if (n) {
|
|
1565
|
-
const C = Q.fromDinero(n),
|
|
1566
|
+
const C = Q.fromDinero(n), H = o.amount, O = o.measurement ? Q.multiply([H, o.measurement.conversion]) : H;
|
|
1566
1567
|
g = {
|
|
1567
1568
|
...Q.multiply([C, O]),
|
|
1568
1569
|
currency: n.currency
|
|
@@ -1586,7 +1587,7 @@ const Ge = {
|
|
|
1586
1587
|
})
|
|
1587
1588
|
})));
|
|
1588
1589
|
return (S, i) => {
|
|
1589
|
-
const f =
|
|
1590
|
+
const f = T("FmIcon"), I = T("FmTooltip"), b = T("FmCard");
|
|
1590
1591
|
return j(), q(b, { variant: "outlined" }, {
|
|
1591
1592
|
default: U(() => [
|
|
1592
1593
|
e("div", io, [
|
|
@@ -1757,7 +1758,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
1757
1758
|
}, Do = { class: "pb-16" }, Mo = { class: "fm-typo-cn-body-lg-600" }, Bo = {
|
|
1758
1759
|
class: "grid gap-12 fm-typo-en-body-md-400",
|
|
1759
1760
|
style: { "grid-template-columns": "auto auto auto", "grid-auto-rows": "1fr" }
|
|
1760
|
-
}, Io = { class: "flex flex-col gap-1" },
|
|
1761
|
+
}, Io = { class: "flex flex-col gap-1" }, To = { class: "text-fm-color-typo-secondary" }, Ho = { class: "font-bold" }, Uo = { class: "flex flex-col gap-1" }, Eo = { class: "text-fm-color-typo-secondary flex" }, Po = { class: "font-bold" }, Ro = { class: "flex flex-col gap-1" }, Oo = { class: "text-fm-color-typo-secondary" }, No = { class: "font-bold" }, Yo = { class: "flex flex-col gap-1" }, Lo = { class: "text-fm-color-typo-secondary" }, zo = { class: "font-bold" }, Go = { class: "flex flex-col gap-1" }, Wo = { class: "text-fm-color-typo-secondary" }, Ko = { class: "font-bold" }, qo = { class: "flex flex-col gap-1" }, Xo = { class: "text-fm-color-typo-secondary" }, Jo = { class: "font-bold" }, Qo = { class: "flex flex-col gap-1" }, Zo = { class: "text-fm-color-typo-secondary" }, es = { class: "font-bold" }, ts = { class: "flex flex-col gap-1" }, ns = { class: "text-fm-color-typo-secondary" }, os = { class: "font-bold" }, ss = { class: "flex flex-col gap-1" }, as = { class: "text-fm-color-typo-secondary" }, ls = { class: "font-bold" }, rs = {
|
|
1761
1762
|
key: 0,
|
|
1762
1763
|
class: "flex flex-col gap-8"
|
|
1763
1764
|
}, is = { class: "flex" }, us = { class: "flex-1 flex flex-col gap-1" }, cs = { class: "flex gap-1 items-center text-fm-color-typo-secondary" }, ds = { class: "font-bold" }, ms = { class: "flex-1 flex flex-col gap-1" }, fs = { class: "flex gap-1 items-center text-fm-color-typo-secondary" }, ps = { class: "flex flex-col gap-1" }, vs = { class: "font-bold" }, ys = {
|
|
@@ -1771,9 +1772,9 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
1771
1772
|
},
|
|
1772
1773
|
emits: ["update:show"],
|
|
1773
1774
|
setup(k) {
|
|
1774
|
-
const m = ft(), d = Pe(), s = Se(), D = Xn(), F = be(), c =
|
|
1775
|
+
const m = ft(), d = Pe(), s = Se(), D = Xn(), F = be(), c = Jt(), { t: l } = fe(), h = k, B = L(!1), S = xe(), i = L("adjustment"), f = L([
|
|
1775
1776
|
{ label: "Adjustment (Default)", value: "adjustment" }
|
|
1776
|
-
]), I = L([]), b = L(
|
|
1777
|
+
]), I = L([]), b = L(Kt(0));
|
|
1777
1778
|
async function w() {
|
|
1778
1779
|
B.value = !0;
|
|
1779
1780
|
try {
|
|
@@ -1795,7 +1796,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
1795
1796
|
});
|
|
1796
1797
|
const n = L([]), t = L([]), o = L(new Array());
|
|
1797
1798
|
function g(_, r) {
|
|
1798
|
-
return r === "day" ?
|
|
1799
|
+
return r === "day" ? Wt(_) : yt(_);
|
|
1799
1800
|
}
|
|
1800
1801
|
function x(_, r) {
|
|
1801
1802
|
const M = _.reduce(
|
|
@@ -1816,12 +1817,12 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
1816
1817
|
async function C() {
|
|
1817
1818
|
let _ = await s.readStockAdjustment(
|
|
1818
1819
|
h.sku._id,
|
|
1819
|
-
|
|
1820
|
-
|
|
1820
|
+
st(new Date(b.value.startDate)).toISOString(),
|
|
1821
|
+
at(new Date(b.value.endDate)).toISOString()
|
|
1821
1822
|
);
|
|
1822
1823
|
n.value = _;
|
|
1823
1824
|
const r = _.filter(({ ref: M }) => M == null ? void 0 : M.startsWith("bill_")).map(({ ref: M }) => M);
|
|
1824
|
-
await
|
|
1825
|
+
await H(r), t.value = x(_, "day").map(({ date: M, adjustments: V }) => ({
|
|
1825
1826
|
date: M,
|
|
1826
1827
|
adjustments: V,
|
|
1827
1828
|
adjustmentsByTime: x(V, "minute")
|
|
@@ -1829,8 +1830,8 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
1829
1830
|
try {
|
|
1830
1831
|
const M = await s.readUnitCostHistory(
|
|
1831
1832
|
h.sku._id,
|
|
1832
|
-
|
|
1833
|
-
|
|
1833
|
+
st(new Date(b.value.startDate)).toISOString(),
|
|
1834
|
+
at(new Date(b.value.endDate)).toISOString()
|
|
1834
1835
|
);
|
|
1835
1836
|
I.value = M;
|
|
1836
1837
|
const V = /* @__PURE__ */ new Set();
|
|
@@ -1849,7 +1850,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
1849
1850
|
console.error("Failed to fetch unit cost history:", M);
|
|
1850
1851
|
}
|
|
1851
1852
|
}
|
|
1852
|
-
async function
|
|
1853
|
+
async function H(_) {
|
|
1853
1854
|
_.length && (o.value = await D.findBillsById(_).catch((r) => {
|
|
1854
1855
|
var u;
|
|
1855
1856
|
console.error("Error on using latest bill API, retrying using legacy api", r);
|
|
@@ -1896,7 +1897,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
1896
1897
|
const A = u.cost;
|
|
1897
1898
|
if (!A) return V;
|
|
1898
1899
|
const R = {
|
|
1899
|
-
...
|
|
1900
|
+
...Rt(V, Math.max(V.precision, A.precision)),
|
|
1900
1901
|
currency: A.currency
|
|
1901
1902
|
};
|
|
1902
1903
|
return {
|
|
@@ -1913,7 +1914,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
1913
1914
|
return je(r, !1, r.precision);
|
|
1914
1915
|
});
|
|
1915
1916
|
function ue() {
|
|
1916
|
-
const { startDate: _, endDate: r } =
|
|
1917
|
+
const { startDate: _, endDate: r } = zt(b.value);
|
|
1917
1918
|
_ !== null && r !== null && (b.value = {
|
|
1918
1919
|
startDate: _,
|
|
1919
1920
|
endDate: r
|
|
@@ -1982,7 +1983,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
1982
1983
|
} : "No data";
|
|
1983
1984
|
}), P = N(() => h.sku.valuation === tt.Enum.FIFO ? G.value : $.value);
|
|
1984
1985
|
function Y() {
|
|
1985
|
-
const { startDate: _, endDate: r } =
|
|
1986
|
+
const { startDate: _, endDate: r } = Gt(b.value);
|
|
1986
1987
|
_ !== null && r !== null && (b.value = {
|
|
1987
1988
|
startDate: _,
|
|
1988
1989
|
endDate: r
|
|
@@ -1990,11 +1991,11 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
1990
1991
|
}
|
|
1991
1992
|
const E = Oe(h, "show");
|
|
1992
1993
|
return (_, r) => {
|
|
1993
|
-
const M =
|
|
1994
|
+
const M = T("FmButton"), V = T("FmField"), u = T("FmDateRangePicker"), A = T("FmSpacer"), R = T("FmCircularProgress"), ne = T("FmIcon"), re = T("FmTooltip"), J = T("FmMenuDivider"), te = T("FmChip"), oe = T("FmSelect"), ie = T("FmCardSection"), we = T("FmCard"), gt = T("FmSideSheet");
|
|
1994
1995
|
return j(), q(gt, {
|
|
1995
1996
|
"dismiss-away": "",
|
|
1996
1997
|
modelValue: a(E),
|
|
1997
|
-
"onUpdate:modelValue": r[5] || (r[5] = (Fe) =>
|
|
1998
|
+
"onUpdate:modelValue": r[5] || (r[5] = (Fe) => He(E) ? E.value = Fe : null),
|
|
1998
1999
|
"close-button": !1,
|
|
1999
2000
|
"max-width": 560
|
|
2000
2001
|
}, {
|
|
@@ -2063,8 +2064,8 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
2063
2064
|
]),
|
|
2064
2065
|
e("div", Bo, [
|
|
2065
2066
|
e("div", Io, [
|
|
2066
|
-
e("div",
|
|
2067
|
-
e("div",
|
|
2067
|
+
e("div", To, v(a(l)("inventory.stock.history.summary.totalPurchase")), 1),
|
|
2068
|
+
e("div", Ho, v(O.value.PURCHASE), 1)
|
|
2068
2069
|
]),
|
|
2069
2070
|
e("div", Uo, [
|
|
2070
2071
|
e("div", Eo, [
|
|
@@ -2120,7 +2121,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
2120
2121
|
y(J, { class: "w-full" }),
|
|
2121
2122
|
e("div", is, [
|
|
2122
2123
|
e("div", us, [
|
|
2123
|
-
y(
|
|
2124
|
+
y(nt, { "z-index": 50 }, {
|
|
2124
2125
|
default: U(() => [
|
|
2125
2126
|
e("div", cs, [
|
|
2126
2127
|
pe(v(a(l)("inventory.stock.history.estimatedValue")) + " ", 1),
|
|
@@ -2171,7 +2172,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
2171
2172
|
}, null, 8, ["modelValue", "items"])
|
|
2172
2173
|
]),
|
|
2173
2174
|
e("div", ms, [
|
|
2174
|
-
y(
|
|
2175
|
+
y(nt, { "z-index": 50 }, {
|
|
2175
2176
|
default: U(() => [
|
|
2176
2177
|
e("div", fs, [
|
|
2177
2178
|
pe(v(a(l)("inventory.stock.history.costSold")) + " ", 1),
|
|
@@ -2223,7 +2224,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
2223
2224
|
y(A),
|
|
2224
2225
|
e("div", null, [
|
|
2225
2226
|
e("img", {
|
|
2226
|
-
src: a(
|
|
2227
|
+
src: a(Xt),
|
|
2227
2228
|
alt: "List is empty"
|
|
2228
2229
|
}, null, 8, _s)
|
|
2229
2230
|
]),
|
|
@@ -2242,7 +2243,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
2242
2243
|
}), bs = {
|
|
2243
2244
|
key: 0,
|
|
2244
2245
|
class: "flex items-center gap-1"
|
|
2245
|
-
}, xs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ss = { class: "flex flex-col gap-8" }, ws = { class: "flex flex-col" }, Fs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, As = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" },
|
|
2246
|
+
}, xs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ss = { class: "flex flex-col gap-8" }, ws = { class: "flex flex-col" }, Fs = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, As = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Qs = /* @__PURE__ */ me({
|
|
2246
2247
|
__name: "StockView",
|
|
2247
2248
|
setup(k) {
|
|
2248
2249
|
const { t: m } = fe(), d = Ee(), s = be(), D = Pe(), F = kt(), c = Se(), l = dt(), h = Zt(), { columnDefs: B } = un(), S = Re(), i = xe();
|
|
@@ -2335,7 +2336,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
2335
2336
|
}
|
|
2336
2337
|
}
|
|
2337
2338
|
return p;
|
|
2338
|
-
}), g = L(""), x = L(!0), { breakpoints: C } =
|
|
2339
|
+
}), g = L(""), x = L(!0), { breakpoints: C } = Bt(), H = N(() => C.value.xs || C.value.sm), O = N(() => H.value ? 10 : 20), X = St(), z = N(() => [
|
|
2339
2340
|
{
|
|
2340
2341
|
label: m("inventory.stock.stock_balance.refreshBalance"),
|
|
2341
2342
|
value: "refresh-balance",
|
|
@@ -2372,7 +2373,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
2372
2373
|
}
|
|
2373
2374
|
}
|
|
2374
2375
|
return (ee, p) => {
|
|
2375
|
-
const $ =
|
|
2376
|
+
const $ = T("FmSwitch"), G = T("FmTable");
|
|
2376
2377
|
return j(), q(wt, {
|
|
2377
2378
|
title: a(m)("inventory.stock.title"),
|
|
2378
2379
|
actions: z.value,
|
|
@@ -2385,12 +2386,12 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
2385
2386
|
class: he([
|
|
2386
2387
|
"flex flex-col gap-8 max-h-full",
|
|
2387
2388
|
{
|
|
2388
|
-
"p-0":
|
|
2389
|
-
"px-24 ": !
|
|
2389
|
+
"p-0": H.value,
|
|
2390
|
+
"px-24 ": !H.value
|
|
2390
2391
|
}
|
|
2391
2392
|
])
|
|
2392
2393
|
}, [
|
|
2393
|
-
y(
|
|
2394
|
+
y(qt, {
|
|
2394
2395
|
searchable: "",
|
|
2395
2396
|
"change-location": "",
|
|
2396
2397
|
search: g.value,
|
|
@@ -2404,7 +2405,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
2404
2405
|
default: U(() => [
|
|
2405
2406
|
a(h).isEnabled ? (j(), W("div", bs, [
|
|
2406
2407
|
e("span", xs, v(a(m)("inventory.integration.netsuite.subsidiaryHierarchy.filtering")), 1),
|
|
2407
|
-
y(
|
|
2408
|
+
y(Dt),
|
|
2408
2409
|
y(Xe, null, {
|
|
2409
2410
|
default: U(() => [
|
|
2410
2411
|
y($, {
|
|
@@ -2429,7 +2430,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
2429
2430
|
"page-size": O.value
|
|
2430
2431
|
}, {
|
|
2431
2432
|
"list-row": U((r) => [
|
|
2432
|
-
y(
|
|
2433
|
+
y(Qt, {
|
|
2433
2434
|
row: r,
|
|
2434
2435
|
onRowClick: a(F).showSkuHistory
|
|
2435
2436
|
}, {
|
|
@@ -2439,13 +2440,13 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
2439
2440
|
e("div", Ss, [
|
|
2440
2441
|
e("div", ws, [
|
|
2441
2442
|
e("div", Fs, [
|
|
2442
|
-
y(a(
|
|
2443
|
+
y(a(lt), {
|
|
2443
2444
|
render: (A = (u = (V = M.code) == null ? void 0 : V.column) == null ? void 0 : u.columnDef) == null ? void 0 : A.cell,
|
|
2444
2445
|
props: (ne = (R = M.code) == null ? void 0 : R.getContext) == null ? void 0 : ne.call(R)
|
|
2445
2446
|
}, null, 8, ["render", "props"])
|
|
2446
2447
|
]),
|
|
2447
2448
|
e("div", As, [
|
|
2448
|
-
y(a(
|
|
2449
|
+
y(a(lt), {
|
|
2449
2450
|
render: (te = (J = (re = M.name) == null ? void 0 : re.column) == null ? void 0 : J.columnDef) == null ? void 0 : te.cell,
|
|
2450
2451
|
props: (ie = (oe = M.name) == null ? void 0 : oe.getContext) == null ? void 0 : ie.call(oe)
|
|
2451
2452
|
}, null, 8, ["render", "props"])
|
|
@@ -2477,7 +2478,7 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
2477
2478
|
(j(), q(xt, { to: "body" }, [
|
|
2478
2479
|
(Y = a(F).stockHistoryProps) != null && Y.sku ? (j(), q(gs, Ne(Ye({ key: 0 }, a(F).stockHistoryProps)), null, 16)) : se("", !0),
|
|
2479
2480
|
(E = a(F).convertSkuDialogProps) != null && E.sku ? (j(), q(wn, Ne(Ye({ key: 1 }, a(F).convertSkuDialogProps)), null, 16)) : se("", !0),
|
|
2480
|
-
(_ = a(F).adjustSkuDialogProps) != null && _.stock ? (j(), q(
|
|
2481
|
+
(_ = a(F).adjustSkuDialogProps) != null && _.stock ? (j(), q(Hn, Ne(Ye({ key: 2 }, a(F).adjustSkuDialogProps)), null, 16)) : se("", !0),
|
|
2481
2482
|
Z.value ? (j(), q(qn, {
|
|
2482
2483
|
key: 3,
|
|
2483
2484
|
show: Z.value,
|
|
@@ -2493,5 +2494,5 @@ const So = { class: "flex items-center w-full fm-typo-en-title-md-800" }, wo = {
|
|
|
2493
2494
|
}
|
|
2494
2495
|
});
|
|
2495
2496
|
export {
|
|
2496
|
-
|
|
2497
|
+
Qs as default
|
|
2497
2498
|
};
|