@feedmepos/mf-inventory-portal 0.0.19-dev.4 → 0.0.19-dev.5
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-CT8w22Ga.js → ApprovalView-DY_a4R25.js} +16 -15
- package/dist/{BindingsDialog-CrB5aA3X.js → BindingsDialog-GITQp9DQ.js} +1 -1
- package/dist/{BindingsPicker-jBTfZ4vJ.js → BindingsPicker-CmS01WWD.js} +5 -5
- package/dist/{BindingsTable-DaZ3Vxpn.js → BindingsTable-CsMAutCO.js} +1 -1
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BWFoHqPU.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BstbCK2r.js} +1 -1
- package/dist/{IngredientsView-DOoXPJop.js → IngredientsView-BM218iE0.js} +26 -25
- package/dist/{IntegrationView-BX1nvP-k.js → IntegrationView-DrPzZ7YF.js} +2 -2
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CFConGe4.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BtY633D-.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-DBPQovO2.js +88 -0
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js +29 -0
- package/dist/{PurchaseOrderPrintPreview-DSXXSlof.js → PurchaseOrderPrintPreview-s_pZiI6a.js} +11 -11
- package/dist/ReceiveRequestView-De2UMTFi.js +208 -0
- package/dist/{RecipeView-DtoX2e_9.js → RecipeView-CXH_9Jbb.js} +117 -116
- package/dist/{StockView-DTnY8LfO.js → StockView-Cld0Ss_r.js} +17 -16
- package/dist/{SupplierView-CzWM2tH4.js → SupplierView-DtaCFERj.js} +6 -6
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-kgcXwT9t.js +745 -0
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-C1YU60Mq.js +1269 -0
- package/dist/TransferTemplateView-BSmhw7Vl.js +1130 -0
- package/dist/{UnitView-Bk-OLoW2.js → UnitView-BS9sJznU.js} +33 -33
- package/dist/{WarehouseView-C3F_YWO-.js → WarehouseView-D0xCjihu.js} +4 -4
- package/dist/api/purchase-order-template.d.ts +7 -0
- package/dist/{app-YOcJA0qj.js → app-Bq5a4Oca.js} +6097 -5889
- package/dist/app.d.ts +38 -0
- package/dist/app.js +5 -4
- package/dist/components/FmUnitInputProps.d.ts +2 -0
- package/dist/components/FmUnitInputRules.d.ts +1 -0
- package/dist/components/row-action.enum.d.ts +2 -0
- package/dist/composable/defineDeepModel.d.ts +2 -0
- package/dist/{decimal-Cr-8e35u.js → decimal-Bk4WDsfO.js} +1 -1
- package/dist/helper/country.d.ts +2 -0
- package/dist/id-to-date-DOITPfk-.js +30 -0
- package/dist/layout-Dkdyeqv8.js +147 -0
- package/dist/purchase-order-transaction-type-std52lFO.js +295 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/row-action.enum-7jVyol1k.js +36 -0
- package/dist/stores/supplier.d.ts +90 -7
- package/dist/style.css +1 -1
- package/dist/supplier-B1qyquXV.js +54 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +2 -0
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingSummary.vue.d.ts +26 -0
- package/dist/views/ingredients/helper/calculate-default-cost.d.ts +9 -0
- package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +2 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +3 -1
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +6 -0
- package/dist/views/transfer-template/TransferTemplateView.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +22 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialogProps.d.ts +10 -0
- package/dist/views/transfer-template/components/transfer-template-form/TransferTemplateForm.vue.d.ts +16 -0
- package/dist/views/transfer-template/components/transfer-template-form/TransferTemplateFormProps.d.ts +7 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItem.vue.d.ts +18 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +116 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +112 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +470 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +289 -0
- package/dist/{xlsx-CUjMCYbh.js → xlsx-Bx1vSwYW.js} +1 -1
- package/dist/{xlsx.util-ByRzckFP.js → xlsx.util-DsOslDqG.js} +2 -2
- package/package.json +4 -4
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-BvadeWUz.js +0 -35
- package/dist/ReceiveRequestView-5nXXoRL_.js +0 -1394
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DIc2G2jF.js +0 -1031
- package/dist/id-to-date-9OvJMyEX.js +0 -121
- package/dist/layout-DCDPTIlR.js +0 -151
- package/dist/row-action.enum-BwQbURNh.js +0 -28
- package/dist/supplier-Bos9ifGc.js +0 -65
|
@@ -1,11 +1,12 @@
|
|
|
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 {
|
|
3
|
-
import { b as ce, _ as pe, a as ue } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { Y as f, O as U, j as ie } from "./app-Bq5a4Oca.js";
|
|
3
|
+
import { b as ce, _ as pe, a as ue } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BstbCK2r.js";
|
|
4
|
+
import { u as me } from "./purchase-order-transaction-type-std52lFO.js";
|
|
5
|
+
import { u as de, _ as fe } from "./TransferDetails.vue_vue_type_script_setup_true_lang-kgcXwT9t.js";
|
|
6
|
+
import { _ as _e, F as _, u as ve } from "./layout-Dkdyeqv8.js";
|
|
6
7
|
import { useBreakpoints as he } from "@feedmepos/ui-library";
|
|
7
8
|
import { useI18n as De } from "@feedmepos/mf-common";
|
|
8
|
-
const ge = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" },
|
|
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 = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
11
12
|
}, Re = { class: "pt-8" }, Ve = /* @__PURE__ */ B({
|
|
@@ -17,12 +18,12 @@ const ge = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, be =
|
|
|
17
18
|
start: f.date().optional().nullable(),
|
|
18
19
|
end: f.date().optional().nullable()
|
|
19
20
|
});
|
|
20
|
-
const
|
|
21
|
+
const x = h({
|
|
21
22
|
name: "",
|
|
22
23
|
...ce()
|
|
23
24
|
}), a = h({
|
|
24
|
-
startDate: U(
|
|
25
|
-
endDate: U(
|
|
25
|
+
startDate: U(x.value.start ?? /* @__PURE__ */ new Date()),
|
|
26
|
+
endDate: U(x.value.end ?? /* @__PURE__ */ new Date())
|
|
26
27
|
});
|
|
27
28
|
I([() => a.value.startDate], () => {
|
|
28
29
|
if (!a.value.startDate)
|
|
@@ -37,7 +38,7 @@ const ge = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, be =
|
|
|
37
38
|
return;
|
|
38
39
|
}
|
|
39
40
|
});
|
|
40
|
-
const v = h(""), { breakpoints:
|
|
41
|
+
const v = h(""), { breakpoints: b } = he(), K = ee(() => b.value.xs || b.value.sm ? 10 : 20), Q = ve(), { t: W } = De();
|
|
41
42
|
return (y, l) => {
|
|
42
43
|
const X = te("FmTable");
|
|
43
44
|
return D(), H(pe, {
|
|
@@ -67,10 +68,10 @@ const ge = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, be =
|
|
|
67
68
|
onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
|
|
68
69
|
}, {
|
|
69
70
|
default: g((t) => {
|
|
70
|
-
var w, O, R, i, k, S, T, C, c, F,
|
|
71
|
+
var w, O, R, i, k, S, T, C, c, F, Y, p, $, u, z, M, V, j, q, m, L, N, E, P, d, A;
|
|
71
72
|
return [
|
|
72
|
-
s("div",
|
|
73
|
-
s("div",
|
|
73
|
+
s("div", xe, [
|
|
74
|
+
s("div", be, [
|
|
74
75
|
n(e(_), {
|
|
75
76
|
render: (R = (O = (w = t.purchaseOrder__id) == null ? void 0 : w.column) == null ? void 0 : O.columnDef) == null ? void 0 : R.cell,
|
|
76
77
|
props: (k = (i = t.purchaseOrder__id) == null ? void 0 : i.getContext) == null ? void 0 : k.call(i)
|
|
@@ -82,10 +83,10 @@ const ge = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, be =
|
|
|
82
83
|
props: (F = (c = t.to_name) == null ? void 0 : c.getContext) == null ? void 0 : F.call(c)
|
|
83
84
|
}, null, 8, ["render", "props"])
|
|
84
85
|
]),
|
|
85
|
-
s("div", we, oe((
|
|
86
|
-
(
|
|
86
|
+
s("div", we, oe((z = (u = ($ = (p = (Y = r.original.purchaseOrder) == null ? void 0 : Y.items) == null ? void 0 : p.map) == null ? void 0 : $.call(p, (Z) => `${Z.name}`)) == null ? void 0 : u.join) == null ? void 0 : z.call(u, ", ")), 1),
|
|
87
|
+
(M = r.original.purchaseOrder) != null && M.ref ? (D(), re("div", Oe, [
|
|
87
88
|
n(e(_), {
|
|
88
|
-
render: (q = (j = (
|
|
89
|
+
render: (q = (j = (V = t.purchaseOrder_ref) == null ? void 0 : V.column) == null ? void 0 : j.columnDef) == null ? void 0 : q.cell,
|
|
89
90
|
props: (L = (m = t.purchaseOrder_ref) == null ? void 0 : m.getContext) == null ? void 0 : L.call(m)
|
|
90
91
|
}, null, 8, ["render", "props"])
|
|
91
92
|
])) : ne("", !0),
|
|
@@ -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,
|
|
2
|
+
import { u as V, ak as L, _ as S } from "./app-Bq5a4Oca.js";
|
|
3
3
|
const U = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex justify-end gap-8 items-center"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as
|
|
2
|
-
import { u as x,
|
|
1
|
+
import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as k, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as E } from "vue";
|
|
2
|
+
import { u as x, ak as M, y as h } from "./app-Bq5a4Oca.js";
|
|
3
3
|
const z = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex flex-col gap-16"
|
|
6
6
|
}, K = { class: "flex justify-end gap-8 items-center" }, w = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "p-24 flex items-center justify-center gap-16"
|
|
9
|
-
}, F = /* @__PURE__ */
|
|
9
|
+
}, F = /* @__PURE__ */ E("div", null, "Loading bindings dialog...", -1), A = /* @__PURE__ */ S({
|
|
10
10
|
__name: "BindingsPicker",
|
|
11
11
|
setup(L) {
|
|
12
12
|
const d = x(), C = r(() => d.recipes), I = r(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = r(() => a.value === "SKU" ? I.value.map((s) => ({
|
|
@@ -87,7 +87,7 @@ const z = {
|
|
|
87
87
|
var e, s;
|
|
88
88
|
(s = (e = b.value) == null ? void 0 : e.removeEventListener) == null || s.call(e);
|
|
89
89
|
}), (e, s) => {
|
|
90
|
-
const n =
|
|
90
|
+
const n = k("FmButton"), t = k("FmCircularProgress");
|
|
91
91
|
return p(), f("div", {
|
|
92
92
|
class: "bg-white",
|
|
93
93
|
ref_key: "resizeableRef",
|
|
@@ -102,7 +102,7 @@ const z = {
|
|
|
102
102
|
"onUpdate:modelValue": s[0] || (s[0] = (m) => _.value = m),
|
|
103
103
|
items: c.value
|
|
104
104
|
}, null, 8, ["model-value", "items"]),
|
|
105
|
-
|
|
105
|
+
E("div", K, [
|
|
106
106
|
u(n, {
|
|
107
107
|
variant: "tertiary",
|
|
108
108
|
label: "Close",
|
|
@@ -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,
|
|
2
|
+
import { q as _, u as E, ak as L } from "./app-Bq5a4Oca.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-Bq5a4Oca.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,18 +1,18 @@
|
|
|
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 Ge, g as
|
|
3
|
-
import { useDialog as Ke, useSnackbar as
|
|
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-Bq5a4Oca.js";
|
|
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
|
-
import { F as K, D as Be, R as he } from "./row-action.enum-
|
|
5
|
+
import { F as K, D as Be, R as he } from "./row-action.enum-7jVyol1k.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-Dkdyeqv8.js";
|
|
9
|
+
import { _ as Ct, a as Ft } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BstbCK2r.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-
|
|
12
|
-
import { _ as Me } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { _ as we, t as Je, d as Qe, s as wt, r as Mt } from "./xlsx.util-DsOslDqG.js";
|
|
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() {
|
|
15
|
-
const i = Ke(), m =
|
|
15
|
+
const i = Ke(), m = Ve(), r = ae(), t = z(!1), { t: l } = re(), o = z();
|
|
16
16
|
function p() {
|
|
17
17
|
const h = {
|
|
18
18
|
unit: {},
|
|
@@ -221,8 +221,9 @@ const It = /* @__PURE__ */ le({
|
|
|
221
221
|
id: t.value,
|
|
222
222
|
"model-value": ((V = u.modelValue) == null ? void 0 : V.inventoryBindings) ?? [],
|
|
223
223
|
"onUpdate:modelValue": g,
|
|
224
|
-
"exclude-binding-id": t.value
|
|
225
|
-
|
|
224
|
+
"exclude-binding-id": t.value,
|
|
225
|
+
rules: [d(_e)(1)]
|
|
226
|
+
}, null, 8, ["id", "model-value", "exclude-binding-id", "rules"])
|
|
226
227
|
], 64)) : O("", !0)
|
|
227
228
|
];
|
|
228
229
|
}),
|
|
@@ -333,7 +334,7 @@ const sn = /* @__PURE__ */ le({
|
|
|
333
334
|
costPerUnit: {
|
|
334
335
|
amount: 0,
|
|
335
336
|
precision: 2,
|
|
336
|
-
currency: ((v =
|
|
337
|
+
currency: ((v = xe(p.currentCountry.value)) == null ? void 0 : v.currency) ?? "MYR"
|
|
337
338
|
},
|
|
338
339
|
measurement: (I = (T = (k = t.modelValue) == null ? void 0 : k.unit) == null ? void 0 : T.measurements) == null ? void 0 : I.find(
|
|
339
340
|
(Y) => {
|
|
@@ -393,7 +394,7 @@ const sn = /* @__PURE__ */ le({
|
|
|
393
394
|
...((Y = I.defaultCost) == null ? void 0 : Y.costPerUnit) ?? {
|
|
394
395
|
amount: 0,
|
|
395
396
|
precision: 2,
|
|
396
|
-
currency: ((G =
|
|
397
|
+
currency: ((G = xe(p.currentCountry.value)) == null ? void 0 : G.currency) ?? "MYR"
|
|
397
398
|
}
|
|
398
399
|
}
|
|
399
400
|
}), l("update:modelValue", I);
|
|
@@ -548,7 +549,7 @@ const sn = /* @__PURE__ */ le({
|
|
|
548
549
|
};
|
|
549
550
|
}
|
|
550
551
|
return (e, n) => {
|
|
551
|
-
const v = R("FmTextField"), k = R("FmLabel"), T = R("FmField"), I = R("FmMenuHeader"), Y = R("FmMenuDivider"), G = R("FmMenuItem"), ie = R("FmMenu"),
|
|
552
|
+
const v = R("FmTextField"), k = R("FmLabel"), T = R("FmField"), I = R("FmMenuHeader"), Y = R("FmMenuDivider"), G = R("FmMenuItem"), ie = R("FmMenu"), ke = R("FmFormGroup"), Ze = R("FmSelect"), Re = R("FmSwitch"), et = R("FmIcon"), Ue = R("FmStepperField"), tt = R("FmForm");
|
|
552
553
|
return y(), B(tt, {
|
|
553
554
|
disabled: e.disabled,
|
|
554
555
|
ref_key: "formRef",
|
|
@@ -571,7 +572,7 @@ const sn = /* @__PURE__ */ le({
|
|
|
571
572
|
rules: [d(be)()],
|
|
572
573
|
"label-mark": "required"
|
|
573
574
|
}, null, 8, ["label", "model-value", "rules"]),
|
|
574
|
-
f(
|
|
575
|
+
f(ke, {
|
|
575
576
|
class: "col-span-2",
|
|
576
577
|
"model-value": D.value,
|
|
577
578
|
rules: [d(be)()],
|
|
@@ -656,7 +657,7 @@ const sn = /* @__PURE__ */ le({
|
|
|
656
657
|
key: 1,
|
|
657
658
|
"model-value": x.value,
|
|
658
659
|
"onUpdate:modelValue": n[3] || (n[3] = (F) => x.value = F),
|
|
659
|
-
rules: [d(
|
|
660
|
+
rules: [d(_e)(0), d(ut)(4)]
|
|
660
661
|
}, {
|
|
661
662
|
label: $(() => [
|
|
662
663
|
f(Me, { "z-index": 50 }, {
|
|
@@ -736,7 +737,7 @@ const sn = /* @__PURE__ */ le({
|
|
|
736
737
|
]),
|
|
737
738
|
_: 1
|
|
738
739
|
}),
|
|
739
|
-
f(
|
|
740
|
+
f(ke, {
|
|
740
741
|
"model-value": V.value,
|
|
741
742
|
rules: [d(be)()]
|
|
742
743
|
}, null, 8, ["model-value", "rules"])
|
|
@@ -778,7 +779,7 @@ const sn = /* @__PURE__ */ le({
|
|
|
778
779
|
c("div", jt, L(d(r)("inventory.ingredient.threshold.subtitle")), 1)
|
|
779
780
|
]),
|
|
780
781
|
c("div", Ht, [
|
|
781
|
-
f(
|
|
782
|
+
f(ke, {
|
|
782
783
|
"model-value": { low: P.value, mid: j.value },
|
|
783
784
|
rules: [ye()]
|
|
784
785
|
}, null, 8, ["model-value", "rules"]),
|
|
@@ -795,7 +796,7 @@ const sn = /* @__PURE__ */ le({
|
|
|
795
796
|
f(Ue, {
|
|
796
797
|
modelValue: P.value,
|
|
797
798
|
"onUpdate:modelValue": n[8] || (n[8] = (F) => P.value = F),
|
|
798
|
-
rules: [d(
|
|
799
|
+
rules: [d(_e)(0)]
|
|
799
800
|
}, {
|
|
800
801
|
append: $(() => [
|
|
801
802
|
Kt
|
|
@@ -817,7 +818,7 @@ const sn = /* @__PURE__ */ le({
|
|
|
817
818
|
f(Ue, {
|
|
818
819
|
modelValue: j.value,
|
|
819
820
|
"onUpdate:modelValue": n[9] || (n[9] = (F) => j.value = F),
|
|
820
|
-
rules: [d(
|
|
821
|
+
rules: [d(_e)(0)]
|
|
821
822
|
}, {
|
|
822
823
|
append: $(() => [
|
|
823
824
|
tn
|
|
@@ -855,7 +856,7 @@ const sn = /* @__PURE__ */ le({
|
|
|
855
856
|
},
|
|
856
857
|
emits: ["update:show"],
|
|
857
858
|
setup(s) {
|
|
858
|
-
const i = s, m = ae(), r =
|
|
859
|
+
const i = s, m = ae(), r = Ve(), { t } = re(), l = Pe(i, "show"), o = Pe(i, "unit"), p = C(() => {
|
|
859
860
|
switch (i.mode) {
|
|
860
861
|
case K.READ:
|
|
861
862
|
return "";
|
|
@@ -1017,7 +1018,7 @@ function Xe() {
|
|
|
1017
1018
|
id: "baseUnit",
|
|
1018
1019
|
name: "Base unit"
|
|
1019
1020
|
}
|
|
1020
|
-
], i = We(), m = fe(), r =
|
|
1021
|
+
], i = We(), m = fe(), r = xe(m.currentCountry.value);
|
|
1021
1022
|
return i.enableTotalCost && s.push(
|
|
1022
1023
|
{
|
|
1023
1024
|
id: "valuationMethod",
|
|
@@ -1110,7 +1111,7 @@ function Le(s, i, m) {
|
|
|
1110
1111
|
const h = fe().currentCountry.value, u = (V) => `${V}`.length && mt()(V) === !0, x = u(`${s.pricePerUnit}`) === !0 ? {
|
|
1111
1112
|
costPerUnit: {
|
|
1112
1113
|
...qe(Number(s.pricePerUnit) || 0),
|
|
1113
|
-
currency: ((M =
|
|
1114
|
+
currency: ((M = xe(h)) == null ? void 0 : M.currency) ?? "MYR"
|
|
1114
1115
|
},
|
|
1115
1116
|
measurement: b
|
|
1116
1117
|
} : void 0, D = u(`${s.thresholdLow}`) && u(`${s.thresholdMid}`) ? {
|
|
@@ -1385,7 +1386,7 @@ const _n = {
|
|
|
1385
1386
|
}, Ln = { class: "fm-typo-en-body-lg-600" }, Nn = /* @__PURE__ */ le({
|
|
1386
1387
|
__name: "ImportIngredients",
|
|
1387
1388
|
setup(s) {
|
|
1388
|
-
const i = z(null), m = ft(), r =
|
|
1389
|
+
const i = z(null), m = ft(), r = Ve(), t = z(!1), l = z(new Array()), o = z([]), p = z([]), b = C(
|
|
1389
1390
|
() => !!l.value.length || o.value.some((u) => u.errors.length) || p.value.some((u) => u.errors.length)
|
|
1390
1391
|
), _ = C(
|
|
1391
1392
|
() => !!o.value.length || !!p.value.length
|
|
@@ -1527,7 +1528,7 @@ const _n = {
|
|
|
1527
1528
|
}), jn = { class: "px-24 xs:p-0 sm:p-0 flex flex-col gap-8 max-h-full" }, Hn = { class: "flex flex-col py-8" }, On = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Yn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ro = /* @__PURE__ */ le({
|
|
1528
1529
|
__name: "IngredientsView",
|
|
1529
1530
|
setup(s) {
|
|
1530
|
-
const i = ae(), m = C(() => i.skus), r = vt(), t = Ke(), l =
|
|
1531
|
+
const i = ae(), m = C(() => i.skus), r = vt(), t = Ke(), l = Ve(), { t: o } = re(), { createIngredient: p, updateIngredient: b } = $e(), { ingredientDialogProps: _, ingredientViewLoading: g } = _t($e()), { columnDefs: h } = $t();
|
|
1531
1532
|
function u(A) {
|
|
1532
1533
|
switch (A) {
|
|
1533
1534
|
case "add":
|
|
@@ -1536,7 +1537,7 @@ const _n = {
|
|
|
1536
1537
|
return W();
|
|
1537
1538
|
}
|
|
1538
1539
|
}
|
|
1539
|
-
const x = z(""), D = z(!1), S = C(() => D.value || g), { breakpoints: w } = yt(), M = C(() => w.value.xs || w.value.sm), V = C(() => M.value ? 10 : 20), H = kt(), J = z(!1), ee = [
|
|
1540
|
+
const x = z(""), D = z(!1), S = C(() => D.value || g.value), { breakpoints: w } = yt(), M = C(() => w.value.xs || w.value.sm), V = C(() => M.value ? 10 : 20), H = kt(), J = z(!1), ee = [
|
|
1540
1541
|
{
|
|
1541
1542
|
value: "import",
|
|
1542
1543
|
label: o("common.import")
|
|
@@ -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 {
|
|
3
|
+
import { ah as ne, ai as ye, c as z, aj as be, j as he } from "./app-Bq5a4Oca.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-BstbCK2r.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-Bq5a4Oca.js";
|
|
3
3
|
const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { n as m, j as F } from "./app-Bq5a4Oca.js";
|
|
2
|
+
import { useCoreStore as v } from "@feedmepos/mf-common";
|
|
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
|
+
const l = m((e, t) => {
|
|
5
|
+
const a = F(), o = v();
|
|
6
|
+
return {
|
|
7
|
+
async getInventoryForecast() {
|
|
8
|
+
var n;
|
|
9
|
+
const r = ((n = o.currentBusiness.value) == null ? void 0 : n._id) ?? "", c = a.currentLocationId ?? "", i = `${e.dataBackendUrl}/${r}/${c}/inventory-forecast`;
|
|
10
|
+
try {
|
|
11
|
+
return await t.get(i);
|
|
12
|
+
} catch {
|
|
13
|
+
return { skus: [] };
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
async getPurchaseOrderForecast(r) {
|
|
17
|
+
var u;
|
|
18
|
+
const c = ((u = o.currentBusiness.value) == null ? void 0 : u._id) ?? "", i = a.currentLocationId ?? "", n = `${e.dataBackendUrl}/${c}/${i}/purchase-order-forecast?days=${r}`;
|
|
19
|
+
try {
|
|
20
|
+
return await t.get(n);
|
|
21
|
+
} catch {
|
|
22
|
+
return { skus: [] };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
function S() {
|
|
28
|
+
return {
|
|
29
|
+
inventoryForecast: { skus: [] },
|
|
30
|
+
purchaseOrderForecast: { skus: [] }
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
const s = h(S());
|
|
34
|
+
function P() {
|
|
35
|
+
return {
|
|
36
|
+
// state
|
|
37
|
+
get inventoryForecast() {
|
|
38
|
+
return s.value.inventoryForecast;
|
|
39
|
+
},
|
|
40
|
+
set inventoryForecast(e) {
|
|
41
|
+
s.value.inventoryForecast = e;
|
|
42
|
+
},
|
|
43
|
+
get purchaseOrderForecast() {
|
|
44
|
+
return s.value.purchaseOrderForecast;
|
|
45
|
+
},
|
|
46
|
+
set purchaseOrderForecast(e) {
|
|
47
|
+
s.value.purchaseOrderForecast = e;
|
|
48
|
+
},
|
|
49
|
+
// actions
|
|
50
|
+
async readStockEstimateBalance() {
|
|
51
|
+
const e = l();
|
|
52
|
+
this.inventoryForecast = await e.getInventoryForecast();
|
|
53
|
+
},
|
|
54
|
+
async readPurchaseOrder(e) {
|
|
55
|
+
const t = l();
|
|
56
|
+
this.purchaseOrderForecast = await t.getPurchaseOrderForecast(e);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const I = { class: "flex items-center gap-8" }, O = "Experience enhanced inventory features with premium plan.", E = /* @__PURE__ */ y({
|
|
61
|
+
__name: "PremiumBadge",
|
|
62
|
+
props: {
|
|
63
|
+
zIndex: {}
|
|
64
|
+
},
|
|
65
|
+
setup(e) {
|
|
66
|
+
return (t, a) => {
|
|
67
|
+
const o = d("FmPill"), r = d("FmTooltip");
|
|
68
|
+
return _(), f("div", I, [
|
|
69
|
+
k(t.$slots, "default"),
|
|
70
|
+
p(r, {
|
|
71
|
+
variant: "plain",
|
|
72
|
+
placement: "top",
|
|
73
|
+
content: O,
|
|
74
|
+
"z-index": t.zIndex
|
|
75
|
+
}, {
|
|
76
|
+
default: g(() => [
|
|
77
|
+
p(o, { variant: "premium" })
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
}, 8, ["z-index"])
|
|
81
|
+
]);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
export {
|
|
86
|
+
E as _,
|
|
87
|
+
P as u
|
|
88
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent as i, resolveComponent as t, openBlock as r, createElementBlock as p, renderSlot as l, createVNode as o, withCtx as s } from "vue";
|
|
2
|
+
const m = { class: "flex items-center gap-8" }, c = "Experience premium feature as a preview. This will become a premium feature.", f = /* @__PURE__ */ i({
|
|
3
|
+
__name: "PreviewBadge",
|
|
4
|
+
props: {
|
|
5
|
+
zIndex: {}
|
|
6
|
+
},
|
|
7
|
+
setup(_) {
|
|
8
|
+
return (e, d) => {
|
|
9
|
+
const n = t("FmPill"), a = t("FmTooltip");
|
|
10
|
+
return r(), p("div", m, [
|
|
11
|
+
l(e.$slots, "default"),
|
|
12
|
+
o(a, {
|
|
13
|
+
variant: "plain",
|
|
14
|
+
placement: "top",
|
|
15
|
+
content: c,
|
|
16
|
+
"z-index": e.zIndex
|
|
17
|
+
}, {
|
|
18
|
+
default: s(() => [
|
|
19
|
+
o(n, { variant: "beta" })
|
|
20
|
+
]),
|
|
21
|
+
_: 1
|
|
22
|
+
}, 8, ["z-index"])
|
|
23
|
+
]);
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
export {
|
|
28
|
+
f as _
|
|
29
|
+
};
|
package/dist/{PurchaseOrderPrintPreview-DSXXSlof.js → PurchaseOrderPrintPreview-s_pZiI6a.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
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 {
|
|
4
|
-
const n = (d) => (S("data-v-54384fc1"), d = d(), C(), d), 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" },
|
|
3
|
+
import { a9 as v, i as R } from "./app-Bq5a4Oca.js";
|
|
4
|
+
const n = (d) => (S("data-v-54384fc1"), d = d(), C(), d), 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", {
|
|
7
7
|
class: "text-left",
|
|
@@ -17,7 +17,7 @@ const n = (d) => (S("data-v-54384fc1"), d = d(), C(), d), A = { class: "purchase
|
|
|
17
17
|
style: { width: "20%" }
|
|
18
18
|
}, "Unit")
|
|
19
19
|
])
|
|
20
|
-
], -1)),
|
|
20
|
+
], -1)), Z = { class: "text-left" }, $ = { class: "text-left" }, ee = { class: "text-right" }, te = /* @__PURE__ */ n(() => /* @__PURE__ */ e("hr", null, null, -1)), se = { style: { "padding-top": "30px" } }, le = /* @__PURE__ */ n(() => /* @__PURE__ */ e("hr", null, null, -1)), ne = { valign: "bottom" }, re = { class: "header" }, oe = { class: "caption" }, ie = {
|
|
21
21
|
class: "text-left",
|
|
22
22
|
style: { width: "20%" }
|
|
23
23
|
}, ue = { class: "text-left" }, de = {
|
|
@@ -80,26 +80,26 @@ const n = (d) => (S("data-v-54384fc1"), d = d(), C(), d), A = { class: "purchase
|
|
|
80
80
|
e("div", J, t(s.value.buyer.name), 1),
|
|
81
81
|
e("div", Q, [
|
|
82
82
|
i(t(s.value.buyer.line1), 1),
|
|
83
|
-
|
|
83
|
+
j,
|
|
84
84
|
s.value.buyer.line2 ? (r(), o(u, { key: 0 }, [
|
|
85
85
|
i(t(s.value.buyer.line2), 1),
|
|
86
|
-
|
|
86
|
+
G
|
|
87
87
|
], 64)) : h("", !0),
|
|
88
88
|
i(" " + t(s.value.buyer.postcode) + " " + t(s.value.buyer.city) + " ", 1),
|
|
89
|
-
|
|
89
|
+
K,
|
|
90
90
|
i(" " + t(s.value.buyer.state) + " " + t(s.value.buyer.country) + " ", 1),
|
|
91
|
-
|
|
91
|
+
W
|
|
92
92
|
])
|
|
93
93
|
])
|
|
94
94
|
])
|
|
95
95
|
]),
|
|
96
|
-
e("div",
|
|
96
|
+
e("div", X, [
|
|
97
97
|
e("table", null, [
|
|
98
|
-
|
|
98
|
+
Y,
|
|
99
99
|
e("tbody", null, [
|
|
100
100
|
(r(!0), o(u, null, _(s.value.items, (l, c) => (r(), o("tr", { key: c }, [
|
|
101
|
-
e("td",
|
|
102
|
-
e("td",
|
|
101
|
+
e("td", Z, t(l.code), 1),
|
|
102
|
+
e("td", $, t(l.description), 1),
|
|
103
103
|
e("td", {
|
|
104
104
|
class: k(["text-right", {
|
|
105
105
|
"text-green-5": l.received == l.quantity,
|