@feedmepos/mf-inventory-portal 0.0.23-dev.23 → 0.0.23-dev.25
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-BvEB-iR6.js → App-CNgj7enS.js} +49 -45
- package/dist/{ApprovalView-BmPYoGNQ.js → ApprovalView-CaVxfwVZ.js} +15 -15
- package/dist/{BindingsDialog-BqKMRdvl.js → BindingsDialog-jRZXoJFn.js} +9 -9
- package/dist/{BindingsPicker-BaEdafvS.js → BindingsPicker-B1HSa3PR.js} +5 -5
- package/dist/{BindingsTable--d-nM2Gv.js → BindingsTable-OF56C-md.js} +8 -8
- package/dist/ClosingDraftView-B6okKype.js +1134 -0
- package/dist/{ClosingTemplateView-BdUGSMOi.js → ClosingTemplateView-iX4shLcv.js} +251 -255
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CIk6CwoD.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bj2M9OAD.js} +13 -13
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Bt1hyXul.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CnPZaNTp.js} +46 -46
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-wYnVSXtH.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CGpmbbpm.js} +7 -7
- package/dist/{IngredientGroupView-0-nzZJcl.js → IngredientGroupView-BeW-0hWb.js} +40 -40
- package/dist/{IngredientsView-ClRyZ-cb.js → IngredientsView-CuVBlnOu.js} +207 -210
- package/dist/{IntegrationView-CgmsV7oX.js → IntegrationView-lDfeScNo.js} +89 -90
- package/dist/{InventoryBindingForm-DnnGejy0.js → InventoryBindingForm-D6EuWIkE.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CapSS-KQ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CUpKKG4l.js} +27 -27
- package/dist/{InventoryBindingSummary-Dz-F2ofe.js → InventoryBindingSummary-CD60iCr_.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-glXw963h.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-7jkFhj27.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DpIyyZL-.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DDXsfGVf.js} +17 -18
- package/dist/{PurchaseOrderPrintPreview--hGI0aFU.js → PurchaseOrderPrintPreview-eJxn76Ir.js} +1 -1
- package/dist/{ReceiveRequestView-cPIOC0rj.js → ReceiveRequestView-D6Cdkd36.js} +26 -27
- package/dist/{RecipeView-BK74973y.js → RecipeView-BWy56DhW.js} +47 -48
- package/dist/{StockView-D6TYfv5x.js → StockView-BEXAvBjP.js} +7 -7
- package/dist/{SupplierView-BFwzHw7l.js → SupplierView-C4vwkzdX.js} +203 -206
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-ChwtBdsS.js → TransferDetails.vue_vue_type_script_setup_true_lang-CIcj9NWg.js} +61 -62
- package/dist/{TransferTemplateView-De5sG12Q.js → TransferTemplateView-27Ng_EgG.js} +144 -145
- package/dist/{UnitView-CQoB6Uq_.js → UnitView-CXvkO_fh.js} +3 -3
- package/dist/{WarehouseView-Di4mLjoS.js → WarehouseView-Cl6HN1EW.js} +52 -52
- package/dist/app-Dt6Yd1pM.js +84133 -0
- package/dist/app.js +1 -1
- package/dist/{decimal-D2WMzK1d.js → decimal-D1M8NkLV.js} +1 -1
- package/dist/{feature-SYqA_m5m.js → feature-CqDcAtUy.js} +1 -1
- package/dist/{format-unit-display-D0G-LaQY.js → format-unit-display-BI9EVHb3.js} +50 -53
- package/dist/{index-Bj8PDCww.js → index-7V6E004u.js} +1 -1
- package/dist/{stock-CEexJdO3.js → stock-wjdjOqbM.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-BdB47EjI.js → supplier-D3-7dgm5.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-n3khDS2D.js → use-inventory-binding-dialog-BLHffZgi.js} +1 -1
- package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
- package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
- package/dist/views/adjustment-template/import/export.d.ts +60 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +178 -8
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +1498 -478
- package/package.json +3 -3
- package/dist/ClosingDraftView-Clh7bujC.js +0 -1116
- package/dist/FmDroppableField-DHhcKcJf.js +0 -154
- package/dist/app-DpJictvi.js +0 -58871
- package/dist/netsuite-TWj-9PDj.js +0 -251
- package/dist/xlsx-Cbd5szA2.js +0 -24004
- package/dist/xlsx.util-hCH_XTAD.js +0 -78
package/dist/app.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCoreStore as t } from "@feedmepos/mf-common";
|
|
2
|
-
import { u as o,
|
|
2
|
+
import { u as o, aw as a, a as i } from "./app-Dt6Yd1pM.js";
|
|
3
3
|
const c = /* @__PURE__ */ new Set([
|
|
4
4
|
// vivo pizza prod
|
|
5
5
|
"business_6687e91fa7240b001ba3f4c2",
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { W as Ce, a as L, K as Ie, ad as F, p as Ne, ae as de, q as pe, u as z, i as P, r as Ae, aF as ne, s as fe, t as H, O as q, aE as De, ax as Oe, T as Fe, v as Pe, w as Ue, b as ye, d as oe, e as Z, R as ae, H as Me, ac as Be, D as W, h as A, f as Qe } from "./app-Dt6Yd1pM.js";
|
|
2
2
|
import { useCoreStore as J, useI18n as X } from "@feedmepos/mf-common";
|
|
3
|
-
import { useDialogChild as
|
|
4
|
-
import { defineStore as
|
|
5
|
-
import { defineComponent as
|
|
6
|
-
import { useRouter as
|
|
7
|
-
import {
|
|
8
|
-
import { F as Ke } from "./FmDroppableField-DHhcKcJf.js";
|
|
9
|
-
import { u as ee } from "./supplier-BdB47EjI.js";
|
|
10
|
-
import { u as ge } from "./netsuite-TWj-9PDj.js";
|
|
3
|
+
import { useDialogChild as Le, useSnackbar as he, useDialog as He, FmButtonVariant as se, components as ie } from "@feedmepos/ui-library";
|
|
4
|
+
import { defineStore as ve } from "pinia";
|
|
5
|
+
import { defineComponent as ge, resolveComponent as M, openBlock as T, createElementBlock as w, createElementVNode as $, normalizeClass as B, createTextVNode as qe, toDisplayString as I, unref as C, createCommentVNode as Q, createVNode as D, withCtx as G, Fragment as U, renderList as j, ref as E, onMounted as Ve, computed as le, watch as je, createSlots as ze, createBlock as V, h as Y } from "vue";
|
|
6
|
+
import { useRouter as Ke } from "vue-router";
|
|
7
|
+
import { u as ee } from "./supplier-D3-7dgm5.js";
|
|
11
8
|
const be = Ce((e, r) => {
|
|
12
9
|
function i() {
|
|
13
10
|
var n;
|
|
@@ -55,10 +52,10 @@ function Se(e) {
|
|
|
55
52
|
code: r.code,
|
|
56
53
|
name: r.name,
|
|
57
54
|
unit: ((m = r.unit.measurements.find((a) => a.id === r.trackingMeasurement)) == null ? void 0 : m.abbrev) ?? r.unit.abbrev,
|
|
58
|
-
defaultQuantity: +
|
|
59
|
-
minimumQuantity: +
|
|
60
|
-
maximumQuantity: +
|
|
61
|
-
quantityStep: +
|
|
55
|
+
defaultQuantity: +P(e.quantity),
|
|
56
|
+
minimumQuantity: +P(e.minimumQuantity ?? ce),
|
|
57
|
+
maximumQuantity: +P(e.maximumQuantity ?? ce),
|
|
58
|
+
quantityStep: +P(e.quantityStep)
|
|
62
59
|
};
|
|
63
60
|
}
|
|
64
61
|
function Te() {
|
|
@@ -120,7 +117,7 @@ function We(e) {
|
|
|
120
117
|
[],
|
|
121
118
|
h.map((t) => t.name),
|
|
122
119
|
...c.map((t) => h.map((S) => t[S.id]))
|
|
123
|
-
], v = h.map((t) => `system:${t.id}`), y =
|
|
120
|
+
], v = h.map((t) => `system:${t.id}`), y = F(b, v);
|
|
124
121
|
return { name: l.name, sheet: y };
|
|
125
122
|
}).reduce(
|
|
126
123
|
(l, c) => {
|
|
@@ -132,8 +129,8 @@ function We(e) {
|
|
|
132
129
|
sheets: {},
|
|
133
130
|
sheetOccurence: {}
|
|
134
131
|
}
|
|
135
|
-
)) == null ? void 0 : s.sheets, n = `${i == null ? void 0 : i.name} transfer templates (${Ne(/* @__PURE__ */ new Date())}).xlsx`, p =
|
|
136
|
-
return
|
|
132
|
+
)) == null ? void 0 : s.sheets, n = `${i == null ? void 0 : i.name} transfer templates (${Ne(/* @__PURE__ */ new Date())}).xlsx`, p = de(a);
|
|
133
|
+
return pe(p, n), n;
|
|
137
134
|
}
|
|
138
135
|
function Ye() {
|
|
139
136
|
const e = J(), r = ee(), i = z(), m = L(), a = e.currentBusiness.value, n = Se({
|
|
@@ -189,7 +186,7 @@ function Ye() {
|
|
|
189
186
|
[],
|
|
190
187
|
p.map((t) => t.name),
|
|
191
188
|
p.map((t) => n[t.id])
|
|
192
|
-
], l = p.map((t) => `system:${t.id}`), c =
|
|
189
|
+
], l = p.map((t) => `system:${t.id}`), c = F(s, l), h = F(
|
|
193
190
|
[
|
|
194
191
|
...r.businessSuppliers.map((t) => [
|
|
195
192
|
`${t.name} (${t._id})`,
|
|
@@ -216,7 +213,7 @@ function Ye() {
|
|
|
216
213
|
})
|
|
217
214
|
],
|
|
218
215
|
["Name", "Type", "Line 1", "Line 2", "City", "Postal", "State", "Country"]
|
|
219
|
-
), b =
|
|
216
|
+
), b = F(
|
|
220
217
|
i.locations.map((t) => {
|
|
221
218
|
var S, _, d, o, u, x;
|
|
222
219
|
return [
|
|
@@ -230,7 +227,7 @@ function Ye() {
|
|
|
230
227
|
];
|
|
231
228
|
}),
|
|
232
229
|
["Name", "Line 1", "Line 2", "City", "Postal", "State", "Country"]
|
|
233
|
-
), v =
|
|
230
|
+
), v = F(
|
|
234
231
|
m.skus.map((t) => [
|
|
235
232
|
t.code,
|
|
236
233
|
t.name,
|
|
@@ -238,13 +235,13 @@ function Ye() {
|
|
|
238
235
|
...t.unit.measurements.map((S) => S.abbrev)
|
|
239
236
|
]),
|
|
240
237
|
["Code", "Name", "Base unit", "Measurements"]
|
|
241
|
-
), y =
|
|
238
|
+
), y = de({
|
|
242
239
|
Template: c,
|
|
243
240
|
Source: h,
|
|
244
241
|
Destination: b,
|
|
245
242
|
Ingredient: v
|
|
246
243
|
}), f = `${a == null ? void 0 : a.name} transfer templates import.xlsx`;
|
|
247
|
-
return
|
|
244
|
+
return pe(y, f), f;
|
|
248
245
|
}
|
|
249
246
|
function Ge(e, r) {
|
|
250
247
|
const i = new Array(), m = /(.*) \(((supplier_|warehouse_|restaurant_).{24,})\)/, n = z().locationByDbName, s = ee().supplierById, l = e.trim(), c = m.exec(l);
|
|
@@ -322,7 +319,7 @@ function Je(e) {
|
|
|
322
319
|
c,
|
|
323
320
|
h,
|
|
324
321
|
b
|
|
325
|
-
] =
|
|
322
|
+
] = fe(e);
|
|
326
323
|
return {
|
|
327
324
|
id: `${i[1] ?? ""}`.trim(),
|
|
328
325
|
name: `${m[1] ?? ""}`.trim(),
|
|
@@ -349,7 +346,7 @@ function Xe(e) {
|
|
|
349
346
|
v,
|
|
350
347
|
y,
|
|
351
348
|
...f
|
|
352
|
-
] =
|
|
349
|
+
] = fe(e);
|
|
353
350
|
if (!r || !r.length || r.some((o) => o.length && !o.startsWith("system:")))
|
|
354
351
|
throw new Error("Missing meta header. Excel file does not come from the template.");
|
|
355
352
|
const t = r.map((o) => o.split(":")[1]), _ = [
|
|
@@ -424,7 +421,7 @@ function et(e, r, i) {
|
|
|
424
421
|
q(p, s)
|
|
425
422
|
), y = c(v);
|
|
426
423
|
typeof y == "string" && n.push(`Maximum amount: ${y}`), +e.minimumQuantity > +e.maximumQuantity && n.push("Minimum amount must be less than or equal to maximum amount");
|
|
427
|
-
const f =
|
|
424
|
+
const f = Oe(+e.minimumQuantity, +e.maximumQuantity), t = H(
|
|
428
425
|
e.defaultQuantity,
|
|
429
426
|
q(p, s)
|
|
430
427
|
), S = c(t), _ = f(`${e.defaultQuantity}`);
|
|
@@ -560,7 +557,7 @@ function rt() {
|
|
|
560
557
|
const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-col" }, at = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, st = { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, it = {
|
|
561
558
|
key: 0,
|
|
562
559
|
class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
|
|
563
|
-
}, lt = { key: 0 }, me = /* @__PURE__ */
|
|
560
|
+
}, lt = { key: 0 }, me = /* @__PURE__ */ ge({
|
|
564
561
|
__name: "TransferTemplateImportItem",
|
|
565
562
|
props: {
|
|
566
563
|
type: {},
|
|
@@ -583,15 +580,15 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
|
|
|
583
580
|
"text-fm-color-system-error-300": r.errors.length
|
|
584
581
|
})
|
|
585
582
|
}, [
|
|
586
|
-
|
|
587
|
-
$("span", st, " (" + I(C(
|
|
583
|
+
qe(I(r.name) + " ", 1),
|
|
584
|
+
$("span", st, " (" + I(C(Fe)(`${r.transferType}`)) + ") ", 1),
|
|
588
585
|
r.type === "create" ? (T(), w("span", it, "(new)")) : Q("", !0)
|
|
589
586
|
], 2),
|
|
590
587
|
r.errors.length ? (T(), w("div", lt, [
|
|
591
588
|
D(a, { "z-index": 50 }, {
|
|
592
589
|
content: G(() => [
|
|
593
590
|
$("ol", null, [
|
|
594
|
-
(T(!0), w(
|
|
591
|
+
(T(!0), w(U, null, j(r.errors, (l, c) => (T(), w("li", { key: c }, I(l), 1))), 128))
|
|
595
592
|
])
|
|
596
593
|
]),
|
|
597
594
|
default: G(() => [
|
|
@@ -630,11 +627,11 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
|
|
|
630
627
|
}, yt = { class: "text-fm-color-system-error-300 fm-typo-en-body-sm-400" }, ht = {
|
|
631
628
|
key: 0,
|
|
632
629
|
class: "max-h-[200px] overflow-y-auto flex flex-col gap-8"
|
|
633
|
-
}, vt = { class: "fm-typo-en-body-lg-600" }, gt = /* @__PURE__ */
|
|
630
|
+
}, vt = { class: "fm-typo-en-body-lg-600" }, gt = /* @__PURE__ */ ge({
|
|
634
631
|
__name: "TransferTemplateImport",
|
|
635
632
|
setup(e) {
|
|
636
|
-
const r = E(null), i =
|
|
637
|
-
|
|
633
|
+
const r = E(null), i = Le(), m = he(), a = E(!1), n = E(!1), p = ee();
|
|
634
|
+
Ve(async () => {
|
|
638
635
|
n.value = !0;
|
|
639
636
|
try {
|
|
640
637
|
await p.readSuppliers().delayed(1e3);
|
|
@@ -658,7 +655,7 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
|
|
|
658
655
|
try {
|
|
659
656
|
a.value = !0;
|
|
660
657
|
const [t] = await Promise.all([
|
|
661
|
-
|
|
658
|
+
Ue(f),
|
|
662
659
|
// fake buffer
|
|
663
660
|
new Promise((o) => setTimeout(o, 1e3))
|
|
664
661
|
]);
|
|
@@ -693,7 +690,7 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
|
|
|
693
690
|
}), a.value = !1;
|
|
694
691
|
}
|
|
695
692
|
}
|
|
696
|
-
return
|
|
693
|
+
return je(r, (f) => {
|
|
697
694
|
f && y(f);
|
|
698
695
|
}), (f, t) => {
|
|
699
696
|
const S = M("FmCircularProgress"), _ = M("FmIcon"), d = M("FmButton");
|
|
@@ -707,8 +704,8 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
|
|
|
707
704
|
})
|
|
708
705
|
]),
|
|
709
706
|
t[1] || (t[1] = $("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, "Loading...", -1))
|
|
710
|
-
])) : (T(), w(
|
|
711
|
-
D(
|
|
707
|
+
])) : (T(), w(U, { key: 1 }, [
|
|
708
|
+
D(Pe, {
|
|
712
709
|
class: B({
|
|
713
710
|
"w-full": !0,
|
|
714
711
|
"h-[200px]": !r.value
|
|
@@ -717,7 +714,7 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
|
|
|
717
714
|
onFileUpload: t[0] || (t[0] = (o) => r.value = o),
|
|
718
715
|
label: C(v)("inventory.ingredient.import.uploadTemplate"),
|
|
719
716
|
"button-label": C(v)("inventory.ingredient.import.selectFile")
|
|
720
|
-
},
|
|
717
|
+
}, ze({ _: 2 }, [
|
|
721
718
|
r.value ? {
|
|
722
719
|
name: "default",
|
|
723
720
|
fn: G(({ openFileDialog: o }) => [
|
|
@@ -763,7 +760,7 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
|
|
|
763
760
|
]))
|
|
764
761
|
], 2),
|
|
765
762
|
s.value.length ? (T(), w("div", ft, [
|
|
766
|
-
(T(!0), w(
|
|
763
|
+
(T(!0), w(U, null, j(s.value, (u, x) => (T(), w("div", {
|
|
767
764
|
key: x,
|
|
768
765
|
class: "flex gap-8 items-center"
|
|
769
766
|
}, [
|
|
@@ -782,7 +779,7 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
|
|
|
782
779
|
]), 1032, ["class", "label", "button-label"]),
|
|
783
780
|
b.value ? (T(), w("div", ht, [
|
|
784
781
|
$("div", vt, I(C(v)("inventory.ingredient.import.summary")), 1),
|
|
785
|
-
(T(!0), w(
|
|
782
|
+
(T(!0), w(U, null, j(l.value, (o, u) => (T(), V(me, {
|
|
786
783
|
key: u,
|
|
787
784
|
name: o.template.name,
|
|
788
785
|
"transfer-type": typeof o.template.purchaseOrder.supplier.internal == "string" ? C(R).TRANSFER : C(R).PURCHASE,
|
|
@@ -791,7 +788,7 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
|
|
|
791
788
|
errors: o.errors,
|
|
792
789
|
type: "create"
|
|
793
790
|
}, null, 8, ["name", "transfer-type", "locations", "items", "errors"]))), 128)),
|
|
794
|
-
(T(!0), w(
|
|
791
|
+
(T(!0), w(U, null, j(c.value, (o) => (T(), V(me, {
|
|
795
792
|
key: o.template._id,
|
|
796
793
|
name: o.template.name,
|
|
797
794
|
"transfer-type": typeof o.template.purchaseOrder.supplier.internal == "string" ? C(R).TRANSFER : C(R).PURCHASE,
|
|
@@ -808,7 +805,7 @@ const nt = { class: "flex items-center gap-12 pl-8" }, ot = { class: "flex flex-
|
|
|
808
805
|
});
|
|
809
806
|
function bt(e) {
|
|
810
807
|
var n, p;
|
|
811
|
-
const r =
|
|
808
|
+
const r = ye();
|
|
812
809
|
if (!r.isEnabled) return !0;
|
|
813
810
|
if (!e.internal) {
|
|
814
811
|
const s = r.getNetSuiteVendor(e._id), l = s == null ? void 0 : s.subsidiaryId, c = (n = r.currentVendorSubsidiary(e._id)) == null ? void 0 : n.id;
|
|
@@ -817,8 +814,8 @@ function bt(e) {
|
|
|
817
814
|
const i = r.getNetSuiteLocation(`${e.internal}_${e._id}`), m = r.getLocationSubsidiary(i == null ? void 0 : i.netSuiteId).id, a = (p = r.currentLocationSubsidiary()) == null ? void 0 : p.id;
|
|
818
815
|
return m && m == a;
|
|
819
816
|
}
|
|
820
|
-
const xt =
|
|
821
|
-
const e =
|
|
817
|
+
const xt = ve("transferTemplateActions", () => {
|
|
818
|
+
const e = He(), r = he(), i = z(), m = $e(), a = be(), n = ye(), p = Ke(), { t: s } = X(), l = E({});
|
|
822
819
|
function c() {
|
|
823
820
|
l.value = {
|
|
824
821
|
mode: oe.CREATE,
|
|
@@ -898,7 +895,7 @@ const xt = pe("transferTemplateActions", () => {
|
|
|
898
895
|
}, x = m.templates.filter(
|
|
899
896
|
(g) => {
|
|
900
897
|
var N;
|
|
901
|
-
return (!g.locations || g.locations.find((
|
|
898
|
+
return (!g.locations || g.locations.find((O) => O.doc._id === i.currentLocation.doc._id)) && ((N = g.purchaseOrder.supplier) == null ? void 0 : N._id) !== i.currentLocation.doc._id;
|
|
902
899
|
}
|
|
903
900
|
);
|
|
904
901
|
if (!x.length)
|
|
@@ -918,10 +915,10 @@ const xt = pe("transferTemplateActions", () => {
|
|
|
918
915
|
}).onSecondary(() => u(void 0)).onClose(() => u(void 0)), d;
|
|
919
916
|
const k = x.map((g) => {
|
|
920
917
|
var re;
|
|
921
|
-
const N = !g.purchaseOrder.items.length || g.purchaseOrder.items.some(xe),
|
|
918
|
+
const N = !g.purchaseOrder.items.length || g.purchaseOrder.items.some(xe), O = !bt(g.purchaseOrder.supplier), K = g.purchaseOrder.supplier.internal ? n.getNetSuiteLocation(
|
|
922
919
|
`${g.purchaseOrder.supplier.internal}_${g.purchaseOrder.supplier._id}`
|
|
923
|
-
) : n.getNetSuiteVendor(g.purchaseOrder.supplier._id), we =
|
|
924
|
-
location is ${(re = n.getLocationSubsidiary(K == null ? void 0 : K.netSuiteId)) == null ? void 0 : re.fullName}.` : void 0, ke = N ||
|
|
920
|
+
) : n.getNetSuiteVendor(g.purchaseOrder.supplier._id), we = O ? `The subsidiary of the request
|
|
921
|
+
location is ${(re = n.getLocationSubsidiary(K == null ? void 0 : K.netSuiteId)) == null ? void 0 : re.fullName}.` : void 0, ke = N || O, Ee = N ? "This template is invalid. Update this template." : O ? we : void 0, Re = `${g.purchaseOrder.supplier.internal ? "Transfer" : "Purchase"} from ${g.purchaseOrder.supplier.name}`;
|
|
925
922
|
return {
|
|
926
923
|
label: g.name,
|
|
927
924
|
value: g._id,
|
|
@@ -931,7 +928,7 @@ const xt = pe("transferTemplateActions", () => {
|
|
|
931
928
|
});
|
|
932
929
|
return k.sort((g, N) => +!!g.disabled - +!!N.disabled), e.open({
|
|
933
930
|
title: "Select one template",
|
|
934
|
-
contentComponent:
|
|
931
|
+
contentComponent: Me,
|
|
935
932
|
contentComponentProps: {
|
|
936
933
|
items: k,
|
|
937
934
|
singleSelect: !0
|
|
@@ -1057,7 +1054,7 @@ function ue(e) {
|
|
|
1057
1054
|
const { skuById: r } = L(), i = Z(e);
|
|
1058
1055
|
return i.purchaseOrder.items = e.purchaseOrder.items.filter((m) => r[m.sku._id]), i;
|
|
1059
1056
|
}
|
|
1060
|
-
const $e =
|
|
1057
|
+
const $e = ve(
|
|
1061
1058
|
"transferTemplateTable",
|
|
1062
1059
|
function() {
|
|
1063
1060
|
const { t: r } = X(), { viewTemplate: i, updateTemplate: m, deleteTemplate: a } = xt(), n = E(!1), p = E(new Array()), s = be(), l = L();
|
|
@@ -1106,7 +1103,7 @@ const $e = pe(
|
|
|
1106
1103
|
accessorKey: "_id",
|
|
1107
1104
|
header: () => r("inventory.transfer.table.createdAt"),
|
|
1108
1105
|
cell(y) {
|
|
1109
|
-
return
|
|
1106
|
+
return Be(`${y.getValue()}`);
|
|
1110
1107
|
},
|
|
1111
1108
|
enableSorting: !0
|
|
1112
1109
|
},
|
|
@@ -1179,7 +1176,7 @@ const $e = pe(
|
|
|
1179
1176
|
W[A.Edit],
|
|
1180
1177
|
W[A.Delete]
|
|
1181
1178
|
];
|
|
1182
|
-
return
|
|
1179
|
+
return Qe(t, (S) => b(S, f));
|
|
1183
1180
|
},
|
|
1184
1181
|
enableSorting: !1,
|
|
1185
1182
|
size: 40,
|
|
@@ -1196,15 +1193,15 @@ const $e = pe(
|
|
|
1196
1193
|
};
|
|
1197
1194
|
}
|
|
1198
1195
|
);
|
|
1199
|
-
function
|
|
1196
|
+
function Ct(e, r, i) {
|
|
1200
1197
|
const m = (i == null ? void 0 : i.abbrev) ?? r.abbrev;
|
|
1201
|
-
return `${
|
|
1198
|
+
return `${P(e, !1)} ${m}`;
|
|
1202
1199
|
}
|
|
1203
1200
|
export {
|
|
1204
1201
|
R as P,
|
|
1205
1202
|
be as a,
|
|
1206
1203
|
xt as b,
|
|
1207
|
-
|
|
1204
|
+
Ct as f,
|
|
1208
1205
|
xe as t,
|
|
1209
1206
|
$e as u
|
|
1210
1207
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aS as L, a1 as U, aT as J, a2 as Oe, aU as Us, a4 as tr, aV as Rt } from "./app-Dt6Yd1pM.js";
|
|
2
2
|
function Vs(t, e) {
|
|
3
3
|
for (var r = 0; r < e.length; r++) {
|
|
4
4
|
const n = e[r];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { W as l, u as m, a as B, am as k } from "./app-Dt6Yd1pM.js";
|
|
2
2
|
import { useCoreStore as p } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as v } from "@feedmepos/ui-library";
|
|
4
4
|
import { ref as y } from "vue";
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.fm-droppable-field[data-v-e121b2c1]{display:flex;flex-direction:column;gap:4px}.fm-droppable-field__container[data-v-e121b2c1]{position:relative;background-color:var(--fm-color-neutral-white);padding:12px;border-radius:8px;border-width:2px;border-style:dashed;border-color:var(--fm-color-neutral-gray-300);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}.fm-droppable-field__container--disabled[data-v-e121b2c1]{cursor:not-allowed;color:var(--fm-color-neutral-gray-200);border-color:var(--fm-color-neutral-gray-200)}.fm-droppable-field__container--dragging[data-v-e121b2c1]{border-color:var(--fm-color-primary)}.fm-droppable-field__container--invalid[data-v-e121b2c1]{border-color:var(--fm-color-system-red-300)}.fm-droppable-field__container[data-v-e121b2c1]:hover:not(.fm-droppable-field__container--disabled){border-color:var(--fm-color-neutral-gray-400)}.fm-droppable-field__input[data-v-e121b2c1]{cursor:pointer;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%}.fm-droppable-field__input[data-v-e121b2c1]:disabled{display:none;cursor:not-allowed}.fade-enter-active,.fade-leave-active{transition:opacity .5s ease}.fade-enter-from,.fade-leave-to{opacity:0}.fade-enter-active[data-v-0b70e452],.fade-leave-active[data-v-0b70e452]{transition:opacity .25s ease}.fade-enter[data-v-0b70e452],.fade-leave-to[data-v-0b70e452]{opacity:0}.fm-forecast-notification-low{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-forecast-notification-mid{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-forecast-notification-high{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-forecast-notification-indicator{display:inline-block;height:12px;width:12px;border-radius:9999px}.fm-forecast-notification-indicator-low{background-color:var(--fm-color-system-red-400)}.fm-forecast-notification-indicator-mid{background-color:var(--fm-color-system-orange-400)}.fm-forecast-notification-indicator-high{background-color:var(--fm-color-system-green-400)}.map-button[data-v-272f5e8b]{border-top-width:1px;border-top-color:var(--fm-color-neutral-gray-200);color:var(--fm-color-neutral-gray-400);padding:.2rem 1rem;border-radius:8px}table[data-v-92a03d5c]{width:100%;border-spacing:unset;line-height:inherit}table td[data-v-92a03d5c],table th[data-v-92a03d5c]{padding:3px 5px;vertical-align:top}hr[data-v-92a03d5c]{border-collapse:unset;background:#888;height:2px;border:0px}.text-left[data-v-92a03d5c]{text-align:left}.text-right[data-v-92a03d5c]{text-align:right}.purchase-box[data-v-92a03d5c]{max-width:800px;margin:auto;padding:30px;border:1px solid #eee;box-shadow:0 0 10px #00000026;font-size:16px;line-height:1.5;font-family:Helvetica Neue,Helvetica,Helvetica,Arial,sans-serif;color:#555}.title[data-v-92a03d5c]{padding-bottom:0;font-size:30px;color:#333}.header[data-v-92a03d5c]{font-weight:600;color:#333}.sub-header[data-v-92a03d5c]{font-size:18px;color:#333}.caption[data-v-92a03d5c]{font-size:14px;color:#666}.address[data-v-92a03d5c]{font-size:16px;line-height:1.2;color:#666}.purchase-body[data-v-92a03d5c]{margin-top:30px}.item-header[data-v-92a03d5c]{border:0px;background:#ccc;color:#444}.v-enter-active[data-v-4515fce1],.v-leave-active[data-v-4515fce1]{transition:opacity .1s ease}.v-enter-from[data-v-4515fce1],.v-leave-to[data-v-4515fce1]{opacity:0}.fm-status-badge{font-size:.875rem;font-weight:600;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;border-radius:8px;display:flex;align-items:center;padding-left:8px;padding-right:8px;height:22px}.fm-status-badge-draft{background-color:var(--fm-color-neutral-gray-100);color:var(--fm-color-neutral-gray-500)}.fm-status-badge-receiving{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-cancel{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-status-badge-complete{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-status-badge-processing,.fm-status-badge-requesting{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-status-badge-transfer-info,.fm-status-badge-info-secondary{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-success-secondary{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { W as m, u, r as y, an as b, ao as v } from "./app-Dt6Yd1pM.js";
|
|
2
2
|
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
3
3
|
import { defineStore as w } from "pinia";
|
|
4
4
|
import { ref as l, computed as d } from "vue";
|