@feedmepos/mf-inventory-portal 0.0.19-dev.11 → 0.0.19-dev.12
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/{ApprovalView-BtgtZgDY.js → ApprovalView-CuTAFiWC.js} +5 -5
- package/dist/{BindingsDialog-DDqu7p2z.js → BindingsDialog-C_ndNZ8f.js} +1 -1
- package/dist/{BindingsPicker-BDhn5Do7.js → BindingsPicker-CcAod_ha.js} +1 -1
- package/dist/{BindingsTable-C5R7orsB.js → BindingsTable-Bm4-kj_a.js} +1 -1
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D0sbKAX9.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-rDMoAXyd.js} +1 -1
- package/dist/{IngredientsView-Ac52Wd12.js → IngredientsView-CyD65_rv.js} +4 -4
- package/dist/{IntegrationView-6mJtJK-d.js → IntegrationView-Bh1BWAq-.js} +2 -2
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C2BFaTg-.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-cw3SEkW_.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CL0RBLOF.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B_kVFkxk.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-UzrsJ0AN.js → PurchaseOrderPrintPreview-Uf0aO8n1.js} +1 -1
- package/dist/{ReceiveRequestView-DW9u9TJZ.js → ReceiveRequestView-C0r1FIwM.js} +7 -7
- package/dist/{RecipeView-W15pCZKU.js → RecipeView-CYE6gi__.js} +4 -4
- package/dist/{StockView-BqEe-OIX.js → StockView-CKyhKuGi.js} +68 -60
- package/dist/{SupplierView-CGr2N-e7.js → SupplierView-BSJoZFMr.js} +4 -4
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DupNA58V.js → TransferDetails.vue_vue_type_script_setup_true_lang-8L6lwGpu.js} +4 -4
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-Bdby-n4P.js +1676 -0
- package/dist/{TransferTemplateView-HgaSR8L8.js → TransferTemplateView-B23JFk-I.js} +91 -91
- package/dist/{UnitView-C07Yrynl.js → UnitView-DXnLq5nR.js} +5 -5
- package/dist/{WarehouseView-DL-8j9vX.js → WarehouseView-BCnvqHHp.js} +3 -3
- package/dist/{app-B1MZZxUg.js → app-DDxzU9iC.js} +7894 -7832
- package/dist/app.d.ts +62 -0
- package/dist/app.js +1 -1
- package/dist/{decimal-BXf_WdLk.js → decimal-DN0h6619.js} +1 -1
- package/dist/{id-to-date-Dlovyec6.js → id-to-date-D1fU6Y7T.js} +1 -1
- package/dist/{layout-BJjS48J5.js → layout-DcSLry7F.js} +1 -1
- package/dist/{purchase-order-transaction-type-CMIu0jrP.js → purchase-order-transaction-type-D0c31GiL.js} +2 -2
- package/dist/{supplier-IDQmZ4VM.js → supplier-CQXRbSC3.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/stock/helper/stock-row-action.d.ts +2 -0
- package/dist/{xlsx-CfdXcS72.js → xlsx-yV2SoDMC.js} +1 -1
- package/dist/{xlsx.util-C5Wx4IUs.js → xlsx.util-CTIDgqw2.js} +2 -2
- package/package.json +3 -3
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-COVncBoC.js +0 -1676
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as B, ref as h, watch as I, computed as ee, resolveComponent as te, openBlock as D, createBlock as H, unref as e, withCtx as g, createElementVNode as s, createVNode as n, normalizeStyle as ae, toDisplayString as oe, createElementBlock as re, createCommentVNode as ne, Teleport as se, mergeProps as le } from "vue";
|
|
2
|
-
import { Y as f, O as U, j as ie } from "./app-
|
|
3
|
-
import { b as ce, _ as pe, a as ue } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { u as me } from "./purchase-order-transaction-type-
|
|
5
|
-
import { u as de, _ as fe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as _e, F as _, u as ve } from "./layout-
|
|
2
|
+
import { Y as f, O as U, j as ie } from "./app-DDxzU9iC.js";
|
|
3
|
+
import { b as ce, _ as pe, a as ue } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-rDMoAXyd.js";
|
|
4
|
+
import { u as me } from "./purchase-order-transaction-type-D0c31GiL.js";
|
|
5
|
+
import { u as de, _ as fe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-8L6lwGpu.js";
|
|
6
|
+
import { _ as _e, F as _, u as ve } from "./layout-DcSLry7F.js";
|
|
7
7
|
import { useBreakpoints as he } from "@feedmepos/ui-library";
|
|
8
8
|
import { useI18n as De } from "@feedmepos/mf-common";
|
|
9
9
|
const ge = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, xe = { class: "flex flex-col py-8" }, be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, we = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Oe = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
|
|
2
|
-
import { u as V, aj as L, _ as S } from "./app-
|
|
2
|
+
import { u as V, aj as L, _ as S } from "./app-DDxzU9iC.js";
|
|
3
3
|
const U = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
|
|
2
|
-
import { u as x, aj as M, y as h } from "./app-
|
|
2
|
+
import { u as x, aj as M, y as h } from "./app-DDxzU9iC.js";
|
|
3
3
|
const z = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex flex-col gap-16"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as v, ref as l, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as x } from "vue";
|
|
2
|
-
import { q as _, u as E, aj as L } from "./app-
|
|
2
|
+
import { q as _, u as E, aj as L } from "./app-DDxzU9iC.js";
|
|
3
3
|
import { components as F } from "@feedmepos/ui-library";
|
|
4
4
|
import "@feedmepos/mf-common";
|
|
5
5
|
const P = /* @__PURE__ */ v({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as $, computed as g, resolveComponent as f, openBlock as t, createElementBlock as y, Fragment as k, createElementVNode as m, toDisplayString as R, renderList as F, createBlock as _, createCommentVNode as b, unref as d, createVNode as v, renderSlot as A, Teleport as H, ref as S, withCtx as C, watch as U, mergeModels as Y, useModel as B } from "vue";
|
|
2
2
|
import { FmButtonVariant as j, useBreakpoints as z } from "@feedmepos/ui-library";
|
|
3
3
|
import { useI18n as T } from "@feedmepos/mf-common";
|
|
4
|
-
import { j as Q, O as V } from "./app-
|
|
4
|
+
import { j as Q, O as V } from "./app-DDxzU9iC.js";
|
|
5
5
|
const E = { class: "flex flex-col w-full bg-white h-full" }, O = { class: "flex items-center px-24 py-16 xs:p-12 sm:p-12 gap-4 h-[68px]" }, q = { class: "flex-1 fm-typo-en-title-md-800 flex items-center h-[36px] bg-white" }, G = { key: 0 }, J = { key: 1 }, K = { class: "bg-white flex-1" }, W = { class: "fixed bottom-96 right-16" }, _e = /* @__PURE__ */ $({
|
|
6
6
|
__name: "SingleColumnLayout",
|
|
7
7
|
props: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ref as z, defineComponent as le, computed as C, resolveComponent as R, openBlock as y, createBlock as B, withCtx as $, createVNode as f, unref as d, createElementBlock as U, Fragment as Q, createElementVNode as c, createCommentVNode as O, onMounted as nt, watch as je, normalizeClass as X, createTextVNode as He, toDisplayString as L, renderList as oe, isRef as Ee, renderSlot as ge, createSlots as Oe, normalizeStyle as ot, Teleport as De, normalizeProps as lt, guardReactiveProps as at } from "vue";
|
|
2
|
-
import { u as ae, c as Ye, S as rt, _ as st, A as _e, a as Ge, g as xe, t as qe, F as ve, R as be, U as it, M as ut, d as Ae, b as We, C as Ce, e as Te, f as dt, h as ct, I as mt, i as pt, j as vt } from "./app-
|
|
2
|
+
import { u as ae, c as Ye, S as rt, _ as st, A as _e, a as Ge, g as xe, t as qe, F as ve, R as be, U as it, M as ut, d as Ae, b as We, C as Ce, e as Te, f as dt, h as ct, I as mt, i as pt, j as vt } from "./app-DDxzU9iC.js";
|
|
3
3
|
import { useDialog as Ke, useSnackbar as Ve, useProxiedModel as Pe, useDialogChild as ft, useBreakpoints as yt } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as gt, _ as bt } from "./is-linked-ingredient-error-C6AghEwR.js";
|
|
5
5
|
import { F as K, D as Be, R as he } from "./row-action.enum-PMKMRrZR.js";
|
|
6
6
|
import { useI18n as re, useCoreStore as fe } from "@feedmepos/mf-common";
|
|
7
7
|
import { defineStore as ht, storeToRefs as _t } from "pinia";
|
|
8
|
-
import { c as xt, _ as Vt, F as ze, u as kt } from "./layout-
|
|
9
|
-
import { _ as Ct, a as Ft } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { c as xt, _ as Vt, F as ze, u as kt } from "./layout-DcSLry7F.js";
|
|
9
|
+
import { _ as Ct, a as Ft } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-rDMoAXyd.js";
|
|
10
10
|
import { g as St, _ as Fe, S as Se } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
|
|
11
|
-
import { _ as we, t as Je, d as Qe, s as wt, r as Mt } from "./xlsx.util-
|
|
11
|
+
import { _ as we, t as Je, d as Qe, s as wt, r as Mt } from "./xlsx.util-CTIDgqw2.js";
|
|
12
12
|
import { _ as Me } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
13
13
|
import "./array-AvWd53LI.js";
|
|
14
14
|
const $e = ht("ingredientForm", function() {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as q, mergeModels as de, useModel as ue, onMounted as ce, ref as P, computed as K, resolveComponent as B, openBlock as $, createElementBlock as A, createElementVNode as m, toDisplayString as I, createVNode as M, createBlock as U, withCtx as N, Fragment as O, renderList as W, normalizeClass as T, normalizeStyle as fe, createSlots as me, unref as F, createCommentVNode as E, withModifiers as pe, reactive as X, watch as ee, isRef as te, Teleport as ge } from "vue";
|
|
2
2
|
import { E as ve } from "./empty-placeholder-wf6-BWE8.js";
|
|
3
|
-
import { ag as ne, ah as ye, c as z, ai as be, j as he } from "./app-
|
|
3
|
+
import { ag as ne, ah as ye, c as z, ai as be, j as he } from "./app-DDxzU9iC.js";
|
|
4
4
|
import { useDialogChild as _e, useDialog as oe, useProxiedModel as ie, useSnackbar as Ce } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as R, useCoreStore as xe } from "@feedmepos/mf-common";
|
|
6
|
-
import { _ as we, a as He } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as we, a as He } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-rDMoAXyd.js";
|
|
7
7
|
const $e = "data:image/svg+xml,%3csvg%20width='200'%20height='101'%20viewBox='0%200%20200%20101'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M98.9161%2038.4456V24.1772H108.527V27.1988H102.12V30.2202H107.347V32.7382H102.12V38.4456H98.9161Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.382%2031.2276C110.382%2027.5345%20113.249%2024.1772%20117.127%2024.1772C121.174%2024.1772%20123.872%2027.7024%20123.872%2031.3953C123.872%2035.0884%20121.005%2038.6133%20117.127%2038.6133C113.08%2038.4456%20110.382%2034.9204%20110.382%2031.2276ZM117.127%2035.5919C119.487%2035.5919%20120.499%2033.4096%20120.499%2031.2276C120.499%2029.0452%20119.319%2027.0309%20117.127%2027.0309C114.935%2027.0309%20113.754%2029.213%20113.754%2031.2276C113.754%2033.5776%20114.935%2035.5919%20117.127%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M126.232%2031.2276C126.232%2027.5345%20129.099%2024.1772%20132.977%2024.1772C137.024%2024.1772%20139.722%2027.7024%20139.722%2031.3953C139.722%2035.0884%20136.855%2038.6133%20132.977%2038.6133C128.93%2038.4456%20126.232%2034.9204%20126.232%2031.2276ZM132.977%2035.5919C135.337%2035.5919%20136.349%2033.4096%20136.349%2031.2276C136.349%2029.0452%20135.169%2027.0309%20132.977%2027.0309C130.785%2027.0309%20129.604%2029.213%20129.604%2031.2276C129.604%2033.5776%20130.785%2035.5919%20132.977%2035.5919Z'%20fill='%235D5359'/%3e%3cpath%20d='M142.926%2038.4455V24.345H148.153C152.874%2024.345%20155.235%2027.5343%20155.235%2031.3952C155.235%2035.5918%20152.368%2038.4455%20148.153%2038.4455H142.926ZM148.153%2027.0308H146.129V35.4238H148.153C150.513%2035.4238%20151.862%2033.5775%20151.862%2031.2272C151.862%2028.8773%20150.513%2027.0308%20148.153%2027.0308Z'%20fill='%235D5359'/%3e%3cpath%20d='M110.045%2057.5607V49.1676L107.009%2055.2107H105.324L102.12%2049.1676V57.5607H98.9161V43.4604H102.457L106.167%2050.8465L109.876%2043.4604H113.417V57.5607H110.045Z'%20fill='%235D5359'/%3e%3cpath%20d='M115.947%2057.5607L121.342%2043.4604H124.04L129.436%2057.5607H125.895L124.715%2054.3716H120.331L119.319%2057.5607H115.947ZM122.691%2046.9856L121.005%2052.1893H124.378L122.691%2046.9856Z'%20fill='%235D5359'/%3e%3cpath%20d='M131.965%2057.5607V43.4604H138.373C141.07%2043.4604%20142.925%2045.8105%20142.925%2048.1605C142.925%2049.8393%20142.082%2051.5179%20140.565%2052.1893L143.768%2057.393H140.059L137.192%2052.8607H135V57.393H131.965V57.5607ZM135.169%2050.175H138.204C139.047%2050.175%20139.553%2049.3356%20139.553%2048.1605C139.553%2046.9856%20138.71%2046.3142%20138.035%2046.3142H135.169V50.175Z'%20fill='%235D5359'/%3e%3cpath%20d='M146.635%2057.5607V43.4604H150.007V49.8393L155.403%2043.4604H158.776L153.548%2049.6713L159.281%2057.5607H155.74L151.693%2051.5179L150.007%2053.3642V57.5607H146.635Z'%20fill='%235D5359'/%3e%3cpath%20d='M171.422%2054.7073V57.5607H161.474V43.4604H171.253V46.3142H164.677V48.9999H170.242V51.6856H164.677V54.7073H171.422Z'%20fill='%235D5359'/%3e%3cpath%20d='M185.417%2046.3142H181.202V57.5607H177.829V46.3142H173.614V43.4604H185.417V46.3142Z'%20fill='%235D5359'/%3e%3cpath%20d='M111.057%2062.5967V76.6973H107.853V70.9898H102.12V76.6973H98.9161V62.5967H102.12V68.1361H107.853V62.5967H111.057Z'%20fill='%235D5359'/%3e%3cpath%20d='M124.04%2069.815V62.5967H127.244V69.815C127.244%2073.6758%20125.389%2076.865%20121.005%2076.865C116.453%2076.865%20114.766%2073.5078%20114.766%2069.815V62.5967H117.97V69.815C117.97%2071.997%20118.813%2074.0115%20121.005%2074.0115C123.366%2074.0115%20124.04%2071.997%20124.04%2069.815Z'%20fill='%235D5359'/%3e%3cpath%20d='M138.036%2076.6973H131.122V62.5967H139.047C141.071%2062.5967%20142.251%2064.4433%20142.251%2066.2898C142.251%2067.6327%20141.576%2068.9755%20140.228%2069.4793C141.914%2069.9827%20142.926%2071.1578%20142.926%2073.1721C142.757%2075.5221%20140.733%2076.6973%20138.036%2076.6973ZM134.326%2065.4504V68.3041H137.53C138.204%2068.3041%20138.879%2067.8004%20138.879%2066.7933C138.879%2065.7861%20138.373%2065.2827%20137.698%2065.2827H134.326V65.4504ZM138.204%2070.8221H134.494V73.8435H138.204C139.047%2073.8435%20139.722%2073.1721%20139.722%2072.3327C139.553%2071.6613%20138.879%2070.8221%20138.204%2070.8221Z'%20fill='%235D5359'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M73.4753%2051.4994C78.7281%2050.5396%2082.8911%2046.4891%2083.9954%2041.3137L84.1232%2040.7134L83.9445%2040.1256C80.5804%2029.066%2071.9945%2020.2704%2061.0373%2016.5726C57.4%2015.3451%2053.5046%2014.6804%2049.458%2014.6804C45.4112%2014.6804%2041.5158%2015.3451%2037.8784%2016.5726C26.9214%2020.2704%2018.3354%2029.066%2014.9712%2040.1256L14.7924%2040.7134L14.9206%2041.3137C16.0247%2046.4891%2020.1875%2050.5396%2025.4405%2051.4994V58.8839H14.4183C14.6758%2059.9557%2014.9818%2061.0088%2015.3337%2062.0411C20.1553%2076.1811%2033.6083%2086.3619%2049.458%2086.3619C65.3074%2086.3619%2078.7606%2076.1811%2083.5822%2062.0411C83.9342%2061.0088%2084.2399%2059.9557%2084.4974%2058.8839H73.4753V51.4994ZM41.0517%2020.5973V38.5742C41.0517%2043.1931%2044.8155%2046.9371%2049.458%2046.9371C54.1005%2046.9371%2057.8641%2043.1931%2057.8641%2038.5742V20.5973C55.1919%2019.856%2052.3732%2019.4592%2049.458%2019.4592C46.5428%2019.4592%2043.7241%2019.856%2041.0517%2020.5973ZM62.6675%2022.3673V38.5742C62.6675%2043.1931%2066.431%2046.9371%2071.0735%2046.9371C74.9051%2046.9371%2078.1425%2044.3848%2079.1528%2040.8942C76.4672%2032.6902%2070.4379%2025.9824%2062.6675%2022.3673ZM60.2658%2046.1322C57.8753%2049.5094%2053.9255%2051.7159%2049.458%2051.7159C44.9902%2051.7159%2041.0408%2049.5094%2038.65%2046.1322C36.6982%2048.8894%2033.7074%2050.8662%2030.2439%2051.4994V58.8839H68.6718V51.4994C65.2083%2050.8662%2062.2175%2048.8894%2060.2658%2046.1322ZM21.1583%2063.6628C26.1349%2074.2514%2036.9382%2081.5834%2049.458%2081.5834C61.9776%2081.5834%2072.781%2074.2514%2077.7574%2063.6628H21.1583ZM36.2482%2038.5742V22.3673C28.4779%2025.9824%2022.4486%2032.6902%2019.7631%2040.8942C20.7733%2044.3848%2024.0106%2046.9371%2027.8422%2046.9371C32.4847%2046.9371%2036.2482%2043.1931%2036.2482%2038.5742Z'%20fill='%23FFC35D'/%3e%3c/svg%3e";
|
|
8
8
|
function J(h, y) {
|
|
9
9
|
return ne.filter(h, y).length > 0;
|
|
@@ -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-DDxzU9iC.js";
|
|
3
3
|
const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as m, j as F } from "./app-
|
|
1
|
+
import { n as m, j as F } from "./app-DDxzU9iC.js";
|
|
2
2
|
import { useCoreStore as v } from "@feedmepos/mf-common";
|
|
3
3
|
import { ref as h, defineComponent as y, resolveComponent as d, openBlock as _, createElementBlock as f, renderSlot as k, createVNode as p, withCtx as g } from "vue";
|
|
4
4
|
const l = m((e, t) => {
|
package/dist/{PurchaseOrderPrintPreview-UzrsJ0AN.js → PurchaseOrderPrintPreview-Uf0aO8n1.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as x, computed as f, ref as m, onMounted as g, openBlock as r, createElementBlock as o, createElementVNode as e, toDisplayString as t, normalizeStyle as w, createTextVNode as i, Fragment as u, createCommentVNode as h, renderList as _, normalizeClass as k, pushScopeId as S, popScopeId as C } from "vue";
|
|
2
2
|
import { useRoute as P } from "vue-router";
|
|
3
|
-
import { aa as v, i as R } from "./app-
|
|
3
|
+
import { aa as v, i as R } from "./app-DDxzU9iC.js";
|
|
4
4
|
const n = (a) => (S("data-v-54384fc1"), a = a(), C(), a), A = { class: "purchase-box" }, N = { valign: "bottom" }, E = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "title" }, "Inventory Receive Note", -1)), O = { class: "text-right" }, D = { class: "header" }, q = /* @__PURE__ */ n(() => /* @__PURE__ */ e("hr", null, null, -1)), I = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "header" }, "Supplier", -1)), T = { class: "sub-header" }, F = { class: "caption" }, L = { class: "address" }, U = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), V = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), z = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), B = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), H = { class: "text-right" }, M = /* @__PURE__ */ n(() => /* @__PURE__ */ e("div", { class: "header" }, "Delivery To", -1)), J = { class: "sub-header" }, Q = { class: "address" }, j = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), G = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), K = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), W = /* @__PURE__ */ n(() => /* @__PURE__ */ e("br", null, null, -1)), X = { class: "purchase-body" }, Y = /* @__PURE__ */ n(() => /* @__PURE__ */ e("thead", { class: "item-header" }, [
|
|
5
5
|
/* @__PURE__ */ e("tr", null, [
|
|
6
6
|
/* @__PURE__ */ e("th", {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as ie, ref as R, watch as L, computed as J, resolveComponent as ce, openBlock as b, createBlock as k, unref as e, withCtx as C, createElementVNode as u, createVNode as c, normalizeStyle as le, toDisplayString as ue, createElementBlock as me, createCommentVNode as de, Teleport as pe, mergeProps as Q } from "vue";
|
|
2
|
-
import { Y as h, j as fe, o as G, a as Z, G as ve, Z as _e, b as ye } from "./app-
|
|
3
|
-
import { i as W, _ as ge, a as De } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { u as be } from "./purchase-order-transaction-type-
|
|
5
|
-
import { u as he, _ as xe, g as Se } from "./TransferDetails.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { i as Re, e as ke } from "./id-to-date-
|
|
2
|
+
import { Y as h, j as fe, o as G, a as Z, G as ve, Z as _e, b as ye } from "./app-DDxzU9iC.js";
|
|
3
|
+
import { i as W, _ as ge, a as De } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-rDMoAXyd.js";
|
|
4
|
+
import { u as be } from "./purchase-order-transaction-type-D0c31GiL.js";
|
|
5
|
+
import { u as he, _ as xe, g as Se } from "./TransferDetails.vue_vue_type_script_setup_true_lang-8L6lwGpu.js";
|
|
6
|
+
import { i as Re, e as ke } from "./id-to-date-D1fU6Y7T.js";
|
|
7
7
|
import { useSnackbar as Ce, useBreakpoints as qe } from "@feedmepos/ui-library";
|
|
8
|
-
import { _ as we } from "./TransferDialog.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import { _ as Te, F as x, u as Fe } from "./layout-
|
|
8
|
+
import { _ as we } from "./TransferDialog.vue_vue_type_script_setup_true_lang-Bdby-n4P.js";
|
|
9
|
+
import { _ as Te, F as x, u as Fe } from "./layout-DcSLry7F.js";
|
|
10
10
|
import "./array-AvWd53LI.js";
|
|
11
11
|
import { useI18n as Oe } from "@feedmepos/mf-common";
|
|
12
12
|
const Ye = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, Ee = { class: "flex flex-col py-8" }, Me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, $e = {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as Y, ref as E, onMounted as se, resolveComponent as k, openBlock as x, createElementBlock as $, Fragment as le, createElementVNode as g, toDisplayString as re, createVNode as y, createCommentVNode as H, computed as V, watch as ie, createBlock as T, withCtx as A, unref as v, isRef as X, normalizeStyle as ce, Teleport as ue, normalizeProps as de, guardReactiveProps as me } from "vue";
|
|
2
|
-
import { u as I, c as G, S as pe, a as q, R as fe, U as ve, _ as ye, A as _e, e as Z, f as ge, j as be } from "./app-
|
|
2
|
+
import { u as I, c as G, S as pe, a as q, R as fe, U as ve, _ as ye, A as _e, e as Z, f as ge, j as be } from "./app-DDxzU9iC.js";
|
|
3
3
|
import { useDialog as he, useSnackbar as ne, useProxiedModel as ee, useBreakpoints as we } from "@feedmepos/ui-library";
|
|
4
4
|
import { i as Re, _ as xe } from "./is-linked-ingredient-error-C6AghEwR.js";
|
|
5
5
|
import { F as R, D as te, R as N } from "./row-action.enum-PMKMRrZR.js";
|
|
6
|
-
import { _ as ae, t as Ce, d as Ee } from "./xlsx.util-
|
|
6
|
+
import { _ as ae, t as Ce, d as Ee } from "./xlsx.util-CTIDgqw2.js";
|
|
7
7
|
import { defineStore as Fe, storeToRefs as ke } from "pinia";
|
|
8
|
-
import { c as Ve, _ as Se, F as oe, u as De } from "./layout-
|
|
8
|
+
import { c as Ve, _ as Se, F as oe, u as De } from "./layout-DcSLry7F.js";
|
|
9
9
|
import { useI18n as j } from "@feedmepos/mf-common";
|
|
10
|
-
import { _ as $e, a as Ae } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as $e, a as Ae } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-rDMoAXyd.js";
|
|
11
11
|
const Ie = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "flex flex-col items-center w-full h-full gap-24"
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { ref as R, defineComponent as re, computed as T, resolveComponent as D, openBlock as B, createBlock as O, withCtx as C, createElementVNode as n, normalizeClass as Ce, toDisplayString as b, createVNode as x, createElementBlock as L, Fragment as te, renderList as ae, unref as v, h as ye, watch as he, isRef as Ue, createCommentVNode as ee, reactive as it, onMounted as Je, normalizeStyle as Qe, createTextVNode as ve, Teleport as ut, normalizeProps as $e, mergeProps as we } from "vue";
|
|
2
|
-
import { i as ct, _ as dt, a as mt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { n as Xe, j as ue, o as pt, c as Pe, p as vt, u as Te, q as Oe, r as De, a as ie, k as ft, t as ge, m as Me, A as yt, M as _t, l as fe, s as kt, v as Z, w as ht, x as ze, R as gt, y as bt, z as xt, B as Ze, D as q, E as St, f as et, G as je, H as $t, d as Ye, b as wt, J as Bt, K as Ft, C as Be, L as At, N as Vt, O as Ct, P as Dt } from "./app-
|
|
2
|
+
import { i as ct, _ as dt, a as mt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-rDMoAXyd.js";
|
|
3
|
+
import { n as Xe, j as ue, o as pt, c as Pe, p as vt, u as Te, q as Oe, r as De, a as ie, k as ft, t as ge, m as Me, A as yt, M as _t, l as fe, s as kt, v as Z, w as ht, x as ze, R as gt, y as bt, z as xt, B as Ze, D as q, E as St, f as et, G as je, H as $t, d as Ye, b as wt, J as Bt, K as Ft, C as Be, L as At, N as Vt, O as Ct, P as Dt } from "./app-DDxzU9iC.js";
|
|
4
4
|
import { useCoreStore as tt, useI18n as le } from "@feedmepos/mf-common";
|
|
5
5
|
import { useSnackbar as de, useDialog as nt, useProxiedModel as Re, useBreakpoints as Mt } from "@feedmepos/ui-library";
|
|
6
|
-
import { c as jt, _ as It, F as Ke, u as Ut } from "./layout-
|
|
7
|
-
import { g as be } from "./decimal-
|
|
8
|
-
import { e as Pt, i as ot } from "./id-to-date-
|
|
6
|
+
import { c as jt, _ as It, F as Ke, u as Ut } from "./layout-DcSLry7F.js";
|
|
7
|
+
import { g as be } from "./decimal-DN0h6619.js";
|
|
8
|
+
import { e as Pt, i as ot } from "./id-to-date-D1fU6Y7T.js";
|
|
9
9
|
import { _ as Ie, S as Fe, g as st } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
|
|
10
10
|
import { _ as Tt } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
11
|
-
import { u as at, _ as Ge } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { u as at, _ as Ge } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-B_kVFkxk.js";
|
|
12
12
|
import { defineStore as Rt } from "pinia";
|
|
13
|
-
import { _ as
|
|
14
|
-
import { E as
|
|
13
|
+
import { _ as Ht } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-cw3SEkW_.js";
|
|
14
|
+
import { E as Et } from "./empty-placeholder-wf6-BWE8.js";
|
|
15
15
|
import "./array-AvWd53LI.js";
|
|
16
16
|
const Se = Xe((c, d) => {
|
|
17
17
|
const r = ue(), s = tt(), S = de();
|
|
@@ -72,7 +72,7 @@ function Lt() {
|
|
|
72
72
|
productBalance: []
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
const _e = R(Lt()),
|
|
75
|
+
const _e = R(Lt()), He = () => {
|
|
76
76
|
const c = Se();
|
|
77
77
|
return {
|
|
78
78
|
// state
|
|
@@ -101,20 +101,28 @@ var ke = /* @__PURE__ */ ((c) => (c.History = "History", c.Convert = "Convert",
|
|
|
101
101
|
const Nt = [
|
|
102
102
|
{
|
|
103
103
|
translationKey: "inventory.stock.action.history",
|
|
104
|
-
color: "text-neutral-700"
|
|
104
|
+
color: "text-neutral-700",
|
|
105
|
+
value: "History"
|
|
106
|
+
/* History */
|
|
105
107
|
}
|
|
106
108
|
], Ot = [
|
|
107
109
|
{
|
|
108
110
|
translationKey: "inventory.stock.action.history",
|
|
109
|
-
color: "text-neutral-700"
|
|
111
|
+
color: "text-neutral-700",
|
|
112
|
+
value: "History"
|
|
113
|
+
/* History */
|
|
110
114
|
},
|
|
111
115
|
{
|
|
112
116
|
translationKey: "inventory.stock.action.convert",
|
|
113
|
-
color: "text-neutral-700"
|
|
117
|
+
color: "text-neutral-700",
|
|
118
|
+
value: "Convert"
|
|
119
|
+
/* Convert */
|
|
114
120
|
},
|
|
115
121
|
{
|
|
116
122
|
translationKey: "inventory.stock.action.adjust",
|
|
117
|
-
color: "text-neutral-700"
|
|
123
|
+
color: "text-neutral-700",
|
|
124
|
+
value: "Adjust"
|
|
125
|
+
/* Adjust */
|
|
118
126
|
}
|
|
119
127
|
];
|
|
120
128
|
async function zt(c) {
|
|
@@ -256,7 +264,7 @@ const Yt = { class: "fm-typo-en-body-md-400 flex-grow" }, rt = /* @__PURE__ */ r
|
|
|
256
264
|
}));
|
|
257
265
|
}
|
|
258
266
|
}), lt = Rt("stockActions", () => {
|
|
259
|
-
const c = R(!1), d = ue(), r =
|
|
267
|
+
const c = R(!1), d = ue(), r = He(), s = at(), S = de(), l = nt(), { t: a } = le();
|
|
260
268
|
async function i() {
|
|
261
269
|
if (d._currentLocation) {
|
|
262
270
|
c.value = !0;
|
|
@@ -284,11 +292,11 @@ const Yt = { class: "fm-typo-en-body-md-400 flex-grow" }, rt = /* @__PURE__ */ r
|
|
|
284
292
|
return;
|
|
285
293
|
}
|
|
286
294
|
const $ = {
|
|
287
|
-
maxCount: ((I = r.productBalance.find(({ id:
|
|
295
|
+
maxCount: ((I = r.productBalance.find(({ id: E }) => E === p._id)) == null ? void 0 : I.count) || 0,
|
|
288
296
|
sku: p,
|
|
289
297
|
show: !0,
|
|
290
|
-
"onUpdate:show"(
|
|
291
|
-
h.value.show =
|
|
298
|
+
"onUpdate:show"(E) {
|
|
299
|
+
h.value.show = E;
|
|
292
300
|
},
|
|
293
301
|
onSubmitted() {
|
|
294
302
|
i();
|
|
@@ -301,8 +309,8 @@ const Yt = { class: "fm-typo-en-body-md-400 flex-grow" }, rt = /* @__PURE__ */ r
|
|
|
301
309
|
const M = {
|
|
302
310
|
stock: p,
|
|
303
311
|
show: !0,
|
|
304
|
-
"onUpdate:show"(
|
|
305
|
-
u.value.show =
|
|
312
|
+
"onUpdate:show"(H) {
|
|
313
|
+
u.value.show = H;
|
|
306
314
|
},
|
|
307
315
|
onSubmitted() {
|
|
308
316
|
i();
|
|
@@ -315,23 +323,23 @@ const Yt = { class: "fm-typo-en-body-md-400 flex-grow" }, rt = /* @__PURE__ */ r
|
|
|
315
323
|
const M = {
|
|
316
324
|
sku: p,
|
|
317
325
|
show: !0,
|
|
318
|
-
"onUpdate:show"(
|
|
319
|
-
w.value.show =
|
|
326
|
+
"onUpdate:show"(H) {
|
|
327
|
+
w.value.show = H;
|
|
320
328
|
}
|
|
321
329
|
};
|
|
322
330
|
w.value = M;
|
|
323
331
|
}
|
|
324
332
|
function g(p, M) {
|
|
325
|
-
const
|
|
333
|
+
const H = Pe(M);
|
|
326
334
|
switch (p) {
|
|
327
335
|
case ke.History:
|
|
328
|
-
A(
|
|
336
|
+
A(H);
|
|
329
337
|
return;
|
|
330
338
|
case ke.Convert:
|
|
331
|
-
k(
|
|
339
|
+
k(H);
|
|
332
340
|
return;
|
|
333
341
|
case ke.Adjust:
|
|
334
|
-
o(
|
|
342
|
+
o(H);
|
|
335
343
|
return;
|
|
336
344
|
}
|
|
337
345
|
}
|
|
@@ -481,7 +489,7 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
|
|
|
481
489
|
function M() {
|
|
482
490
|
W(s.sku, ge(u.value), o.value);
|
|
483
491
|
}
|
|
484
|
-
function
|
|
492
|
+
function H(e) {
|
|
485
493
|
if (o.value)
|
|
486
494
|
return !0;
|
|
487
495
|
const t = qe(e).isInteger().max(s.maxCount ?? 0).error ?? "";
|
|
@@ -507,7 +515,7 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
|
|
|
507
515
|
var f, m, _;
|
|
508
516
|
const e = (m = (f = s.sku.convert) == null ? void 0 : f.inventoryBindings) == null ? void 0 : m.filter((y) => y.type === "SKU");
|
|
509
517
|
return (_ = o.value ?? e) == null ? void 0 : _.map((y) => {
|
|
510
|
-
var X, G, se,
|
|
518
|
+
var X, G, se, Ee, Le;
|
|
511
519
|
const V = a.skus.find((pe) => pe._id === y.id), K = ((X = y.measurement) == null ? void 0 : X.abbrev) ?? ((G = V == null ? void 0 : V.unit) == null ? void 0 : G.abbrev), Q = (se = s.sku.convert) != null && se.measurement ? s.sku.unit.measurements.find((pe) => {
|
|
512
520
|
var Ne;
|
|
513
521
|
return pe.id === ((Ne = s.sku.convert) == null ? void 0 : Ne.measurement);
|
|
@@ -517,7 +525,7 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
|
|
|
517
525
|
ge(+u.value, me)
|
|
518
526
|
),
|
|
519
527
|
!1
|
|
520
|
-
) : "0", Y = (Le = (
|
|
528
|
+
) : "0", Y = (Le = (Ee = o.value) == null ? void 0 : Ee.find((pe) => pe.id === (V == null ? void 0 : V._id))) == null ? void 0 : Le.amount, J = Y ? ie(Y, !1) : null;
|
|
521
529
|
return {
|
|
522
530
|
sku: V,
|
|
523
531
|
convertAmount: J ?? U,
|
|
@@ -539,7 +547,7 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
|
|
|
539
547
|
(t = (e = I.value) == null ? void 0 : e.resetInputs) == null || t.call(e);
|
|
540
548
|
}
|
|
541
549
|
});
|
|
542
|
-
const
|
|
550
|
+
const E = Re(s, "show");
|
|
543
551
|
async function W(e, t, f) {
|
|
544
552
|
p.value = !0;
|
|
545
553
|
try {
|
|
@@ -622,8 +630,8 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
|
|
|
622
630
|
const f = D("FmTextField"), m = D("FmForm"), _ = D("FmCard"), y = D("FmSwitch"), V = D("FmFormGroup"), K = D("FmSelect"), Q = D("FmButton"), me = D("FmSideSheet");
|
|
623
631
|
return B(), O(me, {
|
|
624
632
|
"dismiss-away": "",
|
|
625
|
-
modelValue: v(
|
|
626
|
-
"onUpdate:modelValue": t[3] || (t[3] = (U) => Ue(
|
|
633
|
+
modelValue: v(E),
|
|
634
|
+
"onUpdate:modelValue": t[3] || (t[3] = (U) => Ue(E) ? E.value = U : null),
|
|
627
635
|
"max-width": 500
|
|
628
636
|
}, {
|
|
629
637
|
"side-sheet-header": C(() => [
|
|
@@ -644,7 +652,7 @@ const Jt = { class: "flex items-center" }, Qt = { class: "fm-typo-en-title-md-80
|
|
|
644
652
|
"model-value": u.value,
|
|
645
653
|
"onUpdate:modelValue": t[0] || (t[0] = (U) => u.value = U),
|
|
646
654
|
label: v(k)("inventory.stock.convert.amount"),
|
|
647
|
-
rules: [
|
|
655
|
+
rules: [H, $, v(Me)(0)],
|
|
648
656
|
"append-text": F.value,
|
|
649
657
|
"helper-text": o.value ? void 0 : `Max ${e.maxCount} ${F.value}`
|
|
650
658
|
}, null, 8, ["disabled", "model-value", "label", "rules", "append-text", "helper-text"])
|
|
@@ -889,7 +897,7 @@ const Ve = {
|
|
|
889
897
|
rules: [v(gt)()],
|
|
890
898
|
"label-mark": "required"
|
|
891
899
|
}, null, 8, ["disabled", "items", "modelValue", "rules"]),
|
|
892
|
-
x(
|
|
900
|
+
x(Ht, {
|
|
893
901
|
disabled: u.disabled,
|
|
894
902
|
label: "Amount",
|
|
895
903
|
step: +v(ie)({
|
|
@@ -977,9 +985,9 @@ const Ve = {
|
|
|
977
985
|
try {
|
|
978
986
|
await i.adjustSku({
|
|
979
987
|
remark: $.remark,
|
|
980
|
-
adjustments: $.adjustments.map(({ doc: F, remark: j, type: I, amount:
|
|
988
|
+
adjustments: $.adjustments.map(({ doc: F, remark: j, type: I, amount: E, measurement: W }) => ({
|
|
981
989
|
id: F._id,
|
|
982
|
-
amount:
|
|
990
|
+
amount: E,
|
|
983
991
|
measurement: W,
|
|
984
992
|
remark: j,
|
|
985
993
|
doc: F,
|
|
@@ -1023,10 +1031,10 @@ const Ve = {
|
|
|
1023
1031
|
}
|
|
1024
1032
|
}).onPrimary((j) => {
|
|
1025
1033
|
g.adjustments = j.map(
|
|
1026
|
-
(I) => g.adjustments.find((
|
|
1034
|
+
(I) => g.adjustments.find((E) => E.doc._id === I) ?? {
|
|
1027
1035
|
id: `sku_${(/* @__PURE__ */ new Date()).toISOString()}_${Math.random().toString(16).slice(2, 8)}`,
|
|
1028
1036
|
type: Z.enum.PURCHASE,
|
|
1029
|
-
doc: l.skus.find((
|
|
1037
|
+
doc: l.skus.find((E) => E._id === I),
|
|
1030
1038
|
measurement: null,
|
|
1031
1039
|
remark: "",
|
|
1032
1040
|
amount: fe(1)
|
|
@@ -1034,11 +1042,11 @@ const Ve = {
|
|
|
1034
1042
|
);
|
|
1035
1043
|
});
|
|
1036
1044
|
}
|
|
1037
|
-
function
|
|
1045
|
+
function H($) {
|
|
1038
1046
|
g.adjustments.splice($, 1);
|
|
1039
1047
|
}
|
|
1040
1048
|
return ($, F) => {
|
|
1041
|
-
const j = D("FmTextarea"), I = D("FmButton"),
|
|
1049
|
+
const j = D("FmTextarea"), I = D("FmButton"), E = D("FmForm"), W = D("FmSideSheet");
|
|
1042
1050
|
return B(), O(W, {
|
|
1043
1051
|
modelValue: v(A),
|
|
1044
1052
|
"onUpdate:modelValue": F[2] || (F[2] = (z) => Ue(A) ? A.value = z : null),
|
|
@@ -1051,7 +1059,7 @@ const Ve = {
|
|
|
1051
1059
|
])
|
|
1052
1060
|
]),
|
|
1053
1061
|
default: C(() => [
|
|
1054
|
-
x(
|
|
1062
|
+
x(E, {
|
|
1055
1063
|
class: "w-full flex flex-col gap-12",
|
|
1056
1064
|
ref_key: "formRef",
|
|
1057
1065
|
ref: w,
|
|
@@ -1076,7 +1084,7 @@ const Ve = {
|
|
|
1076
1084
|
key: z.id,
|
|
1077
1085
|
modelValue: g.adjustments[P],
|
|
1078
1086
|
"onUpdate:modelValue": (N) => g.adjustments[P] = N,
|
|
1079
|
-
"onClick:delete": (N) =>
|
|
1087
|
+
"onClick:delete": (N) => H(P)
|
|
1080
1088
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onClick:delete"]))), 128))
|
|
1081
1089
|
]),
|
|
1082
1090
|
_: 1
|
|
@@ -1141,16 +1149,16 @@ const Ve = {
|
|
|
1141
1149
|
var g;
|
|
1142
1150
|
const k = d.record.adjustments, u = d.sku, o = {}, A = k.flatMap((p) => {
|
|
1143
1151
|
var M;
|
|
1144
|
-
return ((M = p.skus) == null ? void 0 : M.filter((
|
|
1152
|
+
return ((M = p.skus) == null ? void 0 : M.filter((H) => H.sku._id === u._id)) ?? [];
|
|
1145
1153
|
}).flatMap((p) => p.amounts);
|
|
1146
1154
|
for (const p of A) {
|
|
1147
1155
|
const M = p.measurement ? xt(p.measurement.conversion, p.amount) : p.amount;
|
|
1148
1156
|
o[g = p.type] ?? (o[g] = { amount: 0, precision: 0 }), o[p.type] = Ze(M, o[p.type]);
|
|
1149
1157
|
}
|
|
1150
1158
|
return Object.entries(o).reduce(
|
|
1151
|
-
(p, [M,
|
|
1159
|
+
(p, [M, H]) => (p[M] = /// comment, because without it formatter makes code uglier
|
|
1152
1160
|
`${q.toFormatString({
|
|
1153
|
-
value:
|
|
1161
|
+
value: H,
|
|
1154
1162
|
precision: 4
|
|
1155
1163
|
})} ${u.unit.abbrev}`, p),
|
|
1156
1164
|
{}
|
|
@@ -1332,10 +1340,10 @@ function jn(c, d) {
|
|
|
1332
1340
|
precision: 4
|
|
1333
1341
|
})} ${d.unit.abbrev}`) : null;
|
|
1334
1342
|
}
|
|
1335
|
-
const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = { class: "flex-1 line-clamp-2" }, Pn = { class: "flex flex-col gap-32 w-full h-full" }, Tn = { class: "flex items-center relative gap-4" }, Rn = { class: "flex-1" },
|
|
1343
|
+
const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = { class: "flex-1 line-clamp-2" }, Pn = { class: "flex flex-col gap-32 w-full h-full" }, Tn = { class: "flex items-center relative gap-4" }, Rn = { class: "flex-1" }, Hn = {
|
|
1336
1344
|
key: 0,
|
|
1337
1345
|
class: "flex-1 flex flex-col items-center gap-16"
|
|
1338
|
-
},
|
|
1346
|
+
}, En = { class: "fm-typo-en-body-lg-400 translate-x-4" }, Ln = {
|
|
1339
1347
|
key: 1,
|
|
1340
1348
|
class: "flex flex-col gap-12"
|
|
1341
1349
|
}, Nn = { class: "pb-16" }, On = { class: "fm-typo-cn-body-lg-600" }, zn = {
|
|
@@ -1355,7 +1363,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
|
|
|
1355
1363
|
},
|
|
1356
1364
|
emits: ["update:show"],
|
|
1357
1365
|
setup(c) {
|
|
1358
|
-
const d = tt(), r =
|
|
1366
|
+
const d = tt(), r = He(), s = Se(), S = gn(), l = ue(), a = wt(), { t: i } = le(), h = c, k = R(!1), u = de(), o = R(ct(0));
|
|
1359
1367
|
async function w() {
|
|
1360
1368
|
k.value = !0;
|
|
1361
1369
|
try {
|
|
@@ -1379,7 +1387,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
|
|
|
1379
1387
|
function M(e, t) {
|
|
1380
1388
|
return t === "day" ? Ct(e) : et(e);
|
|
1381
1389
|
}
|
|
1382
|
-
function
|
|
1390
|
+
function H(e, t) {
|
|
1383
1391
|
const f = e.reduce(
|
|
1384
1392
|
(m, _) => {
|
|
1385
1393
|
const y = _.effectiveAt ?? ot(_._id);
|
|
@@ -1403,10 +1411,10 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
|
|
|
1403
1411
|
);
|
|
1404
1412
|
A.value = e;
|
|
1405
1413
|
const t = e.filter(({ ref: f }) => f == null ? void 0 : f.startsWith("bill_")).map(({ ref: f }) => f);
|
|
1406
|
-
await F(t), g.value =
|
|
1414
|
+
await F(t), g.value = H(e, "day").map(({ date: f, adjustments: m }) => ({
|
|
1407
1415
|
date: f,
|
|
1408
1416
|
adjustments: m,
|
|
1409
|
-
adjustmentsByTime:
|
|
1417
|
+
adjustmentsByTime: H(m, "minute")
|
|
1410
1418
|
}));
|
|
1411
1419
|
}
|
|
1412
1420
|
async function F(e) {
|
|
@@ -1423,7 +1431,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
|
|
|
1423
1431
|
}), I = T(() => {
|
|
1424
1432
|
const e = A.value, t = h.sku;
|
|
1425
1433
|
return jn(e, t);
|
|
1426
|
-
}),
|
|
1434
|
+
}), E = T(() => {
|
|
1427
1435
|
const e = [...A.value].computeFirst((f) => {
|
|
1428
1436
|
var _, y;
|
|
1429
1437
|
const m = (y = (_ = f.skus) == null ? void 0 : _.find) == null ? void 0 : y.call(_, (V) => V.sku._id === h.sku._id);
|
|
@@ -1573,10 +1581,10 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
|
|
|
1573
1581
|
"prepend-icon": "navigate_next"
|
|
1574
1582
|
})
|
|
1575
1583
|
]),
|
|
1576
|
-
k.value ? (B(), L("div",
|
|
1584
|
+
k.value ? (B(), L("div", Hn, [
|
|
1577
1585
|
x(y),
|
|
1578
1586
|
x(V, { size: "xl" }),
|
|
1579
|
-
n("div",
|
|
1587
|
+
n("div", En, b(v(i)("inventory.stock.history.loading")), 1),
|
|
1580
1588
|
x(y),
|
|
1581
1589
|
x(y)
|
|
1582
1590
|
])) : g.value && ((X = g.value) == null ? void 0 : X.length) > 0 ? (B(), L("div", Ln, [
|
|
@@ -1635,7 +1643,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
|
|
|
1635
1643
|
]),
|
|
1636
1644
|
n("div", po, [
|
|
1637
1645
|
n("div", vo, b(v(i)("inventory.stock.history.summary.openingBalance")), 1),
|
|
1638
|
-
n("div", fo, b(
|
|
1646
|
+
n("div", fo, b(E.value), 1)
|
|
1639
1647
|
]),
|
|
1640
1648
|
n("div", yo, [
|
|
1641
1649
|
n("div", _o, b(v(i)("inventory.stock.history.summary.lastStockBalance")), 1),
|
|
@@ -1720,7 +1728,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
|
|
|
1720
1728
|
x(y),
|
|
1721
1729
|
n("div", null, [
|
|
1722
1730
|
n("img", {
|
|
1723
|
-
src: v(
|
|
1731
|
+
src: v(Et),
|
|
1724
1732
|
alt: "List is empty"
|
|
1725
1733
|
}, null, 8, Co)
|
|
1726
1734
|
]),
|
|
@@ -1739,7 +1747,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
|
|
|
1739
1747
|
}), Io = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 h-full" }, Uo = { class: "flex flex-col gap-8" }, Po = { class: "flex flex-col" }, To = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ro = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, es = /* @__PURE__ */ re({
|
|
1740
1748
|
__name: "StockView",
|
|
1741
1749
|
setup(c) {
|
|
1742
|
-
const { t: d } = le(), r = Te(), s = ue(), S =
|
|
1750
|
+
const { t: d } = le(), r = Te(), s = ue(), S = He(), l = lt(), a = at(), { columnDefs: i } = qt();
|
|
1743
1751
|
s.watchLocation(u);
|
|
1744
1752
|
const h = R(!1), k = de();
|
|
1745
1753
|
async function u() {
|
|
@@ -1782,7 +1790,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
|
|
|
1782
1790
|
var $;
|
|
1783
1791
|
return (($ = s._currentLocation) == null ? void 0 : $.type) === Dt.restaurant;
|
|
1784
1792
|
}
|
|
1785
|
-
),
|
|
1793
|
+
), H = T(() => {
|
|
1786
1794
|
const $ = [
|
|
1787
1795
|
{ icon: "ios_share", onClick: () => zt(o.value) }
|
|
1788
1796
|
];
|
|
@@ -1794,7 +1802,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
|
|
|
1794
1802
|
title: v(d)("inventory.stock.title")
|
|
1795
1803
|
}, {
|
|
1796
1804
|
default: C(() => {
|
|
1797
|
-
var I,
|
|
1805
|
+
var I, E, W, z;
|
|
1798
1806
|
return [
|
|
1799
1807
|
n("div", Io, [
|
|
1800
1808
|
x(mt, {
|
|
@@ -1802,7 +1810,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
|
|
|
1802
1810
|
"change-location": "",
|
|
1803
1811
|
search: w.value,
|
|
1804
1812
|
"onUpdate:search": F[0] || (F[0] = (P) => w.value = P),
|
|
1805
|
-
actions:
|
|
1813
|
+
actions: H.value
|
|
1806
1814
|
}, null, 8, ["search", "actions"]),
|
|
1807
1815
|
(B(), O(j, {
|
|
1808
1816
|
style: Qe(v(p).tableHeight),
|
|
@@ -1861,7 +1869,7 @@ const In = { class: "flex items-center w-full fm-typo-en-title-md-800" }, Un = {
|
|
|
1861
1869
|
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"]))
|
|
1862
1870
|
]),
|
|
1863
1871
|
(B(), O(ut, { to: "body" }, [
|
|
1864
|
-
(
|
|
1872
|
+
(E = v(l).stockHistoryProps) != null && E.sku ? (B(), O(jo, $e(we({ key: 0 }, v(l).stockHistoryProps)), null, 16)) : ee("", !0),
|
|
1865
1873
|
(W = v(l).convertSkuDialogProps) != null && W.sku ? (B(), O(cn, $e(we({ key: 1 }, v(l).convertSkuDialogProps)), null, 16)) : ee("", !0),
|
|
1866
1874
|
(z = v(l).adjustSkuDialogProps) != null && z.stock ? (B(), O(hn, $e(we({ key: 2 }, v(l).adjustSkuDialogProps)), null, 16)) : ee("", !0)
|
|
1867
1875
|
]))
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as O, mergeModels as ge, computed as S, useModel as _e, resolveComponent as N, openBlock as $, createElementBlock as E, createElementVNode as d, createVNode as v, withCtx as R, toDisplayString as F, unref as l, Fragment as he, renderList as Se, ref as P, createBlock as T, createCommentVNode as ve, isRef as ie, normalizeStyle as xe, Teleport as ke } from "vue";
|
|
2
|
-
import { u as fe } from "./supplier-
|
|
2
|
+
import { u as fe } from "./supplier-CQXRbSC3.js";
|
|
3
3
|
import { D as me, R as j, F as I } from "./row-action.enum-PMKMRrZR.js";
|
|
4
|
-
import { c as we, _ as Ce, F as G, u as Ie } from "./layout-
|
|
5
|
-
import { c as Q, u as ye, $ as Me, d as pe, g as $e, y as Ae, C as J, h as Ue, R as A, b as De, j as Re } from "./app-
|
|
4
|
+
import { c as we, _ as Ce, F as G, u as Ie } from "./layout-DcSLry7F.js";
|
|
5
|
+
import { c as Q, u as ye, $ as Me, d as pe, g as $e, y as Ae, C as J, h as Ue, R as A, b as De, j as Re } from "./app-DDxzU9iC.js";
|
|
6
6
|
import { useI18n as B, useCoreStore as Fe } from "@feedmepos/mf-common";
|
|
7
7
|
import { useDialog as be, useSnackbar as Ve, useProxiedModel as ce, useBreakpoints as Ne } from "@feedmepos/ui-library";
|
|
8
|
-
import { _ as Pe, a as Ee } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as Pe, a as Ee } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-rDMoAXyd.js";
|
|
9
9
|
import { _ as Te } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
10
10
|
function Be(U, C) {
|
|
11
11
|
const { t: _ } = B();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as le, f as ae, P as Z, b as xe, d as De } from "./purchase-order-transaction-type-
|
|
1
|
+
import { a as le, f as ae, P as Z, b as xe, d as De } from "./purchase-order-transaction-type-D0c31GiL.js";
|
|
2
2
|
import { computed as re, h as be, defineComponent as Se, ref as ee, resolveComponent as K, openBlock as d, createBlock as P, unref as s, isRef as Ce, withCtx as te, createElementVNode as e, createVNode as I, createElementBlock as h, Fragment as X, toDisplayString as l, normalizeClass as se, createCommentVNode as f, renderList as oe } from "vue";
|
|
3
|
-
import { c as ge } from "./layout-
|
|
3
|
+
import { c as ge } from "./layout-DcSLry7F.js";
|
|
4
4
|
import { D as g, R as v } from "./row-action.enum-PMKMRrZR.js";
|
|
5
|
-
import { B as Re, l as ie, a as ce, a4 as ue, ad as b, c as Ae, j as Ee, aa as q, H as Pe, G as Te, E as Ne, b as Fe, w as je } from "./app-
|
|
6
|
-
import { F as Ie } from "./decimal-
|
|
5
|
+
import { B as Re, l as ie, a as ce, a4 as ue, ad as b, c as Ae, j as Ee, aa as q, H as Pe, G as Te, E as Ne, b as Fe, w as je } from "./app-DDxzU9iC.js";
|
|
6
|
+
import { F as Ie } from "./decimal-DN0h6619.js";
|
|
7
7
|
import { components as _e, useDialog as Ue, useSnackbar as Me, useProxiedModel as $e } from "@feedmepos/ui-library";
|
|
8
8
|
import { useI18n as Oe } from "@feedmepos/mf-common";
|
|
9
9
|
import { E as Ke } from "./empty-placeholder-wf6-BWE8.js";
|