@feedmepos/mf-inventory-portal 1.0.8 → 1.0.9-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-DeBNx7kq.js → App-DfxhucPn.js} +50 -49
- package/dist/{ApprovalView-CYgDG4X-.js → ApprovalView-BUYgTb8S.js} +24 -24
- package/dist/{BindingsDialog-Bojdsd9h.js → BindingsDialog-Cbs9aVch.js} +2 -2
- package/dist/{BindingsPicker-TkiARkrC.js → BindingsPicker-BH9bil6g.js} +3 -3
- package/dist/{BindingsTable-BWYaPoFt.js → BindingsTable-DBsS_9yb.js} +1 -1
- package/dist/ClosingDraftView-CcQssDLY.js +1415 -0
- package/dist/{ClosingTemplateView-CUjkAFjw.js → ClosingTemplateView-BHPqi-bL.js} +10 -10
- package/dist/{DeliveryOrderPrintPreview-BOEKl7zP.js → DeliveryOrderPrintPreview-DlTLtZ1f.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bve5cng3.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CtJSPDCo.js} +32 -32
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-1-G4gmCj.js → FmUnitInput.vue_vue_type_script_setup_true_lang-B-erI7fq.js} +51 -51
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Bl526zYj.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DT4nyE8i.js} +1 -1
- package/dist/{IngredientGroupView-stli1Xiv.js → IngredientGroupView-DE15kdqH.js} +11 -11
- package/dist/{IngredientsView-jmDSRSkr.js → IngredientsView-BCEznLxB.js} +15 -14
- package/dist/{IntegrationView-BQZtDqlR.js → IntegrationView-COSJuqnB.js} +146 -145
- package/dist/{InventoryBindingForm-hHgB20dI.js → InventoryBindingForm-B3C8gktf.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BK36mlQE.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bn2X1jxB.js} +20 -20
- package/dist/{InventoryBindingSummary-JsAhd0Jm.js → InventoryBindingSummary-BF1OtGum.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C4A6bDPB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BMTXHa4I.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-C6bND0mn.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CZR7wF6-.js} +10 -10
- package/dist/{PublishView-BK7WwXeV.js → PublishView-Cp5tpVb0.js} +12 -12
- package/dist/{PurchaseOrderPrintPreview-CMnaZkzc.js → PurchaseOrderPrintPreview-DWOcxCH8.js} +4 -4
- package/dist/{ReceiveRequestView-Bb6RQyJ8.js → ReceiveRequestView-CRuhm8r1.js} +53 -52
- package/dist/{RecipeView-CZnElbJ8.js → RecipeView-BTS1LBKZ.js} +29 -29
- package/dist/{StockView-CDAHrTyi.js → StockView-CuK8s5rt.js} +73 -72
- package/dist/{SupplierView-WTgrwbJ_.js → SupplierView-Bwpe9RoM.js} +12 -11
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DDAZMTzq.js +1897 -0
- package/dist/{TransferTemplateView-26w6orAY.js → TransferTemplateView-BlluEiV-.js} +291 -290
- package/dist/{UnitView-DAl0OS01.js → UnitView-BWGQHOWP.js} +23 -23
- package/dist/{WarehouseView-Db2wXza_.js → WarehouseView-dOCu22dg.js} +26 -26
- package/dist/api/bill.d.ts +2 -2
- package/dist/api/food-market-hub.d.ts +1 -1
- package/dist/api/inventory.d.ts +44 -44
- package/dist/api/netsuite.d.ts +3 -3
- package/dist/api/purchase-order.d.ts +5 -1
- package/dist/api/stock.d.ts +1 -0
- package/dist/{app-Ch3IXeOL.js → app-BkIAyhP-.js} +16504 -16961
- package/dist/app.d.ts +7 -7
- package/dist/app.js +1 -1
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +8 -8
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +5 -5
- package/dist/composable/usePromise.d.ts +41 -0
- package/dist/{decimal-BFWsfQmw.js → decimal-BiC7uGww.js} +1 -1
- package/dist/feature-CCDDWpq8.js +17319 -0
- package/dist/{format-unit-display-CyBzA_Ye.js → format-unit-display-CLa0op_h.js} +60 -60
- package/dist/{index-CKB7R0y2.js → index-BbFvsU1Z.js} +7 -6
- package/dist/{index-CSjhH3PC.js → index-UgbyiGok.js} +1 -1
- package/dist/{stock-BjY9UvKO.js → stock-SxO4bxTm.js} +29 -25
- package/dist/stores/feature.d.ts +5 -20
- package/dist/stores/integration/foodmarkethub.d.ts +1 -1
- package/dist/stores/integration/netsuite.d.ts +7 -7
- package/dist/stores/inventory.d.ts +44 -44
- package/dist/stores/location.d.ts +137 -137
- package/dist/{supplier-8x-ZFcOk.js → supplier-BVdCk7nI.js} +4 -4
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CxZAaSGc.js → use-ingredient-select-dialog-CDeGXhur.js} +1 -1
- package/dist/{use-inventory-binding-dialog-Kmg24YiM.js → use-inventory-binding-dialog-CeRKqMy7.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +228 -228
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +2 -2
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +1 -1
- package/dist/views/adjustment-template/wastage-template/table.d.ts +234 -234
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +780 -74
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +424 -409
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +4 -4
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +252 -252
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +252 -252
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +12 -12
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +8 -8
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +3 -3
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +4 -4
- package/dist/views/integration/components/ApplyProduct.vue.d.ts +2 -2
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +2 -2
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +2 -2
- package/dist/views/integration/components/netsuite/AddLocationDialog.vue.d.ts +204 -204
- package/dist/views/integration/components/netsuite/LocationConfigurationDialog.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +665 -637
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +22 -22
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +44 -44
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +11 -11
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +614 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1190 -1142
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1192 -1144
- package/dist/views/receive-request/constants/po-action-to-ui-style.d.ts +6 -0
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +14 -14
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +22 -22
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +17 -17
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +11 -11
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +805 -805
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +805 -805
- package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +33 -33
- package/dist/{vue-i18n-CXd9SF_G.js → vue-i18n-3Mh8tKq8.js} +341 -341
- package/package.json +3 -1
- package/dist/ClosingDraftView-C0ECZ9zi.js +0 -1394
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-mHNmxBuV.js +0 -1746
|
@@ -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 l, createBlock as V, createCommentVNode as g, Fragment as R, renderList as S, withCtx as T, nextTick as X } from "vue";
|
|
2
|
-
import { a as Z,
|
|
3
|
-
import { u as le } from "./use-inventory-binding-dialog-
|
|
4
|
-
import { _ as re, c as se, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { a as Z, O as ee, aS as ne, i as B, aT as oe, L as N, K as te, F as ie } from "./app-BkIAyhP-.js";
|
|
3
|
+
import { u as le } from "./use-inventory-binding-dialog-CeRKqMy7.js";
|
|
4
|
+
import { _ as re, c as se, d as de } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-B-erI7fq.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",
|
|
@@ -18,7 +18,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
18
18
|
}, Ae = { class: "flex-1 fm-typo-en-body-md-400 py-8 px-12" }, Re = { class: "line-clamp-1" }, Se = { class: "w-[150px]" }, Te = {
|
|
19
19
|
key: 0,
|
|
20
20
|
class: "w-[52px]"
|
|
21
|
-
}, Ne = { class: "flex flex-col px-12 pb-4" },
|
|
21
|
+
}, Ne = { class: "flex flex-col px-12 pb-4" }, ze = /* @__PURE__ */ J({
|
|
22
22
|
__name: "InventoryBindingForm",
|
|
23
23
|
props: {
|
|
24
24
|
id: {},
|
|
@@ -38,25 +38,25 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
38
38
|
contains: r.modelValue
|
|
39
39
|
} : o),
|
|
40
40
|
skus: h.value
|
|
41
|
-
}).inventoryBindings.filter((o) => "error" in o && o.error).map((o) => o).filter((o) => o.reason === ne.enum.circularDependency)),
|
|
41
|
+
}).inventoryBindings.filter((o) => "error" in o && o.error).map((o) => o).filter((o) => o.reason === ne.enum.circularDependency)), K = _(
|
|
42
42
|
() => new Set(w.value.map((e) => {
|
|
43
43
|
var t;
|
|
44
44
|
return (t = e.bindingPaths[0]) == null ? void 0 : t.id;
|
|
45
45
|
}))
|
|
46
|
-
),
|
|
47
|
-
async function
|
|
46
|
+
), D = _(() => r.modelValue.filter((e) => e.type === "RECIPE")), { promptIngredientsBinding: $, promptRecipesBinding: z } = le();
|
|
47
|
+
async function G() {
|
|
48
48
|
if (r.iframeMode) {
|
|
49
49
|
f("click:pick-inventory-bindings", "RECIPE");
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
|
-
|
|
52
|
+
z(
|
|
53
53
|
r.modelValue,
|
|
54
54
|
(e) => f("update:modelValue", e),
|
|
55
55
|
r.id ? [r.id] : []
|
|
56
56
|
);
|
|
57
57
|
}
|
|
58
58
|
const U = _(() => r.modelValue.filter((e) => e.type === "SKU") ?? []);
|
|
59
|
-
async function
|
|
59
|
+
async function L() {
|
|
60
60
|
if (r.iframeMode) {
|
|
61
61
|
f("click:pick-inventory-bindings", "SKU");
|
|
62
62
|
return;
|
|
@@ -68,7 +68,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
68
68
|
r.id ? [r.id] : []
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
|
-
function
|
|
71
|
+
function j(e, t, o) {
|
|
72
72
|
const s = +t;
|
|
73
73
|
let d = o;
|
|
74
74
|
t.length > 0 && isFinite(s) ? d = o.map((a) => (a.id !== e || (a.amount = te(s)), a)) : d = o.map((a) => (a.id !== e || (a.amount = { amount: 0, precision: 0 }), a)), f("update:modelValue", d);
|
|
@@ -85,10 +85,10 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
85
85
|
throw new Error(`Cannot find ingredient: ${e.id}`);
|
|
86
86
|
return (s = h.value.find((d) => d._id === e.id)) == null ? void 0 : s.unit;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function O(e) {
|
|
89
89
|
return { amount: e.amount, measurement: e.measurement };
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function Y(e, t, o) {
|
|
92
92
|
const s = o.map((d) => d.id !== e ? d : {
|
|
93
93
|
...d,
|
|
94
94
|
amount: t.amount,
|
|
@@ -135,7 +135,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
135
135
|
"border-color": "primary",
|
|
136
136
|
label: l(p)("inventory.inventoryBindings.linkRecipe"),
|
|
137
137
|
"prepend-icon": "link",
|
|
138
|
-
onClick:
|
|
138
|
+
onClick: G
|
|
139
139
|
}, null, 8, ["label"]))
|
|
140
140
|
]),
|
|
141
141
|
n("div", fe, [
|
|
@@ -144,7 +144,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
144
144
|
t[0] || (t[0] = n("div", { class: "w-[200px]" }, null, -1)),
|
|
145
145
|
t[1] || (t[1] = n("div", { class: "w-[52px]" }, null, -1))
|
|
146
146
|
]),
|
|
147
|
-
(m(!0), y(R, null, S(
|
|
147
|
+
(m(!0), y(R, null, S(D.value, (i) => (m(), V(o, {
|
|
148
148
|
key: i.id,
|
|
149
149
|
disabled: e.disabled,
|
|
150
150
|
modelValue: +l(B)(i.amount ?? { amount: 1, precision: 0 }),
|
|
@@ -157,7 +157,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
157
157
|
n("div", ge, [
|
|
158
158
|
n("div", be, [
|
|
159
159
|
n("div", null, v((b = I.value.find((u) => u._id === i.id)) == null ? void 0 : b.name), 1),
|
|
160
|
-
|
|
160
|
+
K.value.has(i.id) ? (m(), y("div", xe, [
|
|
161
161
|
c(d, {
|
|
162
162
|
name: "error",
|
|
163
163
|
color: "system-error-400",
|
|
@@ -172,7 +172,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
172
172
|
class: "w-full",
|
|
173
173
|
disabled: e.disabled,
|
|
174
174
|
modelValue: +l(B)(i.amount ?? { amount: 1, precision: 0 }),
|
|
175
|
-
"onUpdate:modelValue": (u) =>
|
|
175
|
+
"onUpdate:modelValue": (u) => j(i.id, u, e.modelValue),
|
|
176
176
|
invalid: k
|
|
177
177
|
}, null, 8, ["disabled", "modelValue", "onUpdate:modelValue", "invalid"])
|
|
178
178
|
]),
|
|
@@ -203,7 +203,7 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
203
203
|
"border-color": "primary",
|
|
204
204
|
label: l(p)("inventory.inventoryBindings.linkIngredient"),
|
|
205
205
|
"prepend-icon": "link",
|
|
206
|
-
onClick:
|
|
206
|
+
onClick: L
|
|
207
207
|
}, null, 8, ["label"]))
|
|
208
208
|
]),
|
|
209
209
|
n("div", Ie, [
|
|
@@ -241,8 +241,8 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
241
241
|
]),
|
|
242
242
|
n("div", Se, [
|
|
243
243
|
c(re, {
|
|
244
|
-
"model-value":
|
|
245
|
-
"onUpdate:modelValue": (u) =>
|
|
244
|
+
"model-value": O(i),
|
|
245
|
+
"onUpdate:modelValue": (u) => Y(i.id, u, e.modelValue),
|
|
246
246
|
"onUpdate:amount": (u) => q(i, u),
|
|
247
247
|
unit: C(i),
|
|
248
248
|
placement: k === U.value.length - 1 ? "top" : "bottom",
|
|
@@ -282,5 +282,5 @@ const ue = { class: "flex flex-col gap-24" }, me = { class: "flex flex-col gap-1
|
|
|
282
282
|
}
|
|
283
283
|
});
|
|
284
284
|
export {
|
|
285
|
-
|
|
285
|
+
ze as _
|
|
286
286
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as l, resolveComponent as m, openBlock as c, 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-BkIAyhP-.js";
|
|
5
5
|
const w = /* @__PURE__ */ l({
|
|
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 {
|
|
2
|
+
import { K as d } from "./app-BkIAyhP-.js";
|
|
3
3
|
const _ = ["value", "disabled"], D = /* @__PURE__ */ y({
|
|
4
4
|
__name: "NumberPrecisionInput",
|
|
5
5
|
props: {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useCoreStore as
|
|
3
|
-
import { ref as
|
|
4
|
-
function
|
|
1
|
+
import { aw as d, ax as f, X as _, u as h } from "./app-BkIAyhP-.js";
|
|
2
|
+
import { useCoreStore as F } from "@feedmepos/mf-common";
|
|
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
|
+
function w(e, t) {
|
|
5
5
|
return t.map((r) => typeof r.selector == "function" ? r.selector(e) : e[r.selector]);
|
|
6
6
|
}
|
|
7
|
-
function
|
|
8
|
-
const r = t.map((o) => o.name), n = e.map((o) =>
|
|
7
|
+
function I(e, t) {
|
|
8
|
+
const r = t.map((o) => o.name), n = e.map((o) => w(o, t));
|
|
9
9
|
return d.aoa_to_sheet([r, ...n]);
|
|
10
10
|
}
|
|
11
11
|
async function A(e, t) {
|
|
12
12
|
const r = d.book_new();
|
|
13
13
|
for (const n of e) {
|
|
14
|
-
const o =
|
|
14
|
+
const o = I(
|
|
15
15
|
n.data,
|
|
16
16
|
n.columns.map((a) => typeof a == "string" ? {
|
|
17
17
|
name: a,
|
|
@@ -23,7 +23,7 @@ async function A(e, t) {
|
|
|
23
23
|
await f(r, t);
|
|
24
24
|
}
|
|
25
25
|
const m = _((e, t) => {
|
|
26
|
-
const r = h(), n =
|
|
26
|
+
const r = h(), n = F();
|
|
27
27
|
return {
|
|
28
28
|
async getInventoryForecast() {
|
|
29
29
|
var s;
|
|
@@ -45,13 +45,13 @@ const m = _((e, t) => {
|
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
});
|
|
48
|
-
function
|
|
48
|
+
function O() {
|
|
49
49
|
return {
|
|
50
50
|
inventoryForecast: { skus: [] },
|
|
51
51
|
purchaseOrderForecast: { skus: [] }
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
const c =
|
|
54
|
+
const c = y(O());
|
|
55
55
|
function C() {
|
|
56
56
|
return {
|
|
57
57
|
// state
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as Q, ref as
|
|
2
|
-
import { u as oe, a as ne,
|
|
3
|
-
import { useBreakpoints as ie, useDialog as re, useSnackbar as ue, components as
|
|
4
|
-
import { u as ce } from "./vue-i18n-
|
|
1
|
+
import { defineComponent as Q, ref as D, computed as r, resolveComponent as s, openBlock as I, createBlock as B, unref as v, createSlots as X, withCtx as u, createElementVNode as h, normalizeClass as Z, createVNode as n, normalizeStyle as ee, Teleport as te, h as f } from "vue";
|
|
2
|
+
import { u as oe, a as ne, aM as ae, z as se, _ as le, ae as H } from "./app-BkIAyhP-.js";
|
|
3
|
+
import { useBreakpoints as ie, useDialog as re, useSnackbar as ue, components as R } from "@feedmepos/ui-library";
|
|
4
|
+
import { u as ce } from "./vue-i18n-3Mh8tKq8.js";
|
|
5
5
|
const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ge = /* @__PURE__ */ Q({
|
|
6
6
|
__name: "PublishView",
|
|
7
7
|
setup(ye) {
|
|
8
|
-
const { t } = ce(), { breakpoints: x } = ie(), l = oe(), A = ne(), S = ae(), g =
|
|
8
|
+
const { t } = ce(), { breakpoints: x } = ie(), l = oe(), A = ne(), S = ae(), g = D(!1), c = r(() => A.state.inventory.updatedAt ? A.state.inventory.updatedAt : null), Y = se(), C = re(), N = ue(), $ = r(() => l.locations), _ = r(() => x.value.xs || x.value.sm), U = r(() => _.value ? 10 : 20), q = r(() => [
|
|
9
9
|
{
|
|
10
10
|
label: t("inventory.common.refresh"),
|
|
11
11
|
value: "refresh",
|
|
@@ -30,7 +30,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
|
|
|
30
30
|
break;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
const w =
|
|
33
|
+
const w = D(!1), K = [
|
|
34
34
|
{
|
|
35
35
|
value: "publish",
|
|
36
36
|
label: t("inventory.publish.actions.publishAll")
|
|
@@ -48,7 +48,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
|
|
|
48
48
|
header: () => t("inventory.publish.columns.type"),
|
|
49
49
|
enableSorting: !0,
|
|
50
50
|
cell(e) {
|
|
51
|
-
return f(
|
|
51
|
+
return f(R.FmChip, {
|
|
52
52
|
color: "primary",
|
|
53
53
|
label: e.row.original.type
|
|
54
54
|
});
|
|
@@ -94,7 +94,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
|
|
|
94
94
|
},
|
|
95
95
|
t(o ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
|
|
96
96
|
),
|
|
97
|
-
!o && !m ? f(
|
|
97
|
+
!o && !m ? f(R.FmButton, {
|
|
98
98
|
class: "tertiary",
|
|
99
99
|
variant: "secondary",
|
|
100
100
|
icon: "sync",
|
|
@@ -105,7 +105,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
|
|
|
105
105
|
primaryActions: { text: t("inventory.common.publish"), close: !0 },
|
|
106
106
|
secondaryActions: { text: "Cancel", close: !0 }
|
|
107
107
|
}).onPrimary(async () => {
|
|
108
|
-
await S.publishInventory(a.split("_")[1]), await l.readLocations(),
|
|
108
|
+
await S.publishInventory(a.split("_")[1]), await l.readLocations(), N.open({ message: "Publish request submitted", type: "success" });
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
}) : null
|
|
@@ -150,7 +150,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
|
|
|
150
150
|
])
|
|
151
151
|
}, [
|
|
152
152
|
n(G, {
|
|
153
|
-
style: ee(v(
|
|
153
|
+
style: ee(v(Y).tableHeight),
|
|
154
154
|
"column-defs": j,
|
|
155
155
|
"row-data": $.value,
|
|
156
156
|
loading: !v(l)._currentLocation || g.value,
|
|
@@ -160,7 +160,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
|
|
|
160
160
|
"list-row": u((i) => [
|
|
161
161
|
n(p, { row: i }, {
|
|
162
162
|
default: u((d) => {
|
|
163
|
-
var F, k, M, y, P, L, T, V, b,
|
|
163
|
+
var F, k, M, y, P, L, T, V, b, z;
|
|
164
164
|
return [
|
|
165
165
|
h("div", me, [
|
|
166
166
|
h("div", pe, [
|
|
@@ -172,7 +172,7 @@ const me = { class: "flex flex-col py-8" }, pe = { class: "fm-typo-en-body-md-40
|
|
|
172
172
|
h("div", de, [
|
|
173
173
|
n(m, {
|
|
174
174
|
render: (V = (T = (L = d.name) == null ? void 0 : L.column) == null ? void 0 : T.columnDef) == null ? void 0 : V.cell,
|
|
175
|
-
props: (
|
|
175
|
+
props: (z = (b = d.name) == null ? void 0 : b.getContext) == null ? void 0 : z.call(b)
|
|
176
176
|
}, null, 8, ["render", "props"])
|
|
177
177
|
])
|
|
178
178
|
])
|
package/dist/{PurchaseOrderPrintPreview-CMnaZkzc.js → PurchaseOrderPrintPreview-DWOcxCH8.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
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 {
|
|
4
|
-
const C = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "text-right" }, P = { class: "header" }, D = { class: "sub-header" }, E = { class: "caption" }, O = { class: "address" }, S = { class: "text-right" },
|
|
3
|
+
import { aq as y, ad as R } from "./app-BkIAyhP-.js";
|
|
4
|
+
const C = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "text-right" }, P = { class: "header" }, D = { class: "sub-header" }, E = { class: "caption" }, O = { class: "address" }, S = { class: "text-right" }, q = { class: "sub-header" }, T = { 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%" }
|
|
7
7
|
}, J = { class: "text-left" }, Q = {
|
|
@@ -63,8 +63,8 @@ const C = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "tex
|
|
|
63
63
|
]),
|
|
64
64
|
t("td", S, [
|
|
65
65
|
e[10] || (e[10] = t("div", { class: "header" }, "Delivery To", -1)),
|
|
66
|
-
t("div",
|
|
67
|
-
t("div",
|
|
66
|
+
t("div", q, l(s.value.buyer.name), 1),
|
|
67
|
+
t("div", T, [
|
|
68
68
|
i(l(s.value.buyer.line1), 1),
|
|
69
69
|
e[7] || (e[7] = t("br", null, null, -1)),
|
|
70
70
|
s.value.buyer.line2 ? (n(), u(d, { key: 0 }, [
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { reactive as yt, onMounted as Be, watch as fe, computed as q, h as j, defineComponent as le, openBlock as k, createElementBlock as T, Fragment as ae, renderList as Ce, createElementVNode as l, toDisplayString as A, unref as t, resolveComponent as I, createVNode as d, withCtx as V, createCommentVNode as B, ref as E, createBlock as Q, normalizeClass as K, normalizeStyle as bt, createTextVNode as Fe, nextTick as $t, mergeProps as Ke, isRef as ke, createSlots as Dt, Teleport as It, normalizeProps as Tt, guardReactiveProps as Vt } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import { u as
|
|
4
|
-
import { _ as xt, u as es, i as ts, e as ss } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { H as Qe, b as ze, $ as gt, l as Re, i as xe, a1 as Xe, K as Pt, an as Rt, A as Ne, M as At, m as _t, a8 as Ze, E as de, ao as Et, a as Le, ap as qt, aq as Ut, ar as Mt, G as ht, u as Ge, as as Ot, at as Nt, a0 as Bt, V as zt, au as Lt, C as kt, d as Pe, w as Ht, x as jt, y as Yt, av as Oe, a2 as ct, z as Kt, _ as Qt, B as Xt, N as mt } from "./app-BkIAyhP-.js";
|
|
3
|
+
import { u as We, a as Zt, P as Ye, b as Gt, _ as Wt, g as Jt } from "./TransferDetails.vue_vue_type_script_setup_true_lang-DDAZMTzq.js";
|
|
4
|
+
import { _ as xt, u as es, i as ts, e as ss } from "./PremiumBadge.vue_vue_type_script_setup_true_lang-CZR7wF6-.js";
|
|
5
5
|
import { u as os } from "./useTabStorage-BkIVScW_.js";
|
|
6
|
-
import { useDialog as Ct, useBreakpoints as
|
|
7
|
-
import { P as te, u as wt } from "./format-unit-display-
|
|
8
|
-
import { _ as ls, F as ns, a as rs, b as is } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import {
|
|
6
|
+
import { useDialog as Ct, useBreakpoints as Je, components as pe, FmButtonVariant as as, useSnackbar as $e, useProxiedModel as St } from "@feedmepos/ui-library";
|
|
7
|
+
import { P as te, u as wt } from "./format-unit-display-CLa0op_h.js";
|
|
8
|
+
import { _ as ls, F as ns, a as rs, b as is } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-B-erI7fq.js";
|
|
9
|
+
import { u as et } from "./feature-CCDDWpq8.js";
|
|
10
|
+
import { c as ye, u as us, _ as ds } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CtJSPDCo.js";
|
|
10
11
|
import { useI18n as ce } from "@feedmepos/mf-common";
|
|
11
12
|
import { defineStore as cs } from "pinia";
|
|
12
|
-
import { u as tt } from "./supplier-
|
|
13
|
+
import { u as tt } from "./supplier-BVdCk7nI.js";
|
|
13
14
|
import { _ as ms } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
14
|
-
import { u as ps } from "./vue-i18n-
|
|
15
|
+
import { u as ps } from "./vue-i18n-3Mh8tKq8.js";
|
|
15
16
|
import "./array-hChJVZLE.js";
|
|
16
17
|
cs("inventoryMultiSelectDialog", () => {
|
|
17
18
|
const v = Ct(), { t: _ } = ce();
|
|
@@ -80,7 +81,7 @@ const fs = () => (ce(), j(
|
|
|
80
81
|
`Total (${_t()})`
|
|
81
82
|
));
|
|
82
83
|
function vs(v) {
|
|
83
|
-
const { t: _ } = ce(), r = yt({}), { breakpoints: i } =
|
|
84
|
+
const { t: _ } = ce(), r = yt({}), { breakpoints: i } = Je(), g = et(), e = ze();
|
|
84
85
|
Be(() => {
|
|
85
86
|
for (const n of v.items) {
|
|
86
87
|
if (!n.totalCost)
|
|
@@ -306,7 +307,7 @@ function vs(v) {
|
|
|
306
307
|
[
|
|
307
308
|
j(
|
|
308
309
|
"span",
|
|
309
|
-
m ?
|
|
310
|
+
m ? Xe(
|
|
310
311
|
ye(s.sku, s.quantity, s.measurement, {
|
|
311
312
|
supplier: v.supplier
|
|
312
313
|
})
|
|
@@ -441,7 +442,7 @@ const ys = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
441
442
|
class: "flex flex-col w-[150px] xs:flex-1 text-ellipsis cursor-pointer"
|
|
442
443
|
}, [
|
|
443
444
|
l("div", _s, [
|
|
444
|
-
l("span", null, A(x.totalCost ? t(
|
|
445
|
+
l("span", null, A(x.totalCost ? t(Xe)(x.totalCost) : "No data"), 1),
|
|
445
446
|
g[0] || (g[0] = l("span", { class: "text-fm-color-typo-secondary" }, "/", -1)),
|
|
446
447
|
l("span", null, A(t(xe)(x.totalUnit, !1)), 1),
|
|
447
448
|
l("span", null, A(((S = x.measurement) == null ? void 0 : S.abbrev) ?? x.unit.abbrev), 1)
|
|
@@ -449,7 +450,7 @@ const ys = { class: "flex flex-col gap-8 px-16 xs:px-4 sm:px-4 py-4 items-center
|
|
|
449
450
|
l("div", hs, [
|
|
450
451
|
l("span", null, "(#" + A(x.seqNumber) + ")", 1),
|
|
451
452
|
g[1] || (g[1] = l("span", null, A(" "), -1)),
|
|
452
|
-
l("span", null, A(t(
|
|
453
|
+
l("span", null, A(t(Ze)(new Date(x.date))), 1)
|
|
453
454
|
])
|
|
454
455
|
]);
|
|
455
456
|
}), 128))
|
|
@@ -564,7 +565,7 @@ function Rs(v) {
|
|
|
564
565
|
}
|
|
565
566
|
}), i = q({
|
|
566
567
|
get() {
|
|
567
|
-
return _.value === null ? "" :
|
|
568
|
+
return _.value === null ? "" : Ze(_.value);
|
|
568
569
|
},
|
|
569
570
|
set(e) {
|
|
570
571
|
e ? _.value = /* @__PURE__ */ new Date(`${e} ${g.value}`) : _.value = null;
|
|
@@ -750,7 +751,7 @@ const As = {
|
|
|
750
751
|
}
|
|
751
752
|
});
|
|
752
753
|
function Xs() {
|
|
753
|
-
const v = $e(), _ =
|
|
754
|
+
const v = $e(), _ = We(), r = E(!1);
|
|
754
755
|
fe(r, (u) => {
|
|
755
756
|
u && (g.value = !0, i().finally(() => {
|
|
756
757
|
g.value = !1;
|
|
@@ -794,7 +795,7 @@ function Xs() {
|
|
|
794
795
|
comparePriceBySku: e
|
|
795
796
|
};
|
|
796
797
|
}
|
|
797
|
-
const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" },
|
|
798
|
+
const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Gs = { key: 0 }, Ws = ["colspan"], Js = /* @__PURE__ */ le({
|
|
798
799
|
__name: "TransferItemTable",
|
|
799
800
|
props: {
|
|
800
801
|
templateItem: {},
|
|
@@ -836,14 +837,14 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
|
|
|
836
837
|
], 6);
|
|
837
838
|
}), 128))
|
|
838
839
|
], 2),
|
|
839
|
-
r.showComparePrice && Object.keys(r.comparePriceBySku[(g = r.row.original.sku) == null ? void 0 : g._id] ?? {}).length > 0 ? (k(), T("tr",
|
|
840
|
+
r.showComparePrice && Object.keys(r.comparePriceBySku[(g = r.row.original.sku) == null ? void 0 : g._id] ?? {}).length > 0 ? (k(), T("tr", Gs, [
|
|
840
841
|
l("td", {
|
|
841
842
|
colspan: r.row.getVisibleCells().length
|
|
842
843
|
}, [
|
|
843
844
|
d(Ft, {
|
|
844
845
|
prices: r.comparePriceBySku[(e = r.row.original.sku) == null ? void 0 : e._id]
|
|
845
846
|
}, null, 8, ["prices"])
|
|
846
|
-
], 8,
|
|
847
|
+
], 8, Ws)
|
|
847
848
|
])) : B("", !0)
|
|
848
849
|
], 64);
|
|
849
850
|
};
|
|
@@ -985,7 +986,7 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
|
|
|
985
986
|
},
|
|
986
987
|
emits: ["validation-success", "form:ready"],
|
|
987
988
|
setup(v, { expose: _, emit: r }) {
|
|
988
|
-
const i = v, g = r, e = ht(), { t: u } = ce(), x = Ge(), S = Le(), n = ze(), s = tt(), a =
|
|
989
|
+
const i = v, g = r, e = ht(), { t: u } = ce(), x = Ge(), S = Le(), n = ze(), s = tt(), a = et(), m = wt(), { breakpoints: c } = Je(), p = q(() => c.value.xs || c.value.sm), F = yt({
|
|
989
990
|
value: !1
|
|
990
991
|
}), h = E(!1), $ = q(
|
|
991
992
|
() => {
|
|
@@ -1119,31 +1120,31 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
|
|
|
1119
1120
|
function Ee() {
|
|
1120
1121
|
var ve, De, Ue, Me, Ie;
|
|
1121
1122
|
const o = (Ue = (De = (ve = $.value) == null ? void 0 : ve.purchaseOrder) == null ? void 0 : De.items) == null ? void 0 : Ue.groupBy((N) => N.sku._id), f = n.isEnabled ? n.getAvailableItems((Ie = (Me = e.netSuite) == null ? void 0 : Me.subsidiary) == null ? void 0 : Ie.id) : [], M = o != null && o.size ? S.skus.filter((N) => o.has(N._id)) : S.skus, ne = n.isEnabled ? M.filter((N) => {
|
|
1122
|
-
var ee,
|
|
1123
|
-
const
|
|
1123
|
+
var ee, W, oe, ue;
|
|
1124
|
+
const G = (W = (ee = $.value) == null ? void 0 : ee.purchaseOrder) == null ? void 0 : W.items.find(
|
|
1124
1125
|
(me) => me.sku._id === N._id
|
|
1125
1126
|
);
|
|
1126
|
-
if (
|
|
1127
|
+
if (G != null && G.measurement != null) {
|
|
1127
1128
|
const me = n.getAvailableMeasurements(
|
|
1128
|
-
|
|
1129
|
+
G.sku._id,
|
|
1129
1130
|
(ue = (oe = e.netSuite) == null ? void 0 : oe.subsidiary) == null ? void 0 : ue.id
|
|
1130
1131
|
);
|
|
1131
|
-
return f.includes(
|
|
1132
|
+
return f.includes(G.sku._id) && me.includes(G.measurement.id);
|
|
1132
1133
|
}
|
|
1133
1134
|
return f.includes(N._id);
|
|
1134
1135
|
}).map((N) => N._id) : M.map((N) => N._id), re = M.map(
|
|
1135
1136
|
(N) => {
|
|
1136
|
-
var
|
|
1137
|
+
var G, ee, W, oe;
|
|
1137
1138
|
return {
|
|
1138
|
-
label: ((ee = (
|
|
1139
|
-
sublabel: ((oe = (
|
|
1139
|
+
label: ((ee = (G = o == null ? void 0 : o.get(N._id)) == null ? void 0 : G[0]) == null ? void 0 : ee.name) ?? N.name,
|
|
1140
|
+
sublabel: ((oe = (W = o == null ? void 0 : o.get(N._id)) == null ? void 0 : W[0]) == null ? void 0 : oe.code) ?? N.code,
|
|
1140
1141
|
value: N,
|
|
1141
1142
|
disabled: !ne.includes(N._id)
|
|
1142
1143
|
};
|
|
1143
1144
|
}
|
|
1144
1145
|
), _e = re.filter((N) => {
|
|
1145
|
-
var
|
|
1146
|
-
return (
|
|
1146
|
+
var G;
|
|
1147
|
+
return (G = e.items) == null ? void 0 : G.find((ee) => ee.sku._id === N.value._id);
|
|
1147
1148
|
}).map((N) => N.value);
|
|
1148
1149
|
z.open({
|
|
1149
1150
|
title: u("inventory.transfer.form.items.selectItem"),
|
|
@@ -1164,17 +1165,17 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
|
|
|
1164
1165
|
variant: "tertiary"
|
|
1165
1166
|
}
|
|
1166
1167
|
}).onPrimary((N) => {
|
|
1167
|
-
const
|
|
1168
|
+
const G = e.items ?? [], ee = N.map((W) => {
|
|
1168
1169
|
var me, Te;
|
|
1169
|
-
const oe =
|
|
1170
|
+
const oe = G.find((he) => he.sku._id === W._id);
|
|
1170
1171
|
if (oe)
|
|
1171
1172
|
return oe;
|
|
1172
1173
|
const ue = ((Te = (me = $.value) == null ? void 0 : me.purchaseOrder.items) == null ? void 0 : Te.find(
|
|
1173
|
-
(he) => he.sku._id ===
|
|
1174
|
+
(he) => he.sku._id === W._id
|
|
1174
1175
|
)) ?? {
|
|
1175
|
-
sku:
|
|
1176
|
-
code:
|
|
1177
|
-
name:
|
|
1176
|
+
sku: W,
|
|
1177
|
+
code: W.code,
|
|
1178
|
+
name: W.name,
|
|
1178
1179
|
quantity: {
|
|
1179
1180
|
amount: 1,
|
|
1180
1181
|
precision: 0
|
|
@@ -1189,7 +1190,7 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
|
|
|
1189
1190
|
}
|
|
1190
1191
|
)), ue;
|
|
1191
1192
|
});
|
|
1192
|
-
ee.sort((
|
|
1193
|
+
ee.sort((W, oe) => W.sku.code.localeCompare(oe.sku.code)), e.items = ee;
|
|
1193
1194
|
});
|
|
1194
1195
|
}
|
|
1195
1196
|
function He(o) {
|
|
@@ -1210,7 +1211,7 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
|
|
|
1210
1211
|
});
|
|
1211
1212
|
return (o, f) => {
|
|
1212
1213
|
var me, Te;
|
|
1213
|
-
const M = I("FmChip"), ne = I("FmLabel"), re = I("FmIcon"), _e = I("FmField"), ve = I("FmTooltip"), De = I("FmSelect"), Ue = I("FmTextField"), Me = I("FmTextarea"), Ie = I("FmSwitch"), N = I("FmDatePicker"),
|
|
1214
|
+
const M = I("FmChip"), ne = I("FmLabel"), re = I("FmIcon"), _e = I("FmField"), ve = I("FmTooltip"), De = I("FmSelect"), Ue = I("FmTextField"), Me = I("FmTextarea"), Ie = I("FmSwitch"), N = I("FmDatePicker"), G = I("FmTimePicker"), ee = I("FmFormGroup"), W = I("FmButton"), oe = I("FmTable"), ue = I("FmForm");
|
|
1214
1215
|
return k(), T("div", lo, [
|
|
1215
1216
|
l("div", no, [
|
|
1216
1217
|
(me = i.modelValue) != null && me.template ? (k(), Q(M, {
|
|
@@ -1227,7 +1228,7 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
|
|
|
1227
1228
|
}, null, 8, ["label"]),
|
|
1228
1229
|
o.lastClosingDate ? (k(), Q(M, {
|
|
1229
1230
|
key: 1,
|
|
1230
|
-
label: `${t(u)("inventory.transfer.form.lastClosing")}: ${t(
|
|
1231
|
+
label: `${t(u)("inventory.transfer.form.lastClosing")}: ${t(Ze)(o.lastClosingDate)} ${t(Bt)(o.lastClosingDate)}`,
|
|
1231
1232
|
icon: "calendar_month",
|
|
1232
1233
|
compact: ""
|
|
1233
1234
|
}, null, 8, ["label"])) : B("", !0)
|
|
@@ -1428,7 +1429,7 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
|
|
|
1428
1429
|
}, null, 8, ["modelValue"])
|
|
1429
1430
|
]),
|
|
1430
1431
|
l("div", _o, [
|
|
1431
|
-
d(
|
|
1432
|
+
d(G, {
|
|
1432
1433
|
modelValue: t(C),
|
|
1433
1434
|
"onUpdate:modelValue": f[7] || (f[7] = (D) => ke(C) ? C.value = D : null)
|
|
1434
1435
|
}, null, 8, ["modelValue"])
|
|
@@ -1468,7 +1469,7 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
|
|
|
1468
1469
|
}, [
|
|
1469
1470
|
l("div", Co, A(t(u)("inventory.transfer.form.items.title")), 1),
|
|
1470
1471
|
l("div", So, [
|
|
1471
|
-
d(
|
|
1472
|
+
d(W, {
|
|
1472
1473
|
disabled: o.disabled,
|
|
1473
1474
|
label: t(u)("inventory.transfer.form.items.addItem"),
|
|
1474
1475
|
"prepend-icon": "add",
|
|
@@ -1579,7 +1580,7 @@ const Zs = { class: "fm-typo-body-md-400 line-clamp-2 w-full" }, Ws = { key: 0 }
|
|
|
1579
1580
|
emits: ["update:show", "submitted"],
|
|
1580
1581
|
setup(v, { expose: _, emit: r }) {
|
|
1581
1582
|
var X;
|
|
1582
|
-
const i = v, g = r, e =
|
|
1583
|
+
const i = v, g = r, e = We(), u = wt(), x = $e(), S = tt(), n = Le(), s = Ge(), { t: a } = ce(), m = E(!1), c = E(!1), p = E(!1);
|
|
1583
1584
|
async function F(b) {
|
|
1584
1585
|
if (b) {
|
|
1585
1586
|
c.value = !1;
|
|
@@ -1958,7 +1959,7 @@ const Ro = exports.FfCalculator, Ao = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
1958
1959
|
}), Ko = { class: "flex flex-col gap-24" }, Qo = {
|
|
1959
1960
|
key: 0,
|
|
1960
1961
|
class: "flex items-center gap-8"
|
|
1961
|
-
}, Xo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Zo = { class: "flex flex-col gap-8" },
|
|
1962
|
+
}, Xo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Zo = { class: "flex flex-col gap-8" }, Go = { class: "line-clamp-2 text-ellipsis break-all" }, Wo = {
|
|
1962
1963
|
key: 2,
|
|
1963
1964
|
class: "shrink-0"
|
|
1964
1965
|
}, Jo = {
|
|
@@ -2167,9 +2168,9 @@ const Ro = exports.FfCalculator, Ao = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
2167
2168
|
}
|
|
2168
2169
|
])
|
|
2169
2170
|
}, [
|
|
2170
|
-
l("div",
|
|
2171
|
+
l("div", Go, A(r.value.name), 1)
|
|
2171
2172
|
], 2),
|
|
2172
|
-
g.value ? B("", !0) : (k(), T("div",
|
|
2173
|
+
g.value ? B("", !0) : (k(), T("div", Wo, [
|
|
2173
2174
|
d(L, {
|
|
2174
2175
|
label: t(h)("inventory.ingredient.import.replaceFile"),
|
|
2175
2176
|
variant: p.value ? "destructive" : "secondary",
|
|
@@ -2220,7 +2221,7 @@ const Ro = exports.FfCalculator, Ao = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
2220
2221
|
},
|
|
2221
2222
|
emits: ["update:show", "submitted"],
|
|
2222
2223
|
setup(v, { expose: _, emit: r }) {
|
|
2223
|
-
const i = r, e = St(v, "show"), u = $e(), x =
|
|
2224
|
+
const i = r, e = St(v, "show"), u = $e(), x = We(), S = E(!1), n = E(), s = E();
|
|
2224
2225
|
_({
|
|
2225
2226
|
validateInputs: () => {
|
|
2226
2227
|
var c, p;
|
|
@@ -2336,7 +2337,7 @@ const Ro = exports.FfCalculator, Ao = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
2336
2337
|
}), na = { class: "flex flex-col py-8" }, ra = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ia = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, ua = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, da = {
|
|
2337
2338
|
key: 0,
|
|
2338
2339
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
|
|
2339
|
-
}, ca = { class: "pt-8" }, vt = "ReceiveRequestViewSearchCriteria",
|
|
2340
|
+
}, ca = { class: "pt-8" }, vt = "ReceiveRequestViewSearchCriteria", Da = /* @__PURE__ */ le({
|
|
2340
2341
|
__name: "ReceiveRequestView",
|
|
2341
2342
|
setup(v) {
|
|
2342
2343
|
const { t: _ } = ce(), r = $e();
|
|
@@ -2347,7 +2348,7 @@ const Ro = exports.FfCalculator, Ao = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
2347
2348
|
});
|
|
2348
2349
|
const i = q(
|
|
2349
2350
|
() => !a._currentLocation || n.loading.value
|
|
2350
|
-
), g = os(), e =
|
|
2351
|
+
), g = os(), e = et();
|
|
2351
2352
|
function u() {
|
|
2352
2353
|
const P = {
|
|
2353
2354
|
name: "",
|
|
@@ -2367,7 +2368,7 @@ const Ro = exports.FfCalculator, Ao = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
2367
2368
|
const S = E(u()), n = Zt(
|
|
2368
2369
|
Ye.RECEIVE_REQUEST,
|
|
2369
2370
|
S.value
|
|
2370
|
-
), { columnDefs: s } =
|
|
2371
|
+
), { columnDefs: s } = Gt(
|
|
2371
2372
|
Ye.RECEIVE_REQUEST,
|
|
2372
2373
|
n
|
|
2373
2374
|
), a = Ge();
|
|
@@ -2388,7 +2389,7 @@ const Ro = exports.FfCalculator, Ao = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
2388
2389
|
"Received quantity": b,
|
|
2389
2390
|
"Ordered quantity": C,
|
|
2390
2391
|
Unit: U.sku.unit.abbrev,
|
|
2391
|
-
"Total cost": U.totalCost ?
|
|
2392
|
+
"Total cost": U.totalCost ? Xe(U.totalCost) : null
|
|
2392
2393
|
};
|
|
2393
2394
|
})
|
|
2394
2395
|
), Y = [
|
|
@@ -2445,7 +2446,7 @@ const Ro = exports.FfCalculator, Ao = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
2445
2446
|
if (P === "export")
|
|
2446
2447
|
return m();
|
|
2447
2448
|
}
|
|
2448
|
-
const { breakpoints: h } =
|
|
2449
|
+
const { breakpoints: h } = Je(), $ = q(() => h.value.xs || h.value.sm), y = q(() => $.value ? 10 : 20), w = Kt(), z = q(() => [
|
|
2449
2450
|
{
|
|
2450
2451
|
label: _("inventory.transfer.receiveRequest.actions.create"),
|
|
2451
2452
|
value: "create",
|
|
@@ -2552,7 +2553,7 @@ const Ro = exports.FfCalculator, Ao = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
2552
2553
|
d(To, Ke(t(n).transferDialogProps.value, {
|
|
2553
2554
|
onSubmitted: t(n).fetchData
|
|
2554
2555
|
}), null, 16, ["onSubmitted"]),
|
|
2555
|
-
d(
|
|
2556
|
+
d(Wt, Ke({
|
|
2556
2557
|
scope: t(Ye).RECEIVE_REQUEST
|
|
2557
2558
|
}, t(n).transferDetailsProps.value, {
|
|
2558
2559
|
onSubmitted: t(n).fetchData
|
|
@@ -2567,5 +2568,5 @@ const Ro = exports.FfCalculator, Ao = { class: "flex flex-col flex-1" }, Eo = {
|
|
|
2567
2568
|
}
|
|
2568
2569
|
});
|
|
2569
2570
|
export {
|
|
2570
|
-
|
|
2571
|
+
Da as default
|
|
2571
2572
|
};
|