@feedmepos/mf-inventory-portal 0.0.25-dev.6 → 0.0.25-dev.8
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-CbfxkgwK.js → App-CKLQeRNl.js} +1 -1
- package/dist/{ApprovalView-ELDEWMap.js → ApprovalView-BWO2tkbO.js} +6 -6
- package/dist/{BindingsDialog-BtCjzX36.js → BindingsDialog-C0kTZLOn.js} +9 -9
- package/dist/{BindingsPicker-DP6FdglZ.js → BindingsPicker-DjcS3uTL.js} +10 -10
- package/dist/{BindingsTable-amcmKpj_.js → BindingsTable-Ctpv958D.js} +10 -10
- package/dist/{ClosingDraftView-DO_14oDG.js → ClosingDraftView-CsAPSZPc.js} +2 -2
- package/dist/{ClosingTemplateView-BMsQpdg7.js → ClosingTemplateView-D0HWVhk3.js} +478 -493
- package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-DUXkuq24.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-BF0lKP9Y.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DJfBmiRt.js +211 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-iPM-EQny.js → FmUnitInput.vue_vue_type_script_setup_true_lang-qZ7Kx-KR.js} +1 -1
- package/dist/{IngredientGroupView-Coo5z0LR.js → IngredientGroupView-Dc3glXN3.js} +1 -1
- package/dist/{IngredientsView-CeQXaN2p.js → IngredientsView-btzrUQ1-.js} +392 -382
- package/dist/{IntegrationView-md4hgi8k.js → IntegrationView-DO1SF1Ca.js} +660 -623
- package/dist/{InventoryBindingForm-CwsppNrg.js → InventoryBindingForm-_2p-YetL.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CLR61V6f.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-B7ump1tl.js} +5 -5
- package/dist/{InventoryBindingSummary-DMvVMPfD.js → InventoryBindingSummary-CEdLu3d9.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ByQXRxdh.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-kLdZ5acK.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DPmIQEPN.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Da0gmGST.js} +1 -1
- package/dist/{PublishView-27Kqj9Pl.js → PublishView-CXTiPWIx.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-aa4spvmG.js → PurchaseOrderPrintPreview-DBviMTyA.js} +1 -1
- package/dist/{ReceiveRequestView-D9U4Vea4.js → ReceiveRequestView-Ct1AQDGK.js} +8 -8
- package/dist/{RecipeView-A8xhUvgI.js → RecipeView-C0HiPNvf.js} +3 -3
- package/dist/{StockView-Dw3H-6FB.js → StockView-BG8jsV_X.js} +7 -7
- package/dist/{SupplierView-B5T1mml-.js → SupplierView-th75_ohq.js} +3 -3
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-C8Q0rIlP.js → TransferDetails.vue_vue_type_script_setup_true_lang-n7fH8GRs.js} +19 -19
- package/dist/{TransferTemplateView-BByKikfy.js → TransferTemplateView-Dcz6xGR_.js} +443 -458
- package/dist/{UnitView-BPm-9Ouy.js → UnitView-lnoMsoBN.js} +3 -3
- package/dist/{WarehouseView-B6kMLEnU.js → WarehouseView-ChXcNnmp.js} +1 -1
- package/dist/{app-DLEGCGlp.js → app-B4RHEuan.js} +6206 -6131
- package/dist/app.js +1 -1
- package/dist/components/FmLockableField.vue.d.ts +3 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +9 -1
- package/dist/components/FmMultiselectDialogProps.d.ts +2 -0
- package/dist/{decimal-Ivbuwf48.js → decimal-BocxWSo6.js} +1 -1
- package/dist/{format-unit-display-DWEQ-Uq0.js → format-unit-display-E_NtfEtV.js} +256 -253
- package/dist/helper/fuzzy.d.ts +10 -0
- package/dist/{index-CjaT65-H.js → index-B-MhJgPv.js} +3 -3
- package/dist/{index-D9ACNHSL.js → index-ro6xANOo.js} +1 -1
- package/dist/{stock-IxIBNyKi.js → stock-DpmweZQd.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-5uoaiSy6.js → supplier--P-eubcS.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-ingredient-select-dialog-C7WZf5D4.js +52 -0
- package/dist/{use-inventory-binding-dialog-Bv4zc_sy.js → use-inventory-binding-dialog-DW_kAtLh.js} +1 -1
- package/dist/views/ingredients/composables/use-ingredient-select-dialog.d.ts +16 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +0 -1
- package/dist/{vue-i18n-CW-Rmr2v.js → vue-i18n-SeWrkOlu.js} +335 -335
- package/package.json +3 -3
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BZQxtTDj.js +0 -286
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as J, computed as _, reactive as Q, resolveComponent as x, openBlock as m, createElementBlock as y, createVNode as c, createElementVNode as n, toDisplayString as v, unref as i, createBlock as V, createCommentVNode as g, Fragment as R, renderList as N, withCtx as S, nextTick as X } from "vue";
|
|
2
|
-
import { a as Z,
|
|
3
|
-
import { u as ie } from "./use-inventory-binding-dialog-
|
|
4
|
-
import { _ as se, c as re, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { a as Z, aN as ee, aO as ne, j as B, aP as oe, N as T, L as te, F as le } from "./app-B4RHEuan.js";
|
|
3
|
+
import { u as ie } from "./use-inventory-binding-dialog-DW_kAtLh.js";
|
|
4
|
+
import { _ as se, c as re, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-qZ7Kx-KR.js";
|
|
5
5
|
import { useI18n as ae } from "@feedmepos/mf-common";
|
|
6
6
|
const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-16" }, ce = { class: "flex items-center" }, pe = { class: "flex-1 fm-typo-en-title-sm-600" }, fe = { class: "flex flex-col" }, ye = { class: "flex py-8 px-12 border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-gray-100 h-[44px] items-center" }, ve = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, _e = {
|
|
7
7
|
class: "flex items-center w-full border-b border-fm-color-neutral-gray-100",
|
|
@@ -30,8 +30,8 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
30
30
|
readonly: { type: Boolean }
|
|
31
31
|
},
|
|
32
32
|
emits: ["update:modelValue", "click:pick-inventory-bindings"],
|
|
33
|
-
setup(
|
|
34
|
-
const { t: p } = ae(), F = Z(), I = _(() => F.inventory.recipe ?? []), h = _(() => F.inventory.sku ?? []), s =
|
|
33
|
+
setup(P, { emit: M }) {
|
|
34
|
+
const { t: p } = ae(), F = Z(), I = _(() => F.inventory.recipe ?? []), h = _(() => F.inventory.sku ?? []), s = P, f = M, w = _(() => ee({
|
|
35
35
|
bindings: s.modelValue,
|
|
36
36
|
recipes: I.value.map((t) => t._id === s.id ? {
|
|
37
37
|
...t,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as s, resolveComponent as c, openBlock as m, createBlock as d, h as g } from "vue";
|
|
2
2
|
import { useI18n as p } from "@feedmepos/mf-common";
|
|
3
3
|
import { components as u } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as r } from "./app-
|
|
4
|
+
import { F as r } from "./app-B4RHEuan.js";
|
|
5
5
|
const B = /* @__PURE__ */ s({
|
|
6
6
|
__name: "InventoryBindingSummary",
|
|
7
7
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as y, computed as V, ref as w, watch as h, resolveComponent as u, openBlock as F, createBlock as A, withCtx as s, createVNode as g, createElementVNode as k, normalizeClass as K } from "vue";
|
|
2
|
-
import { L as d } from "./app-
|
|
2
|
+
import { L as d } from "./app-B4RHEuan.js";
|
|
3
3
|
const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aw as d, ax as f, X as _, u as h } from "./app-
|
|
1
|
+
import { aw as d, ax as f, X as _, u as h } from "./app-B4RHEuan.js";
|
|
2
2
|
import { useCoreStore as F } from "@feedmepos/mf-common";
|
|
3
3
|
import { ref as y, defineComponent as v, resolveComponent as p, openBlock as k, createElementBlock as g, renderSlot as x, createVNode as l, withCtx as S } from "vue";
|
|
4
4
|
function w(e, t) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as j, computed as i, ref as q, resolveComponent as a, openBlock as k, createBlock as D, unref as p, createSlots as G, withCtx as r, createElementVNode as b, normalizeClass as J, createVNode as n, normalizeStyle as Q, Teleport as W, h } from "vue";
|
|
2
|
-
import { u as X, a as Z, z as ee, _ as te, ae as P } from "./app-
|
|
2
|
+
import { u as X, a as Z, z as ee, _ as te, ae as P } from "./app-B4RHEuan.js";
|
|
3
3
|
import { useBreakpoints as oe, components as ne } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as le } from "./vue-i18n-
|
|
4
|
+
import { u as le } from "./vue-i18n-SeWrkOlu.js";
|
|
5
5
|
const ae = { class: "flex flex-col py-8" }, se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ie = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, pe = /* @__PURE__ */ j({
|
|
6
6
|
__name: "PublishView",
|
|
7
7
|
setup(re) {
|
package/dist/{PurchaseOrderPrintPreview-aa4spvmG.js → PurchaseOrderPrintPreview-DBviMTyA.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as h, computed as x, ref as m, onMounted as f, openBlock as n, createElementBlock as u, createElementVNode as t, toDisplayString as l, normalizeStyle as g, createTextVNode as i, Fragment as d, createCommentVNode as p, renderList as v, normalizeClass as w } from "vue";
|
|
2
2
|
import { useRoute as k } from "vue-router";
|
|
3
|
-
import { ar as y, ad as C } from "./app-
|
|
3
|
+
import { ar as y, ad as C } from "./app-B4RHEuan.js";
|
|
4
4
|
const P = { class: "purchase-box" }, R = { valign: "bottom" }, A = { class: "text-right" }, N = { class: "header" }, E = { class: "sub-header" }, O = { class: "caption" }, S = { class: "address" }, D = { class: "text-right" }, T = { class: "sub-header" }, q = { class: "address" }, F = { class: "purchase-body" }, L = { class: "text-left" }, U = { class: "text-left" }, V = { class: "text-right" }, z = { style: { "padding-top": "30px" } }, B = { valign: "bottom" }, H = { class: "header" }, I = { class: "caption" }, M = {
|
|
5
5
|
class: "text-left",
|
|
6
6
|
style: { width: "20%" }
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { reactive as at, onMounted as Be, h as L, computed as q, defineComponent as pe, openBlock as S, createElementBlock as M, Fragment as ke, renderList as Ue, createElementVNode as l, toDisplayString as U, unref as e, resolveComponent as P, createVNode as d, withCtx as F, createCommentVNode as G, ref as N, createBlock as J, watch as _e, normalizeClass as W, normalizeStyle as ot, createTextVNode as Ee, nextTick as ct, mergeProps as Oe, isRef as Se, Teleport as mt } from "vue";
|
|
2
|
-
import { b as Ne, $ as pt, m as Ge, j as ye, P as ft, a1 as ze, L as vt, ao as yt, A as Re, M as bt, n as lt, c as Ae, a8 as Le, G as ie, ap as gt, a as He, aq as _t, ar as kt, as as ht, H as Ct, u as je, at as xt, a0 as St, V as wt, au as Dt, E as nt, J as Ft, e as Fe, av as Ve, a2 as Je, z as $t, _ as Tt, B as Pt, O as We } from "./app-
|
|
3
|
-
import { u as rt, a as It, b as Vt, _ as Rt, g as At } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as it, u as qt, i as Mt, e as Ut } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { b as Ne, $ as pt, m as Ge, j as ye, P as ft, a1 as ze, L as vt, ao as yt, A as Re, M as bt, n as lt, c as Ae, a8 as Le, G as ie, ap as gt, a as He, aq as _t, ar as kt, as as ht, H as Ct, u as je, at as xt, a0 as St, V as wt, au as Dt, E as nt, J as Ft, e as Fe, av as Ve, a2 as Je, z as $t, _ as Tt, B as Pt, O as We } from "./app-B4RHEuan.js";
|
|
3
|
+
import { u as rt, a as It, b as Vt, _ as Rt, g as At } from "./TransferDetails.vue_vue_type_script_setup_true_lang-n7fH8GRs.js";
|
|
4
|
+
import { _ as it, u as qt, i as Mt, e as Ut } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-Da0gmGST.js";
|
|
5
5
|
import { u as Et } from "./useTabStorage-BkIVScW_.js";
|
|
6
6
|
import { useBreakpoints as Ye, components as ve, FmButtonVariant as Ot, useSnackbar as qe, useDialog as Bt, useProxiedModel as Nt } from "@feedmepos/ui-library";
|
|
7
|
-
import { P as j, u as ut } from "./format-unit-display-
|
|
8
|
-
import { _ as zt, F as Lt, a as Xe, b as Ht } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { c as re, u as jt, _ as Yt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { P as j, u as ut } from "./format-unit-display-E_NtfEtV.js";
|
|
8
|
+
import { _ as zt, F as Lt, a as Xe, b as Ht } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-qZ7Kx-KR.js";
|
|
9
|
+
import { c as re, u as jt, _ as Yt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DJfBmiRt.js";
|
|
10
10
|
import { useI18n as he } from "@feedmepos/mf-common";
|
|
11
|
-
import { u as Ke } from "./supplier-
|
|
11
|
+
import { u as Ke } from "./supplier--P-eubcS.js";
|
|
12
12
|
import { _ as Kt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
13
|
-
import { u as Qt } from "./vue-i18n-
|
|
13
|
+
import { u as Qt } from "./vue-i18n-SeWrkOlu.js";
|
|
14
14
|
import "./array-hChJVZLE.js";
|
|
15
15
|
var Y = /* @__PURE__ */ ((m) => (m.Code = "Code", m.Name = "Name", m.Amount = "Amount", m.Cost = "Cost", m.TotalCost = "TotalCost", m.Delete = "Delete", m))(Y || {});
|
|
16
16
|
const et = () => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as q, ref as C, onMounted as re, resolveComponent as S, openBlock as x, createElementBlock as $, Fragment as ie, createElementVNode as R, toDisplayString as ce, createVNode as v, createCommentVNode as K, computed as F, watch as ue, createBlock as T, withCtx as P, unref as b, isRef as Z, normalizeClass as de, normalizeStyle as me, Teleport as pe, normalizeProps as fe, guardReactiveProps as ve } from "vue";
|
|
2
|
-
import { a as A, e as V, f as O, S as ye, h as ge, D as ee, i as Y, j, F as te, m as be, U as _e, A as we, p as ne, q as Re, s as he, r as Ve, u as xe, z as Ee, _ as Ce, B as Se, E as Fe, G as oe } from "./app-
|
|
2
|
+
import { a as A, e as V, f as O, S as ye, h as ge, D as ee, i as Y, j, F as te, m as be, U as _e, A as we, p as ne, q as Re, s as he, r as Ve, u as xe, z as Ee, _ as Ce, B as Se, E as Fe, G as oe } from "./app-B4RHEuan.js";
|
|
3
3
|
import { useDialog as ke, useSnackbar as se, useProxiedModel as ae, useBreakpoints as De } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Ae, _ as Ie } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
|
-
import { _ as le, a as $e } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as le, a as $e } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-BF0lKP9Y.js";
|
|
6
6
|
import { defineStore as Pe, storeToRefs as Be } from "pinia";
|
|
7
7
|
import { useI18n as H } from "@feedmepos/mf-common";
|
|
8
|
-
import { _ as Te } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as Te } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-B7ump1tl.js";
|
|
9
9
|
const Me = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "flex flex-col items-center w-full h-full gap-24"
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as re, ref as H, computed as I, resolveComponent as B, openBlock as $, createBlock as z, withCtx as D, createElementVNode as n, normalizeClass as he, toDisplayString as k, createVNode as g, createElementBlock as O, Fragment as ne, renderList as ae, unref as u, h as ye, watch as ke, isRef as je, createCommentVNode as te, reactive as at, onMounted as qe, normalizeStyle as Je, createTextVNode as pe, Teleport as rt, normalizeProps as Se, mergeProps as we } from "vue";
|
|
2
|
-
import { u as ce, O as lt, f as Ue, h as it, a as Ie, F as Le, P as Ce, j as ie, K as ut, t as ge, N as Me, A as ct, M as dt, L as ve, Q as mt, T as ee, V as pt, W as ze, m as vt, J as ft, X as yt, Y as _t, Z as Qe, $ as q, a0 as ht, r as Xe, a1 as De, a2 as kt, a3 as gt, o as Ne, c as bt, a4 as xt, a5 as St, C as Fe, a6 as wt, a7 as Ft, a8 as $t, z as At, _ as Vt, B as Ct, E as Mt, G as Ye } from "./app-
|
|
3
|
-
import { u as Pe, a as Te } from "./stock-
|
|
4
|
-
import { g as be } from "./decimal-
|
|
5
|
-
import { e as Dt, u as Ze, i as et, _ as Ke } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { u as ce, O as lt, f as Ue, h as it, a as Ie, F as Le, P as Ce, j as ie, K as ut, t as ge, N as Me, A as ct, M as dt, L as ve, Q as mt, T as ee, V as pt, W as ze, m as vt, J as ft, X as yt, Y as _t, Z as Qe, $ as q, a0 as ht, r as Xe, a1 as De, a2 as kt, a3 as gt, o as Ne, c as bt, a4 as xt, a5 as St, C as Fe, a6 as wt, a7 as Ft, a8 as $t, z as At, _ as Vt, B as Ct, E as Mt, G as Ye } from "./app-B4RHEuan.js";
|
|
3
|
+
import { u as Pe, a as Te } from "./stock-DpmweZQd.js";
|
|
4
|
+
import { g as be } from "./decimal-BocxWSo6.js";
|
|
5
|
+
import { e as Dt, u as Ze, i as et, _ as Ke } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-Da0gmGST.js";
|
|
6
6
|
import { _ as Be, S as $e, g as tt } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
|
|
7
7
|
import { _ as Bt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
8
8
|
import { useI18n as le, useCoreStore as jt } from "@feedmepos/mf-common";
|
|
9
9
|
import { useSnackbar as fe, useDialog as nt, useProxiedModel as Re, useBreakpoints as Ut } from "@feedmepos/ui-library";
|
|
10
10
|
import { defineStore as It } from "pinia";
|
|
11
|
-
import { u as Pt } from "./use-inventory-binding-dialog-
|
|
12
|
-
import { _ as Tt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { u as Pt } from "./use-inventory-binding-dialog-DW_kAtLh.js";
|
|
12
|
+
import { _ as Tt } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-kLdZ5acK.js";
|
|
13
13
|
import { E as Rt } from "./empty-placeholder-wf6-BWE8.js";
|
|
14
|
-
import "./index-
|
|
14
|
+
import "./index-ro6xANOo.js";
|
|
15
15
|
import "./array-hChJVZLE.js";
|
|
16
16
|
var _e = /* @__PURE__ */ ((p) => (p.History = "History", p.Convert = "Convert", p.Adjust = "Adjust", p))(_e || {});
|
|
17
17
|
const Ht = [
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as Q, mergeModels as Bd, computed as F, useModel as Gd, resolveComponent as T, openBlock as E, createElementBlock as O, createElementVNode as g, createVNode as N, withCtx as k, toDisplayString as A, unref as f, Fragment as q, renderList as ee, ref as L, createBlock as j, createCommentVNode as K, isRef as Qe, normalizeClass as J, createTextVNode as Hd, watch as Id, createSlots as jd, normalizeStyle as Kd, Teleport as Wd } from "vue";
|
|
2
|
-
import { u as re } from "./supplier-
|
|
3
|
-
import { b as Fe, h as Yd, D as ed, i as ie, f as Pe, a as Fd, o as dd, k as Xd, J as Zd, C as he, v as Od, u as pe, m as G, c as wd, e as U, q as Ad, r as zd, s as Rd, w as qd, x as Jd, y as Qd, z as et, _ as dt, B as tt, E as rt, G as le } from "./app-
|
|
2
|
+
import { u as re } from "./supplier--P-eubcS.js";
|
|
3
|
+
import { b as Fe, h as Yd, D as ed, i as ie, f as Pe, a as Fd, o as dd, k as Xd, J as Zd, C as he, v as Od, u as pe, m as G, c as wd, e as U, q as Ad, r as zd, s as Rd, w as qd, x as Jd, y as Qd, z as et, _ as dt, B as tt, E as rt, G as le } from "./app-B4RHEuan.js";
|
|
4
4
|
import { useI18n as X, useCoreStore as Oe } from "@feedmepos/mf-common";
|
|
5
5
|
import { useDialog as we, useSnackbar as me, useProxiedModel as td, 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-qZ7Kx-KR.js";
|
|
8
8
|
import { defineStore as it } from "pinia";
|
|
9
9
|
function lt(e, d) {
|
|
10
10
|
const { t } = X(), r = Fe();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref as K, computed as Y, h as oe, defineComponent as _e, unref as i, openBlock as g, createElementBlock as D, createElementVNode as e, toDisplayString as S, createCommentVNode as x, resolveComponent as
|
|
2
|
-
import { X as He, u as be,
|
|
1
|
+
import { ref as K, computed as Y, h as oe, defineComponent as _e, unref as i, openBlock as g, createElementBlock as D, createElementVNode as e, toDisplayString as S, createCommentVNode as x, resolveComponent as J, createVNode as U, createBlock as W, isRef as Ge, withCtx as de, Fragment as ne, normalizeClass as ye, createTextVNode as xe, renderList as pe } from "vue";
|
|
2
|
+
import { X as He, u as be, aH as k, a2 as ze, a4 as Ye, a5 as Qe, ai as We, e as Te, f as Ie, ar as B, V as Fe, c as Be, aI as Je, Z as Se, L as he, j as fe, aJ as Me, a9 as ge, h as Pe, D as V, i as F, b as Ue, a3 as Ze, ao as Ce, a1 as $e, ae as Ee } from "./app-B4RHEuan.js";
|
|
3
3
|
import { useDialog as we, useSnackbar as Re, useProxiedModel as Xe } from "@feedmepos/ui-library";
|
|
4
|
-
import { b as et, u as tt, f as Le, P as ie } from "./format-unit-display-
|
|
5
|
-
import { F as rt } from "./decimal-
|
|
4
|
+
import { b as et, u as tt, f as Le, P as ie } from "./format-unit-display-E_NtfEtV.js";
|
|
5
|
+
import { F as rt } from "./decimal-BocxWSo6.js";
|
|
6
6
|
import { useI18n as je } from "@feedmepos/mf-common";
|
|
7
7
|
import { E as st } from "./empty-placeholder-wf6-BWE8.js";
|
|
8
8
|
const Ve = He((v, y) => {
|
|
@@ -154,7 +154,7 @@ function Cr(v, y) {
|
|
|
154
154
|
try {
|
|
155
155
|
s.value = await o.getPurchaseOrders(m.value).then((A) => A.sort((n, _) => _._id.localeCompare(n._id)));
|
|
156
156
|
const p = await C.readLastClosing(!0), d = p == null ? void 0 : p._id;
|
|
157
|
-
d && (z.value =
|
|
157
|
+
d && (z.value = Je(d)), O.mustUsePoTemplate && await R.fetchTemplates();
|
|
158
158
|
} catch {
|
|
159
159
|
h.open({
|
|
160
160
|
title: "Something went wrong",
|
|
@@ -179,7 +179,7 @@ function Cr(v, y) {
|
|
|
179
179
|
l.value = !1;
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Z() {
|
|
183
183
|
switch (v) {
|
|
184
184
|
case "receive/request":
|
|
185
185
|
return G();
|
|
@@ -191,14 +191,14 @@ function Cr(v, y) {
|
|
|
191
191
|
u.value = {
|
|
192
192
|
startDate: p,
|
|
193
193
|
endDate: d
|
|
194
|
-
},
|
|
194
|
+
}, Z();
|
|
195
195
|
}
|
|
196
196
|
r.watchLocation(async (p) => {
|
|
197
197
|
if (!p) {
|
|
198
198
|
s.value = [];
|
|
199
199
|
return;
|
|
200
200
|
}
|
|
201
|
-
await
|
|
201
|
+
await Z();
|
|
202
202
|
});
|
|
203
203
|
const X = K(), t = K(Math.random().toString());
|
|
204
204
|
async function a(p, d) {
|
|
@@ -262,7 +262,7 @@ function Cr(v, y) {
|
|
|
262
262
|
type: "error"
|
|
263
263
|
}), console.error("Error when submitting PO operation", d, p, _);
|
|
264
264
|
} finally {
|
|
265
|
-
l.value = !1,
|
|
265
|
+
l.value = !1, Z();
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
async function q(p, d, A) {
|
|
@@ -288,7 +288,7 @@ function Cr(v, y) {
|
|
|
288
288
|
purchaseOrders: s,
|
|
289
289
|
purchaseRequests: f,
|
|
290
290
|
updateDateRange: re,
|
|
291
|
-
fetchData:
|
|
291
|
+
fetchData: Z,
|
|
292
292
|
loading: l,
|
|
293
293
|
transferDialogProps: ve,
|
|
294
294
|
promptCreateTransferDialog: te,
|
|
@@ -653,7 +653,7 @@ const ot = {
|
|
|
653
653
|
}).join(", ") : "-";
|
|
654
654
|
});
|
|
655
655
|
return (c, R) => {
|
|
656
|
-
var l, h, o, s, u, m, f, C, z, te, ce, G, ue,
|
|
656
|
+
var l, h, o, s, u, m, f, C, z, te, ce, G, ue, Z;
|
|
657
657
|
return i(b).isEnabled ? (g(), D("div", ot, [
|
|
658
658
|
e("div", lt, [
|
|
659
659
|
R[0] || (R[0] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, "NetSuite subsidiary", -1)),
|
|
@@ -665,7 +665,7 @@ const ot = {
|
|
|
665
665
|
])),
|
|
666
666
|
(ce = (te = (z = c.purchaseOrder) == null ? void 0 : z.netSuite) == null ? void 0 : te.additionalInfo) != null && ce.transactionnumber ? (g(), D("div", mt, [
|
|
667
667
|
R[1] || (R[1] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite Transaction Number ", -1)),
|
|
668
|
-
e("div", ft, S((
|
|
668
|
+
e("div", ft, S((Z = (ue = (G = c.purchaseOrder) == null ? void 0 : G.netSuite) == null ? void 0 : ue.additionalInfo) == null ? void 0 : Z.transactionnumber), 1)
|
|
669
669
|
])) : x("", !0),
|
|
670
670
|
i(b).isEnabled && c.transferType === i(ie).TRANSFER && !c.isTransferBetweenOutlets ? (g(), D("div", pt, [
|
|
671
671
|
R[2] || (R[2] = e("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " NetSuite fulfillment IDs ", -1)),
|
|
@@ -742,7 +742,7 @@ const ot = {
|
|
|
742
742
|
});
|
|
743
743
|
}
|
|
744
744
|
return (h, o) => {
|
|
745
|
-
const s =
|
|
745
|
+
const s = J("FmButton");
|
|
746
746
|
return R.value ? (g(), D("div", ht, [
|
|
747
747
|
U(s, {
|
|
748
748
|
"prepend-icon": "sync",
|
|
@@ -769,7 +769,7 @@ const ot = {
|
|
|
769
769
|
}, Ut = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Lt = { class: "fm-typo-en-body-lg-600" }, jt = {
|
|
770
770
|
key: 4,
|
|
771
771
|
class: "flex flex-col gap-4"
|
|
772
|
-
}, Vt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Kt = { class: "fm-typo-en-body-lg-600" }, Gt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Ht = { class: "flex flex-col gap-8" }, zt = { class: "fm-typo-en-body-lg-600" }, Yt = { class: "flex gap-8" }, Qt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary flex flex-col gap-4" }, Wt = { class: "flex w-full gap-4" },
|
|
772
|
+
}, Vt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Kt = { class: "fm-typo-en-body-lg-600" }, Gt = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, Ht = { class: "flex flex-col gap-8" }, zt = { class: "fm-typo-en-body-lg-600" }, Yt = { class: "flex gap-8" }, Qt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary flex flex-col gap-4" }, Wt = { class: "flex w-full gap-4" }, Jt = { class: "basis-1/2 shrink-0 grow fm-typo-en-body-lg-400 line-clamp-2" }, Zt = { class: "fm-typo-en-body-lg-600 line-clamp-2" }, Xt = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, er = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-1" }, tr = {
|
|
773
773
|
key: 0,
|
|
774
774
|
class: "line-clamp-1 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
775
775
|
}, rr = { class: "py-8" }, sr = { class: "flex justify-end gap-4 items-center" }, ar = { class: "fm-typo-en-body-lg-600" }, nr = {
|
|
@@ -877,7 +877,7 @@ const ot = {
|
|
|
877
877
|
const ue = Y(() => {
|
|
878
878
|
var t, a;
|
|
879
879
|
return ((t = b.purchaseOrder) == null ? void 0 : t.status) === B.enum.RECEIVING || ((a = b.purchaseOrder) == null ? void 0 : a.status) === B.enum.COMPLETE;
|
|
880
|
-
}),
|
|
880
|
+
}), Z = Y(() => {
|
|
881
881
|
var d, A, n;
|
|
882
882
|
const P = (((d = b.purchaseOrder) == null ? void 0 : d.deliveryOrder) ?? []).flatMap((_) => _.received ?? []).reduce(
|
|
883
883
|
(_, w) => {
|
|
@@ -888,7 +888,7 @@ const ot = {
|
|
|
888
888
|
), q = Object.entries(P).reduce(
|
|
889
889
|
(_, [w, $]) => {
|
|
890
890
|
const T = $.reduce((L, j) => {
|
|
891
|
-
const Q =
|
|
891
|
+
const Q = Ze(
|
|
892
892
|
L,
|
|
893
893
|
Math.max(L.precision, j.amount.precision)
|
|
894
894
|
);
|
|
@@ -1003,7 +1003,7 @@ const ot = {
|
|
|
1003
1003
|
});
|
|
1004
1004
|
return (t, a) => {
|
|
1005
1005
|
var T, L;
|
|
1006
|
-
const P =
|
|
1006
|
+
const P = J("FmButtonGroup"), q = J("FmChip"), p = J("FmMenuDivider"), d = J("FmCard"), A = J("FmIcon"), n = J("FmTooltip"), _ = J("FmSpacer"), w = J("FmButton"), $ = J("FmSideSheet");
|
|
1007
1007
|
return g(), W($, {
|
|
1008
1008
|
header: i(l)("inventory.transfer.receiveRequest.details.title") + ((T = t.purchaseOrder) != null && T.seqNumber ? ` #${(L = t.purchaseOrder) == null ? void 0 : L.seqNumber}` : ""),
|
|
1009
1009
|
modelValue: i(te),
|
|
@@ -1138,8 +1138,8 @@ const ot = {
|
|
|
1138
1138
|
class: "flex flex-col"
|
|
1139
1139
|
}, [
|
|
1140
1140
|
e("div", Wt, [
|
|
1141
|
-
e("div",
|
|
1142
|
-
e("div",
|
|
1141
|
+
e("div", Jt, S(N.name), 1),
|
|
1142
|
+
e("div", Zt, S(i(fe)(Z.value[N.sku._id], !1)) + "/" + S(i(Le)(N.quantity, N.sku.unit, N.measurement)), 1)
|
|
1143
1143
|
]),
|
|
1144
1144
|
e("div", Xt, [
|
|
1145
1145
|
e("div", er, S(N.code), 1),
|