@feedmepos/mf-inventory-portal 1.0.36-dev.6 → 1.0.36
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-p0OfVvta.js → App-BM-ivBnF.js} +46 -47
- package/dist/{ApprovalView-DPBSTlsb.js → ApprovalView-C4hE43Zp.js} +8 -8
- package/dist/{BindingsDialog-ADhnq8rd.js → BindingsDialog-BqjiXxGY.js} +8 -8
- package/dist/{BindingsPicker-C27I8rla.js → BindingsPicker-DqCR7P5k.js} +1 -1
- package/dist/{BindingsTable-BCrjUyRA.js → BindingsTable-DD_mVBtS.js} +1 -1
- package/dist/{ClosingDraftView-CAeA34YR.js → ClosingDraftView-CL09Xu9q.js} +49 -49
- package/dist/ClosingTemplateView-CDWMdZOk.js +1804 -0
- package/dist/{DeliveryOrderPrintPreview-BHaatock.js → DeliveryOrderPrintPreview-CNPUHnpX.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-n7mTgY-4.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DB6m8oSF.js} +3 -3
- package/dist/{FmMultiselectDialog-D3hCA4Hk.js → FmMultiselectDialog-DJ5cyN7G.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-GRMblS9k.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CPAnSCWa.js} +17 -17
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BMTgY6ZR.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CauBVtK9.js} +1 -1
- package/dist/{IngredientGroupView-CoQ5jJq-.js → IngredientGroupView-D0U1ivRz.js} +21 -21
- package/dist/IngredientsView-pgJWthql.js +1838 -0
- package/dist/IntegrationView-hERgFYsT.js +3303 -0
- package/dist/{InventoryBindingForm-rBxn4aQn.js → InventoryBindingForm-vO00BnZP.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DeAbgkjo.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Bku7tdc-.js} +37 -37
- package/dist/{InventoryBindingSummary-DRnfFnXw.js → InventoryBindingSummary-DWOniuG6.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CFimf-EA.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C4_atZsW.js} +4 -4
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CkLC3e7r.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DUdI1WOL.js} +1 -1
- package/dist/{PublishView-CWPu6VU5.js → PublishView-enVS6QHQ.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-BB-UHWyM.js → PurchaseOrderPrintPreview-Z769Yvkh.js} +1 -1
- package/dist/{ReceiveRequestView-DzE2O14-.js → ReceiveRequestView-BYYWrgNX.js} +773 -789
- package/dist/{RecipeView-CdFqHWFg.js → RecipeView-CU9pkFiv.js} +38 -39
- package/dist/{StockView-2QkNXA2I.js → StockView-iqR-h1Mg.js} +68 -69
- package/dist/{SupplierView-BmIvZtRX.js → SupplierView-DFzgQ53O.js} +11 -12
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-KakO6jI_.js → TransferDetails.vue_vue_type_script_setup_true_lang-BEVlutvf.js} +67 -68
- package/dist/{TransferTemplateView-CiwTECtX.js → TransferTemplateView-EZ_z14kY.js} +107 -108
- package/dist/{UnitView-xcRT1636.js → UnitView-gYD75UdW.js} +19 -19
- package/dist/{WarehouseView-DFUkzdn3.js → WarehouseView-COLgYw-j.js} +14 -14
- package/dist/api/inventory.d.ts +0 -4
- package/dist/api/netsuite.d.ts +2 -7
- package/dist/app-DMbkakEB.js +124324 -0
- package/dist/app.d.ts +0 -9
- package/dist/app.js +6 -6
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +0 -1
- package/dist/components/row-action.enum.d.ts +1 -2
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +0 -1
- package/dist/{decimal-tvbOiScu.js → decimal-BLjZMddB.js} +1 -1
- package/dist/format-unit-display-BkXJg2Ux.js +1230 -0
- package/dist/{index-5P4r_6vv.js → index-Bj0hlHvy.js} +3 -4
- package/dist/{index-DunD6flC.js → index-C5rv3Yu2.js} +1 -1
- package/dist/{stock-D4Q1lqHe.js → stock-DjOpPBxG.js} +1 -1
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +2 -7
- package/dist/stores/inventory.d.ts +0 -9
- package/dist/{supplier-nyMBwI1e.js → supplier-BRKfl2V3.js} +25 -26
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CucQZ-Oc.js → use-ingredient-select-dialog-DRIWNN3P.js} +1 -1
- package/dist/{use-inventory-binding-dialog-ZF-LeZNi.js → use-inventory-binding-dialog-DLnKkFpe.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +1 -4
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +0 -8
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +0 -24
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +0 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1 -16
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +0 -12
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +0 -2
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +0 -1
- package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +0 -2
- package/dist/views/integration/components/netsuite/InventoryTransferOutTable.vue.d.ts +2 -0
- package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +0 -4
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +0 -17
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +0 -2
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +0 -4
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +0 -1
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +0 -4
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +0 -24
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +0 -24
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +0 -1
- package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +0 -3
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1 -16
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +0 -12
- package/dist/vue-i18n-x8-PdKzv.js +2365 -0
- package/package.json +1 -1
- package/dist/ClosingTemplateView-DdtZPTyt.js +0 -1849
- package/dist/IngredientsView-B0n-ed2z.js +0 -1885
- package/dist/IntegrationView-CUacWvt2.js +0 -6531
- package/dist/api/duplicate-template.d.ts +0 -5
- package/dist/app-D8WIbWK8.js +0 -102338
- package/dist/feature-CXf7RRWE.js +0 -19100
- package/dist/format-unit-display-C42DxO2e.js +0 -1275
- package/dist/vue-i18n-BmNDS6W5.js +0 -2365
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { defineComponent as ae, onMounted as Te, computed as E, ref as Y, watch as Ce, inject as ot, resolveComponent as V, openBlock as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as ae, onMounted as Te, computed as E, ref as Y, watch as Ce, inject as ot, resolveComponent as V, openBlock as $, createElementBlock as N, createElementVNode as e, createVNode as m, withCtx as P, renderSlot as xe, withDirectives as Ue, normalizeClass as re, vModelText as Be, reactive as st, h as j, toDisplayString as S, unref as t, createCommentVNode as oe, Fragment as pe, normalizeStyle as _e, renderList as je, createBlock as le, mergeProps as Qe, createTextVNode as ne, mergeModels as qe, useModel as lt, isRef as Ye, Teleport as nt, normalizeProps as at, guardReactiveProps as rt } from "vue";
|
|
2
|
+
import { K as We, aE as he, t as Ne, I as it, aF as ut, aG as dt, j as se, aH as mt, b as Ge, a as Ke, Q as Ee, c as ge, m as ke, Y as be, T as ye, A as we, M as pt, G as ee, u as Ze, ai as ct, a0 as ft, E as Je, e as ue, aI as ve, af as yt, s as vt, a7 as bt, B as gt, i as Le, _ as ht, C as xt } from "./app-DMbkakEB.js";
|
|
3
3
|
import { useI18n as me } from "@feedmepos/mf-common";
|
|
4
|
-
import { P as
|
|
5
|
-
import { components as de, useSnackbar as Ct, useProxiedModel as
|
|
4
|
+
import { P as X, a as _t, f as kt, t as wt, b as ze, u as Tt } from "./format-unit-display-BkXJg2Ux.js";
|
|
5
|
+
import { components as de, useSnackbar as Ct, useProxiedModel as Xe, useBreakpoints as Ft } from "@feedmepos/ui-library";
|
|
6
6
|
import { defineStore as It, storeToRefs as He } from "pinia";
|
|
7
|
-
import { _ as St, b as
|
|
8
|
-
import { u as
|
|
9
|
-
import {
|
|
10
|
-
import { u as
|
|
11
|
-
import { u as Pt } from "./use-ingredient-select-dialog-CucQZ-Oc.js";
|
|
7
|
+
import { _ as St, b as Mt, F as $t, a as Ot } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CPAnSCWa.js";
|
|
8
|
+
import { c as Dt, u as Vt, _ as At } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DB6m8oSF.js";
|
|
9
|
+
import { u as Rt } from "./supplier-BRKfl2V3.js";
|
|
10
|
+
import { u as Pt } from "./use-ingredient-select-dialog-DRIWNN3P.js";
|
|
12
11
|
const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { class: "flex-1" }, Nt = { class: "flex items-center" }, Et = { class: "flex-1" }, Lt = { class: "flex-1" }, zt = /* @__PURE__ */ ae({
|
|
13
12
|
__name: "FmMinMaxInput",
|
|
14
13
|
props: {
|
|
@@ -69,13 +68,13 @@ const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
|
|
|
69
68
|
Ce([u, x], ([d, y]) => {
|
|
70
69
|
const w = v ?? {}, i = a(d), g = a(y), O = r.value;
|
|
71
70
|
if (d !== "" && i === !0) {
|
|
72
|
-
const
|
|
73
|
-
w.min =
|
|
71
|
+
const M = Ne(+d, O);
|
|
72
|
+
w.min = M;
|
|
74
73
|
} else
|
|
75
74
|
w.min = null;
|
|
76
75
|
if (y !== "" && g === !0) {
|
|
77
|
-
const
|
|
78
|
-
w.max =
|
|
76
|
+
const M = Ne(+y, O);
|
|
77
|
+
w.max = M;
|
|
79
78
|
} else
|
|
80
79
|
w.max = null;
|
|
81
80
|
v.min = w.min, v.max = w.max;
|
|
@@ -90,7 +89,7 @@ const Ut = { class: "flex flex-col" }, Bt = { class: "flex flex-col" }, qt = { c
|
|
|
90
89
|
], ...h.rules ?? []]);
|
|
91
90
|
return (d, y) => {
|
|
92
91
|
const w = V("FmLabel"), i = V("FmField"), g = V("FmFormGroup");
|
|
93
|
-
return
|
|
92
|
+
return $(), N("div", Ut, [
|
|
94
93
|
e("div", Bt, [
|
|
95
94
|
e("div", qt, [
|
|
96
95
|
m(w, {
|
|
@@ -186,7 +185,7 @@ const et = It("netsuite-custom-field-helper", () => {
|
|
|
186
185
|
}
|
|
187
186
|
let x = v.code;
|
|
188
187
|
if (p.isEnabled) {
|
|
189
|
-
const c = p.
|
|
188
|
+
const c = p.getItemPKTCode(a, (F = r.measurement) == null ? void 0 : F.id);
|
|
190
189
|
c && (x = c);
|
|
191
190
|
}
|
|
192
191
|
s({
|
|
@@ -320,9 +319,9 @@ function Yt(p, h = {}) {
|
|
|
320
319
|
);
|
|
321
320
|
},
|
|
322
321
|
rules: [
|
|
323
|
-
|
|
322
|
+
Mt(o.quantityStep),
|
|
324
323
|
...+se(o.quantity) ? [
|
|
325
|
-
|
|
324
|
+
$t(
|
|
326
325
|
+se(
|
|
327
326
|
o.minimumQuantity ?? {
|
|
328
327
|
amount: 1,
|
|
@@ -489,11 +488,11 @@ function Yt(p, h = {}) {
|
|
|
489
488
|
...b,
|
|
490
489
|
id: f
|
|
491
490
|
});
|
|
492
|
-
return c.enableTotalCost && p.transferType ===
|
|
491
|
+
return c.enableTotalCost && p.transferType === X.PURCHASE ? o : o.filter((f) => f.id !== "Cost");
|
|
493
492
|
})
|
|
494
493
|
};
|
|
495
494
|
}
|
|
496
|
-
const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-center" }, Kt = { class: "flex-1 flex gap-1 items-center" },
|
|
495
|
+
const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-center" }, Kt = { class: "flex-1 flex gap-1 items-center" }, Zt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Jt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Xt = { class: "flex gap-8 w-full" }, eo = { class: "flex-1 flex flex-col gap-4" }, to = { class: "flex-1 flex flex-col gap-4" }, oo = {
|
|
497
496
|
key: 0,
|
|
498
497
|
class: "flex gap-8 w-full"
|
|
499
498
|
}, so = { class: "flex-1 flex flex-col gap-4" }, lo = { class: "flex-1 flex flex-col gap-4" }, no = { class: "flex gap-8 w-full" }, ao = { class: "flex-1 flex flex-col gap-4" }, ro = /* @__PURE__ */ ae({
|
|
@@ -508,13 +507,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
508
507
|
return a;
|
|
509
508
|
}
|
|
510
509
|
return (a, r) => {
|
|
511
|
-
var u, x, F, c, o, f, b, k, T, R, U, d, y, w, i, g, O,
|
|
510
|
+
var u, x, F, c, o, f, b, k, T, R, U, d, y, w, i, g, O, M, _, W, te, L, B, Z, l, n, C, q, z, G;
|
|
512
511
|
const s = V("FmLabel");
|
|
513
|
-
return
|
|
512
|
+
return $(), N("div", Wt, [
|
|
514
513
|
e("div", Gt, [
|
|
515
514
|
e("div", Kt, [
|
|
516
|
-
e("span",
|
|
517
|
-
e("span",
|
|
515
|
+
e("span", Zt, " (" + S(a.row.original.sku.code) + ") ", 1),
|
|
516
|
+
e("span", Jt, S(a.row.original.sku.name), 1)
|
|
518
517
|
]),
|
|
519
518
|
e("div", null, [
|
|
520
519
|
m(t(ee), {
|
|
@@ -523,7 +522,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
523
522
|
}, null, 8, ["render", "props"])
|
|
524
523
|
])
|
|
525
524
|
]),
|
|
526
|
-
e("div",
|
|
525
|
+
e("div", Xt, [
|
|
527
526
|
e("div", eo, [
|
|
528
527
|
m(s, {
|
|
529
528
|
label: t(h)(`inventory.transfer.form.items.table.${t(Q).Code}`)
|
|
@@ -545,13 +544,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
545
544
|
r[1] || (r[1] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
546
545
|
])
|
|
547
546
|
]),
|
|
548
|
-
a.row.original ? (
|
|
547
|
+
a.row.original ? ($(), N("div", oo, [
|
|
549
548
|
e("div", so, [
|
|
550
549
|
m(s, {
|
|
551
550
|
label: t(h)(`inventory.transfer.form.items.table.${t(Q).DefaultAmount}`)
|
|
552
551
|
}, null, 8, ["label"]),
|
|
553
552
|
m(t(ee), {
|
|
554
|
-
render: (
|
|
553
|
+
render: (M = (O = (g = a.cellByColId[t(Q).DefaultAmount]) == null ? void 0 : g.column) == null ? void 0 : O.columnDef) == null ? void 0 : M.cell,
|
|
555
554
|
props: (W = (_ = a.cellByColId[t(Q).DefaultAmount]) == null ? void 0 : _.getContext) == null ? void 0 : W.call(_)
|
|
556
555
|
}, null, 8, ["render", "props"]),
|
|
557
556
|
r[2] || (r[2] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
@@ -562,7 +561,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
562
561
|
}, null, 8, ["label"]),
|
|
563
562
|
m(t(ee), {
|
|
564
563
|
render: (B = (L = (te = a.cellByColId[t(Q).Step]) == null ? void 0 : te.column) == null ? void 0 : L.columnDef) == null ? void 0 : B.cell,
|
|
565
|
-
props: (l = (
|
|
564
|
+
props: (l = (Z = a.cellByColId[t(Q).Step]) == null ? void 0 : Z.getContext) == null ? void 0 : l.call(Z)
|
|
566
565
|
}, null, 8, ["render", "props"]),
|
|
567
566
|
r[3] || (r[3] = e("div", { class: "fm-typo-en-body-md-600 text-fm-color-primary" }, null, -1))
|
|
568
567
|
])
|
|
@@ -594,14 +593,14 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
594
593
|
function h(v) {
|
|
595
594
|
return v.column.columnDef.meta;
|
|
596
595
|
}
|
|
597
|
-
return (v, a) => (
|
|
596
|
+
return (v, a) => ($(), N(pe, null, [
|
|
598
597
|
e("tr", {
|
|
599
598
|
class: "hover:bg-fm-color-opacity-sm border-b border-fm-color-neutral-gray-100",
|
|
600
599
|
style: _e({ backgroundColor: v.errorMessage ? "#ffd6d6" : void 0 })
|
|
601
600
|
}, [
|
|
602
|
-
(
|
|
601
|
+
($(!0), N(pe, null, je(v.row.getVisibleCells(), (r) => {
|
|
603
602
|
var s, u, x, F, c;
|
|
604
|
-
return
|
|
603
|
+
return $(), N("td", {
|
|
605
604
|
key: r.id,
|
|
606
605
|
class: re(["text-fm-color-typo-primary", ((s = h(r)) == null ? void 0 : s.cellClass) ?? "px-16", "py-2"]),
|
|
607
606
|
style: _e({
|
|
@@ -619,7 +618,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
619
618
|
], 6);
|
|
620
619
|
}), 128))
|
|
621
620
|
], 4),
|
|
622
|
-
v.errorMessage ? (
|
|
621
|
+
v.errorMessage ? ($(), N("tr", uo, [
|
|
623
622
|
e("td", {
|
|
624
623
|
colspan: v.row.getVisibleCells().length,
|
|
625
624
|
class: "text-red-600 px-16 py-2"
|
|
@@ -638,7 +637,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
638
637
|
},
|
|
639
638
|
emits: ["update:disabled"],
|
|
640
639
|
setup(p, { expose: h, emit: v }) {
|
|
641
|
-
const a = p, r = v, s = We(), { t: u } = me(), x = Y({}), F =
|
|
640
|
+
const a = p, r = v, s = We(), { t: u } = me(), x = Y({}), F = Ze(), c = Ke(), o = Rt(), f = ge(), b = Ge(), k = et();
|
|
642
641
|
Ce(
|
|
643
642
|
() => s.purchaseOrder.items.length,
|
|
644
643
|
() => {
|
|
@@ -658,12 +657,12 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
658
657
|
), R = E({
|
|
659
658
|
get() {
|
|
660
659
|
var l, n;
|
|
661
|
-
return typeof ((n = (l = s.purchaseOrder) == null ? void 0 : l.supplier) == null ? void 0 : n.internal) == "string" ?
|
|
660
|
+
return typeof ((n = (l = s.purchaseOrder) == null ? void 0 : l.supplier) == null ? void 0 : n.internal) == "string" ? X.TRANSFER : X.PURCHASE;
|
|
662
661
|
},
|
|
663
662
|
set(l) {
|
|
664
663
|
var C, q;
|
|
665
|
-
const n = typeof ((q = (C = s.purchaseOrder) == null ? void 0 : C.supplier) == null ? void 0 : q.internal) == "string" ?
|
|
666
|
-
l !== n && (s.purchaseOrder.supplier = l ===
|
|
664
|
+
const n = typeof ((q = (C = s.purchaseOrder) == null ? void 0 : C.supplier) == null ? void 0 : q.internal) == "string" ? X.TRANSFER : X.PURCHASE;
|
|
665
|
+
l !== n && (s.purchaseOrder.supplier = l === X.PURCHASE ? T.locationOptionsTypePurchase.value[0] : T.locationOptionsTypeTransfer.value[0]);
|
|
667
666
|
}
|
|
668
667
|
}), U = E(() => T.transferLocationOptions.value), d = E({
|
|
669
668
|
get() {
|
|
@@ -702,7 +701,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
702
701
|
return ((q = C.doc) == null ? void 0 : q._id) === ((z = s.purchaseOrder.supplier) == null ? void 0 : z._id);
|
|
703
702
|
}) ? `Location ${(n = s.purchaseOrder.supplier) == null ? void 0 : n.name} must be removed because template cannot be used to transfer to itself.` : !0;
|
|
704
703
|
}
|
|
705
|
-
const
|
|
704
|
+
const M = E({
|
|
706
705
|
get() {
|
|
707
706
|
return s.purchaseOrder.remark ?? void 0;
|
|
708
707
|
},
|
|
@@ -754,7 +753,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
754
753
|
return s.purchaseOrder.items;
|
|
755
754
|
},
|
|
756
755
|
get transferType() {
|
|
757
|
-
return
|
|
756
|
+
return X.PURCHASE;
|
|
758
757
|
},
|
|
759
758
|
get disabled() {
|
|
760
759
|
return a.disabled;
|
|
@@ -774,7 +773,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
774
773
|
}
|
|
775
774
|
})
|
|
776
775
|
), L = E(() => te.columnDefs.value), { promptSelectIngredients: B } = Pt();
|
|
777
|
-
async function
|
|
776
|
+
async function Z() {
|
|
778
777
|
const n = c.skus.map((D) => ({
|
|
779
778
|
label: D.name,
|
|
780
779
|
sublabel: D.code,
|
|
@@ -788,25 +787,25 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
788
787
|
const A = c.skuById[D], K = C.find((H) => H.sku._id === A._id);
|
|
789
788
|
if (K)
|
|
790
789
|
return K;
|
|
791
|
-
const
|
|
790
|
+
const J = { amount: 1, precision: be(A.unit) };
|
|
792
791
|
let I = {
|
|
793
792
|
id: f.usePurchaseOrderV2 ? crypto.randomUUID() : void 0,
|
|
794
793
|
sku: A,
|
|
795
794
|
code: A.code,
|
|
796
795
|
name: A.name,
|
|
797
|
-
quantity:
|
|
798
|
-
minimumQuantity:
|
|
796
|
+
quantity: J,
|
|
797
|
+
minimumQuantity: J,
|
|
799
798
|
// maximumQuantity: adjustmentAmountMultiplyDecimal(minimumQuantity, {
|
|
800
799
|
// amount: 100,
|
|
801
800
|
// precision: 0
|
|
802
801
|
// }),
|
|
803
|
-
quantityStep:
|
|
802
|
+
quantityStep: J
|
|
804
803
|
};
|
|
805
804
|
return k.validateUnitInput(
|
|
806
805
|
I,
|
|
807
806
|
A,
|
|
808
807
|
{
|
|
809
|
-
amount:
|
|
808
|
+
amount: J,
|
|
810
809
|
measurement: null
|
|
811
810
|
},
|
|
812
811
|
(H) => {
|
|
@@ -822,7 +821,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
822
821
|
if (A.length > 0)
|
|
823
822
|
G.push(...A);
|
|
824
823
|
else {
|
|
825
|
-
const K = q.find((
|
|
824
|
+
const K = q.find((J) => J.sku._id === D);
|
|
826
825
|
K && G.push(K);
|
|
827
826
|
}
|
|
828
827
|
}
|
|
@@ -830,14 +829,14 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
830
829
|
}
|
|
831
830
|
return (l, n) => {
|
|
832
831
|
const C = V("FmTextField"), q = V("FmSelect"), z = V("FmTextarea"), G = V("FmButton"), D = V("FmTable"), A = V("FmFormGroup"), K = V("FmForm");
|
|
833
|
-
return
|
|
832
|
+
return $(), le(K, {
|
|
834
833
|
ref_key: "formRef",
|
|
835
834
|
ref: _,
|
|
836
835
|
class: "flex flex-col gap-32",
|
|
837
836
|
disabled: l.disabled
|
|
838
837
|
}, {
|
|
839
838
|
default: P(() => {
|
|
840
|
-
var
|
|
839
|
+
var J;
|
|
841
840
|
return [
|
|
842
841
|
e("div", co, [
|
|
843
842
|
e("div", fo, [
|
|
@@ -855,13 +854,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
855
854
|
items: [
|
|
856
855
|
{
|
|
857
856
|
label: t(u)("inventory.transfer.form.type.purchase"),
|
|
858
|
-
value: t(
|
|
857
|
+
value: t(X).PURCHASE,
|
|
859
858
|
disabled: !t(T).locationOptionsTypePurchase.value.length,
|
|
860
859
|
sublabel: t(T).locationOptionsTypePurchase.value.length ? void 0 : t(u)("inventory.transfer.form.noSupplierAvailable")
|
|
861
860
|
},
|
|
862
861
|
{
|
|
863
862
|
label: t(u)("inventory.transfer.form.type.transfer"),
|
|
864
|
-
value: t(
|
|
863
|
+
value: t(X).TRANSFER,
|
|
865
864
|
disabled: !t(T).locationOptionsTypeTransfer.value.length,
|
|
866
865
|
sublabel: t(T).locationOptionsTypeTransfer.value.length ? void 0 : t(u)("inventory.transfer.form.noLocationAvailable")
|
|
867
866
|
}
|
|
@@ -879,7 +878,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
879
878
|
_: 1
|
|
880
879
|
}, 8, ["label", "model-value", "items", "rules"]),
|
|
881
880
|
m(q, {
|
|
882
|
-
label: R.value === t(
|
|
881
|
+
label: R.value === t(X).PURCHASE ? t(u)("inventory.transfer.form.purchaseFrom") : t(u)("inventory.transfer.form.transferFrom"),
|
|
883
882
|
modelValue: d.value,
|
|
884
883
|
"onUpdate:modelValue": n[2] || (n[2] = (I) => d.value = I),
|
|
885
884
|
items: U.value
|
|
@@ -916,8 +915,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
916
915
|
label: t(u)("inventory.transfer.form.remark"),
|
|
917
916
|
"label-mark": "optional",
|
|
918
917
|
"max-length": 240,
|
|
919
|
-
modelValue:
|
|
920
|
-
"onUpdate:modelValue": n[4] || (n[4] = (I) =>
|
|
918
|
+
modelValue: M.value,
|
|
919
|
+
"onUpdate:modelValue": n[4] || (n[4] = (I) => M.value = I),
|
|
921
920
|
class: re({ "text-fm-color-typo-disabled": l.disabled })
|
|
922
921
|
}, null, 8, ["label", "modelValue", "class"])
|
|
923
922
|
])
|
|
@@ -944,7 +943,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
944
943
|
e("div", bo, [
|
|
945
944
|
m(A, {
|
|
946
945
|
"model-value": [
|
|
947
|
-
(
|
|
946
|
+
(J = a.modelValue.purchaseOrder.supplier) == null ? void 0 : J._id,
|
|
948
947
|
...a.modelValue.locations ?? []
|
|
949
948
|
].join(","),
|
|
950
949
|
rules: [O]
|
|
@@ -954,7 +953,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
954
953
|
e("div", go, [
|
|
955
954
|
e("div", ho, [
|
|
956
955
|
e("div", xo, S(t(u)("inventory.transfer.form.items.title")), 1),
|
|
957
|
-
t(b).isEnabled ? (
|
|
956
|
+
t(b).isEnabled ? ($(), le(G, {
|
|
958
957
|
key: 0,
|
|
959
958
|
label: "Check NetSuite",
|
|
960
959
|
"prepend-icon": "troubleshoot",
|
|
@@ -968,11 +967,11 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
968
967
|
"prepend-icon": "add",
|
|
969
968
|
variant: "plain",
|
|
970
969
|
class: "border-2 rounded-lg border-fm-color-primary",
|
|
971
|
-
onClick: n[5] || (n[5] = (I) =>
|
|
970
|
+
onClick: n[5] || (n[5] = (I) => Z()),
|
|
972
971
|
size: "md"
|
|
973
972
|
}, null, 8, ["disabled", "label"])
|
|
974
973
|
]),
|
|
975
|
-
t(b).isEnabled ? (
|
|
974
|
+
t(b).isEnabled ? ($(), N("div", _o, n[9] || (n[9] = [
|
|
976
975
|
ne(" NetSuite is enabled. "),
|
|
977
976
|
e("ul", { style: { "list-style": "initial", "margin-left": "20px" } }, [
|
|
978
977
|
e("li", null, ' When adding new item or changing UOM, the first match available custom code (if any) will be applied to "Code" for each item by default. '),
|
|
@@ -991,7 +990,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
991
990
|
]),
|
|
992
991
|
n[13] || (n[13] = e("p", null, ' You can leave "Max" empty to remove the limit on the maximum quantity of the item when creating an order request. ', -1))
|
|
993
992
|
]),
|
|
994
|
-
(
|
|
993
|
+
($(), le(D, {
|
|
995
994
|
"column-defs": L.value,
|
|
996
995
|
"row-data": t(s).purchaseOrder.items,
|
|
997
996
|
key: t(s).purchaseOrder.items.map((I) => I.sku._id).join("."),
|
|
@@ -1007,7 +1006,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1007
1006
|
}, null, 8, ["row", "errorMessage", "disabled"])
|
|
1008
1007
|
]),
|
|
1009
1008
|
"list-row": P((I) => [
|
|
1010
|
-
(
|
|
1009
|
+
($(), le(Je, {
|
|
1011
1010
|
row: I,
|
|
1012
1011
|
key: t(s).purchaseOrder.items.map((H) => H.sku._id).join(".")
|
|
1013
1012
|
}, {
|
|
@@ -1051,7 +1050,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1051
1050
|
}
|
|
1052
1051
|
return (u, x) => {
|
|
1053
1052
|
const F = V("FmButton"), c = V("FmDialog");
|
|
1054
|
-
return
|
|
1053
|
+
return $(), N("div", null, [
|
|
1055
1054
|
m(F, {
|
|
1056
1055
|
label: v.label,
|
|
1057
1056
|
loading: v.loading,
|
|
@@ -1090,7 +1089,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1090
1089
|
]);
|
|
1091
1090
|
};
|
|
1092
1091
|
}
|
|
1093
|
-
}), Io = { class: "flex items-center" }, So = { class: "fm-typo-en-title-md-800" },
|
|
1092
|
+
}), Io = { class: "flex items-center" }, So = { class: "fm-typo-en-title-md-800" }, Mo = { class: "flex gap-4" }, $o = /* @__PURE__ */ ae({
|
|
1094
1093
|
__name: "TransferTemplateDialog",
|
|
1095
1094
|
props: /* @__PURE__ */ qe({
|
|
1096
1095
|
mode: {},
|
|
@@ -1103,7 +1102,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1103
1102
|
emits: /* @__PURE__ */ qe(["update:show", "submitted"], ["update:disabled"]),
|
|
1104
1103
|
setup(p, { expose: h, emit: v }) {
|
|
1105
1104
|
var w;
|
|
1106
|
-
const a = p, r = v, s = _t(), u = Ct(), { t: x } = me(), F =
|
|
1105
|
+
const a = p, r = v, s = _t(), u = Ct(), { t: x } = me(), F = Xe(a, "show");
|
|
1107
1106
|
function c() {
|
|
1108
1107
|
return {
|
|
1109
1108
|
_id: "",
|
|
@@ -1172,20 +1171,20 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1172
1171
|
const i = o.value;
|
|
1173
1172
|
if (i) {
|
|
1174
1173
|
b.value = !0, (((g = i.purchaseOrder.supplier) == null ? void 0 : g.internal) === ve.enum.warehouse || ((O = i.purchaseOrder.supplier) == null ? void 0 : O.internal) === ve.enum.restaurant) && (i.purchaseOrder.items = i.purchaseOrder.items.map(
|
|
1175
|
-
({ totalCost:
|
|
1174
|
+
({ totalCost: M, ..._ }) => _
|
|
1176
1175
|
));
|
|
1177
1176
|
try {
|
|
1178
|
-
await s.createTemplate(i), await new Promise((
|
|
1177
|
+
await s.createTemplate(i), await new Promise((M) => setTimeout(M, 1e3)), u.open({
|
|
1179
1178
|
title: x("inventory.transfer.template.create.success"),
|
|
1180
1179
|
message: x("inventory.transfer.template.create.successMessage"),
|
|
1181
1180
|
type: "success"
|
|
1182
1181
|
}), r("update:show", !1), r("submitted");
|
|
1183
|
-
} catch (
|
|
1182
|
+
} catch (M) {
|
|
1184
1183
|
u.open({
|
|
1185
1184
|
title: x("inventory.transfer.template.create.error"),
|
|
1186
1185
|
message: x("inventory.transfer.template.create.errorMessage"),
|
|
1187
1186
|
type: "error"
|
|
1188
|
-
}), console.error("Error in creating transfer template",
|
|
1187
|
+
}), console.error("Error in creating transfer template", M);
|
|
1189
1188
|
} finally {
|
|
1190
1189
|
b.value = !1;
|
|
1191
1190
|
}
|
|
@@ -1196,20 +1195,20 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1196
1195
|
const i = o.value;
|
|
1197
1196
|
if (i) {
|
|
1198
1197
|
b.value = !0, (((g = i.purchaseOrder.supplier) == null ? void 0 : g.internal) === ve.enum.warehouse || ((O = i.purchaseOrder.supplier) == null ? void 0 : O.internal) === ve.enum.restaurant) && (i.purchaseOrder.items = i.purchaseOrder.items.map(
|
|
1199
|
-
({ totalCost:
|
|
1198
|
+
({ totalCost: M, ..._ }) => _
|
|
1200
1199
|
));
|
|
1201
1200
|
try {
|
|
1202
|
-
await s.updateTemplate(i), await new Promise((
|
|
1201
|
+
await s.updateTemplate(i), await new Promise((M) => setTimeout(M, 1e3)), u.open({
|
|
1203
1202
|
title: x("inventory.transfer.template.update.success"),
|
|
1204
1203
|
message: x("inventory.transfer.template.update.successMessage"),
|
|
1205
1204
|
type: "success"
|
|
1206
1205
|
}), r("update:show", !1), r("submitted");
|
|
1207
|
-
} catch (
|
|
1206
|
+
} catch (M) {
|
|
1208
1207
|
u.open({
|
|
1209
1208
|
title: x("inventory.transfer.template.update.error"),
|
|
1210
1209
|
message: x("inventory.transfer.template.update.errorMessage"),
|
|
1211
1210
|
type: "error"
|
|
1212
|
-
}), console.error("Error in updating transfer template",
|
|
1211
|
+
}), console.error("Error in updating transfer template", M);
|
|
1213
1212
|
} finally {
|
|
1214
1213
|
b.value = !1;
|
|
1215
1214
|
}
|
|
@@ -1228,8 +1227,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1228
1227
|
(g = (i = T.value) == null ? void 0 : i.validateInputs) == null || g.call(i);
|
|
1229
1228
|
}
|
|
1230
1229
|
return (i, g) => {
|
|
1231
|
-
const O = V("FmButton"),
|
|
1232
|
-
return
|
|
1230
|
+
const O = V("FmButton"), M = V("FmSideSheet");
|
|
1231
|
+
return $(), le(M, {
|
|
1233
1232
|
modelValue: t(F),
|
|
1234
1233
|
"onUpdate:modelValue": g[3] || (g[3] = (_) => Ye(F) ? F.value = _ : null),
|
|
1235
1234
|
"dismiss-away": "",
|
|
@@ -1242,7 +1241,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1242
1241
|
])
|
|
1243
1242
|
]),
|
|
1244
1243
|
default: P(() => [
|
|
1245
|
-
(
|
|
1244
|
+
($(), le(To, {
|
|
1246
1245
|
class: "w-full",
|
|
1247
1246
|
ref_key: "formRef",
|
|
1248
1247
|
ref: T,
|
|
@@ -1255,7 +1254,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1255
1254
|
}, null, 8, ["model-value", "disabled"]))
|
|
1256
1255
|
]),
|
|
1257
1256
|
"side-sheet-footer": P(() => [
|
|
1258
|
-
e("div",
|
|
1257
|
+
e("div", Mo, [
|
|
1259
1258
|
m(Fo, {
|
|
1260
1259
|
loading: b.value,
|
|
1261
1260
|
label: t(x)("common.save"),
|
|
@@ -1295,7 +1294,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1295
1294
|
}, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Go = { class: "fm-typo-en-body-lg-600" }, Ko = {
|
|
1296
1295
|
key: 3,
|
|
1297
1296
|
class: "flex flex-col gap-4"
|
|
1298
|
-
},
|
|
1297
|
+
}, Zo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Jo = { class: "fm-typo-en-body-lg-600" }, Xo = { class: "border border-fm-color-neutral-gray-200 fm-corner-radius-lg p-16" }, es = { class: "flex flex-col gap-8" }, ts = { class: "fm-typo-en-body-lg-600" }, os = { class: "flex w-full gap-4" }, ss = { class: "grow fm-typo-en-body-lg-400 line-clamp-2" }, ls = { class: "fm-typo-en-body-lg-600 shrink-0" }, ns = { class: "flex w-full gap-4 fm-typo-en-body-sm-400" }, as = { class: "grow fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, rs = {
|
|
1299
1298
|
key: 0,
|
|
1300
1299
|
class: "shrink-0 fm-typo-en-body-lg-400 text-fm-color-typo-secondary"
|
|
1301
1300
|
}, is = {
|
|
@@ -1318,13 +1317,13 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1318
1317
|
], F = Y(""), c = E(
|
|
1319
1318
|
() => {
|
|
1320
1319
|
var b, k, T, R;
|
|
1321
|
-
return ((k = (b = u.value) == null ? void 0 : b.supplier) == null ? void 0 : k.internal) === "restaurant" || ((R = (T = u.value) == null ? void 0 : T.supplier) == null ? void 0 : R.internal) === "warehouse" ?
|
|
1320
|
+
return ((k = (b = u.value) == null ? void 0 : b.supplier) == null ? void 0 : k.internal) === "restaurant" || ((R = (T = u.value) == null ? void 0 : T.supplier) == null ? void 0 : R.internal) === "warehouse" ? X.TRANSFER : X.PURCHASE;
|
|
1322
1321
|
}
|
|
1323
|
-
), o = Y(!0), f =
|
|
1322
|
+
), o = Y(!0), f = Xe(v, "show");
|
|
1324
1323
|
return (b, k) => {
|
|
1325
1324
|
var g;
|
|
1326
1325
|
const T = V("FmMenuDivider"), R = V("FmCard"), U = V("FmIcon"), d = V("FmTextField"), y = V("FmTable"), w = V("FmButton"), i = V("FmSideSheet");
|
|
1327
|
-
return
|
|
1326
|
+
return $(), le(i, {
|
|
1328
1327
|
header: t(s)("inventory.transfer.template.details.view", { template: (g = b.template) == null ? void 0 : g.name }),
|
|
1329
1328
|
modelValue: t(f),
|
|
1330
1329
|
"onUpdate:modelValue": k[2] || (k[2] = (O) => Ye(f) ? f.value = O : null),
|
|
@@ -1333,7 +1332,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1333
1332
|
"max-width": 1200
|
|
1334
1333
|
}, {
|
|
1335
1334
|
default: P(() => {
|
|
1336
|
-
var O,
|
|
1335
|
+
var O, M;
|
|
1337
1336
|
return [
|
|
1338
1337
|
e("div", Oo, [
|
|
1339
1338
|
e("div", null, [
|
|
@@ -1342,7 +1341,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1342
1341
|
class: "flex flex-col gap-8 px-12 py-16"
|
|
1343
1342
|
}, {
|
|
1344
1343
|
default: P(() => {
|
|
1345
|
-
var _, W, te, L, B,
|
|
1344
|
+
var _, W, te, L, B, Z, l, n, C;
|
|
1346
1345
|
return [
|
|
1347
1346
|
e("div", Do, [
|
|
1348
1347
|
e("div", Vo, S(t(s)("inventory.transfer.template.details.templateSummary")), 1),
|
|
@@ -1358,28 +1357,28 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1358
1357
|
]),
|
|
1359
1358
|
e("div", qo, S(t(yt)(((_ = b.template) == null ? void 0 : _._id) ?? "")), 1)
|
|
1360
1359
|
]),
|
|
1361
|
-
(W = b.template) != null && W.updatedAt ? (
|
|
1360
|
+
(W = b.template) != null && W.updatedAt ? ($(), N("div", No, [
|
|
1362
1361
|
e("div", Eo, [
|
|
1363
1362
|
e("div", Lo, S(t(s)("inventory.transfer.receiveRequest.details.updatedAt")), 1)
|
|
1364
1363
|
]),
|
|
1365
1364
|
e("div", zo, [
|
|
1366
1365
|
ne(S(t(vt)(new Date(b.template.updatedAt))) + " ", 1),
|
|
1367
|
-
(te = b.template.updatedBy) != null && te.name ? (
|
|
1366
|
+
(te = b.template.updatedBy) != null && te.name ? ($(), N(pe, { key: 0 }, [
|
|
1368
1367
|
ne(" (" + S(b.template.updatedBy.name) + ") ", 1)
|
|
1369
1368
|
], 64)) : oe("", !0)
|
|
1370
1369
|
])
|
|
1371
1370
|
])) : oe("", !0),
|
|
1372
|
-
(B = (L = u.value) == null ? void 0 : L.supplier) != null && B.name ? (
|
|
1371
|
+
(B = (L = u.value) == null ? void 0 : L.supplier) != null && B.name ? ($(), N("div", Ho, [
|
|
1373
1372
|
e("div", jo, S(t(s)("inventory.transfer.receiveRequest.details.from")), 1),
|
|
1374
|
-
e("div", Qo, S((l = (
|
|
1373
|
+
e("div", Qo, S((l = (Z = u.value) == null ? void 0 : Z.supplier) == null ? void 0 : l.name), 1)
|
|
1375
1374
|
])) : oe("", !0),
|
|
1376
|
-
(n = u.value) != null && n.ref ? (
|
|
1375
|
+
(n = u.value) != null && n.ref ? ($(), N("div", Yo, [
|
|
1377
1376
|
e("div", Wo, S(t(s)("inventory.transfer.receiveRequest.details.reference")), 1),
|
|
1378
1377
|
e("div", Go, S(u.value.ref), 1)
|
|
1379
1378
|
])) : oe("", !0),
|
|
1380
|
-
(C = u.value) != null && C.remark ? (
|
|
1381
|
-
e("div",
|
|
1382
|
-
e("div",
|
|
1379
|
+
(C = u.value) != null && C.remark ? ($(), N("div", Ko, [
|
|
1380
|
+
e("div", Zo, S(t(s)("inventory.transfer.receiveRequest.details.remark")), 1),
|
|
1381
|
+
e("div", Jo, S(u.value.remark), 1)
|
|
1383
1382
|
])) : oe("", !0)
|
|
1384
1383
|
])
|
|
1385
1384
|
];
|
|
@@ -1387,10 +1386,10 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1387
1386
|
_: 1
|
|
1388
1387
|
})
|
|
1389
1388
|
]),
|
|
1390
|
-
e("div",
|
|
1389
|
+
e("div", Xo, [
|
|
1391
1390
|
e("div", es, [
|
|
1392
1391
|
e("div", ts, S(t(s)("inventory.transfer.receiveRequest.details.requestedItems")), 1),
|
|
1393
|
-
(
|
|
1392
|
+
($(!0), N(pe, null, je(((O = u.value) == null ? void 0 : O.items) ?? [], (_) => ($(), N("div", {
|
|
1394
1393
|
key: _.code,
|
|
1395
1394
|
class: "flex flex-col"
|
|
1396
1395
|
}, [
|
|
@@ -1401,9 +1400,9 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1401
1400
|
]),
|
|
1402
1401
|
e("div", ns, [
|
|
1403
1402
|
e("div", as, S(_.code), 1),
|
|
1404
|
-
_.totalCost && t(r).enableTotalCost ? (
|
|
1403
|
+
_.totalCost && t(r).enableTotalCost ? ($(), N("div", rs, " (" + S(t(bt)(_.totalCost)) + ") ", 1)) : oe("", !0)
|
|
1405
1404
|
]),
|
|
1406
|
-
t(wt)(_) ? (
|
|
1405
|
+
t(wt)(_) ? ($(), N("div", is, [
|
|
1407
1406
|
m(U, {
|
|
1408
1407
|
name: "error",
|
|
1409
1408
|
color: "system-error-300",
|
|
@@ -1433,7 +1432,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1433
1432
|
style: { height: "500px" },
|
|
1434
1433
|
"column-defs": x,
|
|
1435
1434
|
"search-value": F.value,
|
|
1436
|
-
"row-data": ((
|
|
1435
|
+
"row-data": ((M = v.template) == null ? void 0 : M.locations) ?? [{ name: "All locations" }]
|
|
1437
1436
|
}, null, 8, ["search-value", "row-data"])
|
|
1438
1437
|
])
|
|
1439
1438
|
])
|
|
@@ -1453,16 +1452,16 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1453
1452
|
}, 8, ["header", "modelValue", "dismiss-away"]);
|
|
1454
1453
|
};
|
|
1455
1454
|
}
|
|
1456
|
-
}), cs = { class: "flex-1 flex flex-col gap-8" }, fs = { class: "flex flex-col" }, ys = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vs = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, bs = { class: "fm-typo-en-body-lg-400" }, gs = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, hs = { class: "fm-typo-en-body-lg-400 line-clamp-2" },
|
|
1455
|
+
}), cs = { class: "flex-1 flex flex-col gap-8" }, fs = { class: "flex flex-col" }, ys = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, vs = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, bs = { class: "fm-typo-en-body-lg-400" }, gs = { class: "fm-typo-en-body-lg-400 line-clamp-1" }, hs = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, $s = /* @__PURE__ */ ae({
|
|
1457
1456
|
__name: "TransferTemplateView",
|
|
1458
1457
|
setup(p) {
|
|
1459
|
-
const { t: h } = me(), { createTemplate: v, viewTemplate: a, importTemplates: r, exportTemplates: s } = ze(), { templateDialogProps: u, templateDetailsProps: x } = He(ze()), F = Tt(), { loading: c, templates: o } = He(F), f = Y(!1), b = gt(), k =
|
|
1458
|
+
const { t: h } = me(), { createTemplate: v, viewTemplate: a, importTemplates: r, exportTemplates: s } = ze(), { templateDialogProps: u, templateDetailsProps: x } = He(ze()), F = Tt(), { loading: c, templates: o } = He(F), f = Y(!1), b = gt(), k = Ze(), { breakpoints: T } = Ft();
|
|
1460
1459
|
Te(F.fetchTemplates);
|
|
1461
1460
|
const R = E(
|
|
1462
1461
|
() => f.value || c.value || !k._currentLocation
|
|
1463
1462
|
), U = E(() => o.value), d = Y(""), y = E(() => T.value.xs || T.value.sm), w = E(() => y.value ? 10 : 20);
|
|
1464
|
-
function i(
|
|
1465
|
-
switch (
|
|
1463
|
+
function i(M) {
|
|
1464
|
+
switch (M) {
|
|
1466
1465
|
case Le.Add:
|
|
1467
1466
|
return v();
|
|
1468
1467
|
case "refresh":
|
|
@@ -1473,8 +1472,8 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1473
1472
|
return s();
|
|
1474
1473
|
}
|
|
1475
1474
|
}
|
|
1476
|
-
function g(
|
|
1477
|
-
return
|
|
1475
|
+
function g(M) {
|
|
1476
|
+
return M;
|
|
1478
1477
|
}
|
|
1479
1478
|
const O = E(() => [
|
|
1480
1479
|
{
|
|
@@ -1499,9 +1498,9 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1499
1498
|
isPrimary: !1
|
|
1500
1499
|
}
|
|
1501
1500
|
]);
|
|
1502
|
-
return (
|
|
1501
|
+
return (M, _) => {
|
|
1503
1502
|
const W = V("FmTable");
|
|
1504
|
-
return
|
|
1503
|
+
return $(), N(pe, null, [
|
|
1505
1504
|
m(ht, {
|
|
1506
1505
|
title: t(h)("inventory.transfer.template.title2"),
|
|
1507
1506
|
actions: O.value,
|
|
@@ -1524,7 +1523,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1524
1523
|
search: d.value,
|
|
1525
1524
|
"onUpdate:search": _[0] || (_[0] = (L) => d.value = L)
|
|
1526
1525
|
}, null, 8, ["search"]),
|
|
1527
|
-
(
|
|
1526
|
+
($(), le(W, {
|
|
1528
1527
|
style: _e(t(b).tableHeight),
|
|
1529
1528
|
"column-defs": t(F).columnDefs,
|
|
1530
1529
|
"row-data": U.value,
|
|
@@ -1535,18 +1534,18 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1535
1534
|
"page-size": w.value
|
|
1536
1535
|
}, {
|
|
1537
1536
|
"list-row": P((L) => [
|
|
1538
|
-
m(
|
|
1537
|
+
m(Je, {
|
|
1539
1538
|
row: L,
|
|
1540
1539
|
onRowClick: (B) => t(a)(B)
|
|
1541
1540
|
}, {
|
|
1542
1541
|
default: P((B) => {
|
|
1543
|
-
var
|
|
1542
|
+
var Z, l, n, C, q, z, G, D, A, K, J, I, H, ie, Fe, Ie, Se, Me, $e, Oe, ce, De, Ve, Ae, Re, fe, Pe;
|
|
1544
1543
|
return [
|
|
1545
1544
|
e("div", cs, [
|
|
1546
1545
|
e("div", fs, [
|
|
1547
1546
|
e("div", ys, [
|
|
1548
1547
|
m(t(ee), {
|
|
1549
|
-
render: (n = (l = (
|
|
1548
|
+
render: (n = (l = (Z = B._id) == null ? void 0 : Z.column) == null ? void 0 : l.columnDef) == null ? void 0 : n.cell,
|
|
1550
1549
|
props: (q = (C = B._id) == null ? void 0 : C.getContext) == null ? void 0 : q.call(C)
|
|
1551
1550
|
}, null, 8, ["render", "props"])
|
|
1552
1551
|
]),
|
|
@@ -1558,7 +1557,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1558
1557
|
]),
|
|
1559
1558
|
e("div", bs, [
|
|
1560
1559
|
m(t(ee), {
|
|
1561
|
-
render: (H = (I = (
|
|
1560
|
+
render: (H = (I = (J = B.supplier) == null ? void 0 : J.column) == null ? void 0 : I.columnDef) == null ? void 0 : H.cell,
|
|
1562
1561
|
props: (Fe = (ie = B.supplier) == null ? void 0 : ie.getContext) == null ? void 0 : Fe.call(ie)
|
|
1563
1562
|
}, null, 8, ["render", "props"])
|
|
1564
1563
|
]),
|
|
@@ -1566,7 +1565,7 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1566
1565
|
e("div", gs, S(L.original.purchaseOrder.items.length ? L.original.purchaseOrder.items.map((tt) => tt.name).join(", ") : "No items"), 1),
|
|
1567
1566
|
e("div", hs, [
|
|
1568
1567
|
m(t(ee), {
|
|
1569
|
-
render: (Oe = (
|
|
1568
|
+
render: (Oe = ($e = (Me = B.ref) == null ? void 0 : Me.column) == null ? void 0 : $e.columnDef) == null ? void 0 : Oe.cell,
|
|
1570
1569
|
props: (De = (ce = B.ref) == null ? void 0 : ce.getContext) == null ? void 0 : De.call(ce)
|
|
1571
1570
|
}, null, 8, ["render", "props"])
|
|
1572
1571
|
])
|
|
@@ -1590,9 +1589,9 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1590
1589
|
}),
|
|
1591
1590
|
_: 1
|
|
1592
1591
|
}, 8, ["title", "actions"]),
|
|
1593
|
-
(
|
|
1592
|
+
($(), le(nt, { to: "body" }, [
|
|
1594
1593
|
m(ps, at(rt(t(x))), null, 16),
|
|
1595
|
-
m(
|
|
1594
|
+
m($o, Qe(t(u), {
|
|
1596
1595
|
onSubmitted: _[2] || (_[2] = (te) => t(F).fetchTemplates())
|
|
1597
1596
|
}), null, 16)
|
|
1598
1597
|
]))
|
|
@@ -1601,5 +1600,5 @@ const Wt = { class: "flex flex-col gap-8 py-16" }, Gt = { class: "flex items-cen
|
|
|
1601
1600
|
}
|
|
1602
1601
|
});
|
|
1603
1602
|
export {
|
|
1604
|
-
|
|
1603
|
+
$s as default
|
|
1605
1604
|
};
|