@feedmepos/mf-inventory-portal 1.1.9 → 1.2.0-dev.3
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-D1UJ8NY1.js → App-CvnYXQ_H.js} +1 -1
- package/dist/{ApprovalView-Cf6tfPo1.js → ApprovalView-Brt_cfLI.js} +22 -22
- package/dist/{BindingsDialog-C4XnyllW.js → BindingsDialog-BBCRbm60.js} +2 -2
- package/dist/{BindingsPicker-BW4-JT2R.js → BindingsPicker-D3cfis0-.js} +1 -1
- package/dist/{BindingsTable-DtDFatll.js → BindingsTable-BuHEtiqI.js} +1 -1
- package/dist/{ClosingDraftView-TtsNry0r.js → ClosingDraftView-fLxuV9T9.js} +2 -2
- package/dist/{ClosingTemplateView-NbwT6bOk.js → ClosingTemplateView-BJRZQ_9d.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-ujSpOCKj.js → DeliveryOrderPrintPreview-CKLGVFoJ.js} +8 -8
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-AGOtUG41.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-6h2ZF1IM.js} +12 -12
- package/dist/{FmMultiselectDialog-c2e1Pisp.js → FmMultiselectDialog-uEoXq-hv.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BNxA-pQp.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CSNDv3kk.js} +25 -25
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-HkmovqY5.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CeZBz1eT.js} +1 -1
- package/dist/{IngredientGroupView-CnSZ_jFk.js → IngredientGroupView-BhsEp63p.js} +2 -2
- package/dist/{IngredientsView-DjWSaEi8.js → IngredientsView-D3aehOrb.js} +4 -4
- package/dist/{IntegrationView-CJJKfJDQ.js → IntegrationView-Ds4_pk0y.js} +83 -83
- package/dist/{InventoryBindingForm-DhnOLZJo.js → InventoryBindingForm-CVaSaP-L.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CgLA6KH7.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DsJObBbP.js} +3 -3
- package/dist/{InventoryBindingSummary-_DhLtjfm.js → InventoryBindingSummary-4dCMV0Je.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BzlWBYz0.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BWTfN1Nc.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DRlFOUlD.js → PremiumBadge.vue_vue_type_script_setup_true_lang-lKPfAldc.js} +7 -7
- package/dist/{PublishView-DjA8RTiy.js → PublishView-BW1IjgqP.js} +4 -4
- package/dist/{PurchaseOrderPrintPreview-Bzdm9Vd-.js → PurchaseOrderPrintPreview-DupzzHHn.js} +7 -7
- package/dist/{ReceiveRequestView-CJ7oiJBQ.js → ReceiveRequestView-CZMDH6oI.js} +60 -60
- package/dist/{RecipeView--lcBWmZ3.js → RecipeView-BJ1JyMWl.js} +3 -3
- package/dist/StockView-C0h2udKi.js +2080 -0
- package/dist/{SupplierView-BN1P0pgR.js → SupplierView-nRrJO3aS.js} +3 -3
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CWXS6_zv.js +2310 -0
- package/dist/{TransferTemplateView-P25c3cZ-.js → TransferTemplateView-BmGAvcDy.js} +64 -64
- package/dist/{UnitView-Umy1Vy0Y.js → UnitView-CFayjoeC.js} +3 -3
- package/dist/{WarehouseView-DNDIdR4i.js → WarehouseView-Dw74JEJ4.js} +1 -1
- package/dist/api/stock.d.ts +2 -0
- package/dist/{app-CgzMLhAo.js → app-Cjc33Hak.js} +18639 -17803
- package/dist/app.d.ts +726 -6
- package/dist/app.js +1 -1
- package/dist/{decimal-D_3mwNtr.js → decimal-DkctM_2I.js} +1 -1
- package/dist/{format-unit-display-Bu29MSxm.js → format-unit-display-BWs5lTJP.js} +17 -17
- package/dist/{index-D-fVJxc8.js → index-C64jubVC.js} +1 -1
- package/dist/{index-BE8jrI3O.js → index-IbY1gBGq.js} +1 -1
- package/dist/{stock-JVbFNtIv.js → stock-BhsZeZQ6.js} +35 -27
- package/dist/style.css +1 -1
- package/dist/{supplier-nx8WElIW.js → supplier-D-CggzHd.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CX9_4vk_.js → use-ingredient-select-dialog-C03zsmuo.js} +1 -1
- package/dist/{use-inventory-binding-dialog-BfVLQDzr.js → use-inventory-binding-dialog-D3Chc97P.js} +1 -1
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +18 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +6 -2
- package/dist/views/stock/components/dialog/AmendAdjustmentForm.vue.d.ts +94 -0
- package/dist/views/stock/components/dialog/AmendAdjustmentFormProps.d.ts +3 -0
- package/package.json +4 -4
- package/dist/StockView-BGNukBaV.js +0 -1856
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CiK1nGyN.js +0 -2272
package/dist/app.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a3 as Ae, a as q, T as Ie,
|
|
1
|
+
import { a3 as Ae, a as q, T as Ie, ak as M, s as De, al as he, v as ve, u as Z, j as B, w as Oe, aN as ce, x as ge, b as te, t as G, Y as J, aM as Fe, aE as Pe, a0 as Ue, y as Me, z as Be, am as Le, e as me, f as re, R as ue, a2 as Qe, ai as He, D as j, i as I, h as Ve } from "./app-Cjc33Hak.js";
|
|
2
2
|
import { useCoreStore as ne, useI18n as oe } from "@feedmepos/mf-common";
|
|
3
3
|
import { useDialogChild as qe, useSnackbar as be, useDialog as je, FmButtonVariant as z, components as X } from "@feedmepos/ui-library";
|
|
4
4
|
import { defineStore as xe } from "pinia";
|
|
5
|
-
import { defineComponent as ae, resolveComponent as Q, openBlock as _, createElementBlock as k, createElementVNode as C, normalizeClass as H, createTextVNode as ze, toDisplayString as D, unref as A, createCommentVNode as V, createVNode as P, withCtx as ee, Fragment as L, renderList as K, ref as
|
|
5
|
+
import { defineComponent as ae, resolveComponent as Q, openBlock as _, createElementBlock as k, createElementVNode as C, normalizeClass as H, createTextVNode as ze, toDisplayString as D, unref as A, createCommentVNode as V, createVNode as P, withCtx as ee, Fragment as L, renderList as K, ref as N, onMounted as Ye, computed as de, watch as Ke, createSlots as We, createBlock as Y, h as W } from "vue";
|
|
6
6
|
import { useRouter as Ge } from "vue-router";
|
|
7
|
-
import { u as se } from "./supplier-
|
|
7
|
+
import { u as se } from "./supplier-D-CggzHd.js";
|
|
8
8
|
const Te = Ae((e, t) => {
|
|
9
9
|
function s() {
|
|
10
10
|
var o;
|
|
@@ -43,7 +43,7 @@ function Se(e) {
|
|
|
43
43
|
const i = e.measurement;
|
|
44
44
|
return i ? !t.unitById[l.unit._id].measurements.find((c) => c.id === i.id) : !1;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
46
|
+
var R = /* @__PURE__ */ ((e) => (e.PURCHASE = "PURCHASE", e.TRANSFER = "TRANSFER", e))(R || {}), ie = /* @__PURE__ */ ((e) => (e.Source = "Source", e.Destination = "Destination", e.Ingredient = "Ingredient", e))(ie || {});
|
|
47
47
|
const pe = Ie(0);
|
|
48
48
|
function _e(e) {
|
|
49
49
|
var l;
|
|
@@ -107,7 +107,7 @@ function Ze(e) {
|
|
|
107
107
|
["Menu version", s == null ? void 0 : s.menuVersion],
|
|
108
108
|
[
|
|
109
109
|
"Purchase/Transfer",
|
|
110
|
-
typeof a.purchaseOrder.supplier.internal == "string" ?
|
|
110
|
+
typeof a.purchaseOrder.supplier.internal == "string" ? R.TRANSFER : R.PURCHASE
|
|
111
111
|
],
|
|
112
112
|
[
|
|
113
113
|
"Transfer from",
|
|
@@ -260,7 +260,7 @@ function Xe(e, t) {
|
|
|
260
260
|
const h = m[1], d = m[2];
|
|
261
261
|
let u;
|
|
262
262
|
if (d.startsWith("supplier"))
|
|
263
|
-
u = c[d], t !==
|
|
263
|
+
u = c[d], t !== R.PURCHASE && s.push(`Expected transfer type Purchase but found ${t} instead.`);
|
|
264
264
|
else {
|
|
265
265
|
const v = o[d];
|
|
266
266
|
if (!v)
|
|
@@ -331,7 +331,7 @@ function tt(e) {
|
|
|
331
331
|
return {
|
|
332
332
|
id: `${s[1] ?? ""}`.trim(),
|
|
333
333
|
name: `${l[1] ?? ""}`.trim(),
|
|
334
|
-
type: `${c[1] ?? ""}`.trim().toLocaleLowerCase() === "transfer" ?
|
|
334
|
+
type: `${c[1] ?? ""}`.trim().toLocaleLowerCase() === "transfer" ? R.TRANSFER : R.PURCHASE,
|
|
335
335
|
transferFrom: `${a[1] ?? ""}`.trim(),
|
|
336
336
|
locations: m.slice(1).map((u) => `${u}`.trim()).filter((u) => u),
|
|
337
337
|
reference: `${h[1] ?? ""}`.trim(),
|
|
@@ -648,7 +648,7 @@ const it = { class: "flex items-center gap-12 pl-8" }, lt = { class: "flex flex-
|
|
|
648
648
|
}, Tt = { class: "fm-typo-en-body-lg-600" }, St = /* @__PURE__ */ ae({
|
|
649
649
|
__name: "TransferTemplateImport",
|
|
650
650
|
setup(e) {
|
|
651
|
-
const t =
|
|
651
|
+
const t = N(null), s = qe(), l = be(), i = N(!1), o = N(!1), f = se();
|
|
652
652
|
Ye(async () => {
|
|
653
653
|
o.value = !0;
|
|
654
654
|
try {
|
|
@@ -663,7 +663,7 @@ const it = { class: "flex items-center gap-12 pl-8" }, lt = { class: "flex flex-
|
|
|
663
663
|
o.value = !1;
|
|
664
664
|
}
|
|
665
665
|
});
|
|
666
|
-
const c =
|
|
666
|
+
const c = N(new Array()), a = N([]), m = N([]), h = de(
|
|
667
667
|
() => !!c.value.length || a.value.some((b) => b.errors.length) || m.value.some((b) => b.errors.length)
|
|
668
668
|
), d = de(
|
|
669
669
|
() => !!a.value.length || !!m.value.length
|
|
@@ -800,7 +800,7 @@ const it = { class: "flex items-center gap-12 pl-8" }, lt = { class: "flex flex-
|
|
|
800
800
|
(_(!0), k(L, null, K(a.value, (p, n) => (_(), Y(fe, {
|
|
801
801
|
key: n,
|
|
802
802
|
name: p.template.name,
|
|
803
|
-
"transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? A(
|
|
803
|
+
"transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? A(R).TRANSFER : A(R).PURCHASE,
|
|
804
804
|
locations: p.template.locations,
|
|
805
805
|
items: p.template.purchaseOrder.items,
|
|
806
806
|
errors: p.errors,
|
|
@@ -809,7 +809,7 @@ const it = { class: "flex items-center gap-12 pl-8" }, lt = { class: "flex flex-
|
|
|
809
809
|
(_(!0), k(L, null, K(m.value, (p) => (_(), Y(fe, {
|
|
810
810
|
key: p.template._id,
|
|
811
811
|
name: p.template.name,
|
|
812
|
-
"transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? A(
|
|
812
|
+
"transfer-type": typeof p.template.purchaseOrder.supplier.internal == "string" ? A(R).TRANSFER : A(R).PURCHASE,
|
|
813
813
|
locations: p.template.locations,
|
|
814
814
|
items: p.template.purchaseOrder.items,
|
|
815
815
|
errors: p.errors,
|
|
@@ -833,7 +833,7 @@ function _t(e) {
|
|
|
833
833
|
return l && l == i;
|
|
834
834
|
}
|
|
835
835
|
const $t = xe("transferTemplateActions", () => {
|
|
836
|
-
const e = je(), t = be(), s = Z(), l = Ce(), i = Le(), o = Te(), f = te(), c = Ge(), { t: a } = oe(), m =
|
|
836
|
+
const e = je(), t = be(), s = Z(), l = Ce(), i = Le(), o = Te(), f = te(), c = Ge(), { t: a } = oe(), m = N({});
|
|
837
837
|
function h() {
|
|
838
838
|
m.value = {
|
|
839
839
|
mode: me.CREATE,
|
|
@@ -949,7 +949,7 @@ const $t = xe("transferTemplateActions", () => {
|
|
|
949
949
|
}
|
|
950
950
|
});
|
|
951
951
|
}
|
|
952
|
-
const b =
|
|
952
|
+
const b = N({});
|
|
953
953
|
function r(n) {
|
|
954
954
|
b.value = {
|
|
955
955
|
template: n,
|
|
@@ -989,12 +989,12 @@ const $t = xe("transferTemplateActions", () => {
|
|
|
989
989
|
const O = !g.purchaseOrder.items.length || g.purchaseOrder.items.some(Se), F = !_t(g.purchaseOrder.supplier), U = g.purchaseOrder.supplier.internal ? f.getNetSuiteLocation(
|
|
990
990
|
`${g.purchaseOrder.supplier.internal}_${g.purchaseOrder.supplier._id}`
|
|
991
991
|
) : f.getNetSuiteVendor(g.purchaseOrder.supplier._id), ke = F ? `The subsidiary of the request
|
|
992
|
-
location is ${(le = f.getLocationSubsidiary(U == null ? void 0 : U.netSuiteId)) == null ? void 0 : le.fullName}.` : void 0, Ee = O || F,
|
|
992
|
+
location is ${(le = f.getLocationSubsidiary(U == null ? void 0 : U.netSuiteId)) == null ? void 0 : le.fullName}.` : void 0, Ee = O || F, Ne = O ? "This template is invalid. Update this template." : F ? ke : void 0, Re = `${g.purchaseOrder.supplier.internal ? "Transfer" : "Purchase"} from ${g.purchaseOrder.supplier.name}`;
|
|
993
993
|
return {
|
|
994
994
|
label: g.name,
|
|
995
995
|
value: g._id,
|
|
996
996
|
disabled: Ee,
|
|
997
|
-
sublabel:
|
|
997
|
+
sublabel: Ne ?? Re
|
|
998
998
|
};
|
|
999
999
|
});
|
|
1000
1000
|
return E.sort((g, O) => +!!g.disabled - +!!O.disabled), e.open({
|
|
@@ -1129,7 +1129,7 @@ function ye(e) {
|
|
|
1129
1129
|
const Ce = xe(
|
|
1130
1130
|
"transferTemplateTable",
|
|
1131
1131
|
function() {
|
|
1132
|
-
const { t } = oe(), s = $t(), l =
|
|
1132
|
+
const { t } = oe(), s = $t(), l = N(!1), i = N(new Array()), o = Te(), f = q();
|
|
1133
1133
|
async function c() {
|
|
1134
1134
|
i.value = [], l.value = !0;
|
|
1135
1135
|
try {
|
|
@@ -1280,7 +1280,7 @@ function Dt(e, t, s) {
|
|
|
1280
1280
|
return `${B(e, !1)} ${l}`;
|
|
1281
1281
|
}
|
|
1282
1282
|
export {
|
|
1283
|
-
|
|
1283
|
+
R as P,
|
|
1284
1284
|
Te as a,
|
|
1285
1285
|
$t as b,
|
|
1286
1286
|
Dt as f,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as b, computed as u } from "vue";
|
|
2
|
-
import { u as d, b1 as p,
|
|
2
|
+
import { u as d, b1 as p, aU as v, c as m, b as h } from "./app-Cjc33Hak.js";
|
|
3
3
|
import { useSnackbar as E } from "@feedmepos/ui-library";
|
|
4
4
|
function I() {
|
|
5
5
|
return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b0 as x, b7 as V, b8 as q, b9 as Re, ba as cl, bb as sr, bc as Lt, bd as fl, be as $l } from "./app-
|
|
1
|
+
import { b0 as x, b7 as V, b8 as q, b9 as Re, ba as cl, bb as sr, bc as Lt, bd as fl, be as $l } from "./app-Cjc33Hak.js";
|
|
2
2
|
function vl(t, e) {
|
|
3
3
|
for (var r = 0; r < e.length; r++) {
|
|
4
4
|
const n = e[r];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a3 as m, u as k, a as l,
|
|
1
|
+
import { a3 as m, u as k, a as l, au as B, T as p } from "./app-Cjc33Hak.js";
|
|
2
2
|
import { useCoreStore as v } from "@feedmepos/mf-common";
|
|
3
3
|
import { useSnackbar as $ } from "@feedmepos/ui-library";
|
|
4
|
-
import { ref as y, computed as
|
|
5
|
-
const g = m((
|
|
6
|
-
const
|
|
4
|
+
import { ref as y, computed as b } from "vue";
|
|
5
|
+
const g = m((s, a) => {
|
|
6
|
+
const c = k(), o = v(), u = $();
|
|
7
7
|
return a.onError(async (t) => {
|
|
8
8
|
t.name === "SvcForbiddenError" && (u == null || u.open({
|
|
9
9
|
title: t.title,
|
|
@@ -12,59 +12,67 @@ const g = m((c, a) => {
|
|
|
12
12
|
}));
|
|
13
13
|
}), {
|
|
14
14
|
async readStockBalance() {
|
|
15
|
-
const t =
|
|
15
|
+
const t = c.currentLocationDBName, e = `${s.inventoryBackendUrl}/${t}/stock-balance`;
|
|
16
16
|
return await a.get(e);
|
|
17
17
|
},
|
|
18
18
|
async readSkuBalance() {
|
|
19
|
-
var
|
|
20
|
-
const t =
|
|
21
|
-
return (((
|
|
19
|
+
var r;
|
|
20
|
+
const t = c.currentLocationDBName, e = `${s.inventoryBackendUrl}/${t}/sku/balance`;
|
|
21
|
+
return (((r = o.currentBusiness.value) == null ? void 0 : r.menuVersion) ?? "") === "v3" ? await a.get(e) : await a.get(`${e}?useInventoryDoc=true`);
|
|
22
22
|
},
|
|
23
23
|
async readSingleAdjustment(t) {
|
|
24
|
-
const e =
|
|
24
|
+
const e = c.currentLocationDBName, n = `${s.inventoryBackendUrl}/${e}/adjustment`;
|
|
25
25
|
return await a.get(`${n}?adjustmentId=${t}`);
|
|
26
26
|
},
|
|
27
27
|
async readStockAdjustment(t, e, n) {
|
|
28
|
-
const
|
|
28
|
+
const r = c.currentLocationDBName, i = `${s.inventoryBackendUrl}/${r}/sku`;
|
|
29
29
|
return await a.get(`${i}?skuId=${t}&start=${e}&end=${n}`);
|
|
30
30
|
},
|
|
31
31
|
async readAdjustmentById(t) {
|
|
32
|
-
const e =
|
|
32
|
+
const e = c.currentLocationDBName, n = `${s.inventoryBackendUrl}/${e}/adjustment`;
|
|
33
33
|
return await a.get(`${n}?adjustmentId=${t}`);
|
|
34
34
|
},
|
|
35
35
|
async convertSku(t) {
|
|
36
36
|
var i;
|
|
37
|
-
const e =
|
|
37
|
+
const e = c.currentLocationDBName, n = `${s.inventoryBackendUrl}/${e}/sku/convert`;
|
|
38
38
|
return (((i = o.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await a.post(n, t) : await a.post(`${n}?useInventoryDoc=true`, t);
|
|
39
39
|
},
|
|
40
40
|
async adjustSku(t) {
|
|
41
41
|
var i;
|
|
42
|
-
const e =
|
|
42
|
+
const e = c.currentLocationDBName, n = `${s.inventoryBackendUrl}/${e}/sku/adjust`;
|
|
43
43
|
return (((i = o.currentBusiness.value) == null ? void 0 : i.menuVersion) ?? "") === "v3" ? await a.post(n, t) : await a.post(`${n}?useInventoryDoc=true`, t);
|
|
44
44
|
},
|
|
45
|
+
async revertWastageAdjustment(t) {
|
|
46
|
+
const e = c.currentLocationDBName, n = `${s.inventoryBackendUrl}/${e}/sku/revert-wastage-adjustment`;
|
|
47
|
+
return await a.post(n, t);
|
|
48
|
+
},
|
|
45
49
|
recalculation: {
|
|
46
50
|
getRecalculateAbility() {
|
|
47
|
-
var
|
|
48
|
-
const e = `business_${(
|
|
51
|
+
var r;
|
|
52
|
+
const e = `business_${(r = o.currentBusiness.value) == null ? void 0 : r._id}`, n = `${s.inventoryBackendUrl}/${e}/stock/operations/recalculate`;
|
|
49
53
|
return a.get(n);
|
|
50
54
|
},
|
|
51
55
|
startRecalculateTask() {
|
|
52
|
-
var
|
|
53
|
-
const e = `business_${(
|
|
56
|
+
var r;
|
|
57
|
+
const e = `business_${(r = o.currentBusiness.value) == null ? void 0 : r._id}`, n = `${s.inventoryBackendUrl}/${e}/stock/operations/recalculate?refundFromPreviousAdjustment=true`;
|
|
54
58
|
return a.post(n);
|
|
55
59
|
},
|
|
60
|
+
refreshCurrentBalances() {
|
|
61
|
+
const t = c.currentLocationDBName, e = `${s.inventoryBackendUrl}/${t}/stock/operations/recalculate/refresh-current-balances`;
|
|
62
|
+
return a.post(e);
|
|
63
|
+
},
|
|
56
64
|
calculateStockSnapshotAtDate(t, e) {
|
|
57
|
-
const n =
|
|
58
|
-
return a.get(
|
|
65
|
+
const n = c.currentLocationDBName, r = `${s.inventoryBackendUrl}/${n}/stock/operations/recalculate/calculate-at-date?effectiveAt=${encodeURIComponent(t)}&closingDraftId=${encodeURIComponent(e)}`;
|
|
66
|
+
return a.get(r);
|
|
59
67
|
},
|
|
60
68
|
scheduleCalculateStockSnapshotAtDate(t, e) {
|
|
61
|
-
const n =
|
|
62
|
-
return a.get(
|
|
69
|
+
const n = c.currentLocationDBName, r = `${s.inventoryBackendUrl}/${n}/stock/operations/recalculate/schedule/calculate-at-date?effectiveAt=${encodeURIComponent(t)}&closingDraftId=${encodeURIComponent(e)}`;
|
|
70
|
+
return a.get(r);
|
|
63
71
|
}
|
|
64
72
|
}
|
|
65
73
|
};
|
|
66
74
|
});
|
|
67
|
-
function
|
|
75
|
+
function S() {
|
|
68
76
|
return {
|
|
69
77
|
stockBalance: {
|
|
70
78
|
_id: "",
|
|
@@ -78,15 +86,15 @@ const f = p(0), N = {
|
|
|
78
86
|
balance: f,
|
|
79
87
|
closing: null,
|
|
80
88
|
costs: null
|
|
81
|
-
}, d = y(
|
|
82
|
-
const
|
|
89
|
+
}, d = y(S()), A = () => {
|
|
90
|
+
const s = l(), a = b(() => {
|
|
83
91
|
var t;
|
|
84
92
|
const o = (t = d.value.stockBalance.skus) == null ? void 0 : t.groupBy((e) => e.id), u = (e) => {
|
|
85
93
|
var n;
|
|
86
94
|
return ((n = o == null ? void 0 : o.get(e)) == null ? void 0 : n[0]) ?? { ...N, id: e };
|
|
87
95
|
};
|
|
88
|
-
return
|
|
89
|
-
}),
|
|
96
|
+
return s.skus.map((e) => u(e._id));
|
|
97
|
+
}), c = g();
|
|
90
98
|
return {
|
|
91
99
|
// state
|
|
92
100
|
get stockBalance() {
|
|
@@ -106,7 +114,7 @@ const f = p(0), N = {
|
|
|
106
114
|
},
|
|
107
115
|
// actions
|
|
108
116
|
async readStockBalance() {
|
|
109
|
-
this.stockBalance = await
|
|
117
|
+
this.stockBalance = await c.readStockBalance();
|
|
110
118
|
},
|
|
111
119
|
async readProductBalance() {
|
|
112
120
|
this.productBalance = [];
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.fm-droppable-field[data-v-2937afd0]{display:flex;flex-direction:column;gap:4px}.fm-droppable-field__container[data-v-2937afd0]{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-2937afd0]{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-2937afd0]{border-color:var(--fm-color-primary)}.fm-droppable-field__container--invalid[data-v-2937afd0]{border-color:var(--fm-color-system-red-300)}.fm-droppable-field__container[data-v-2937afd0]:hover:not(.fm-droppable-field__container--disabled){border-color:var(--fm-color-neutral-gray-400)}.fm-droppable-field__input[data-v-2937afd0]{cursor:pointer;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%}.fm-droppable-field__input[data-v-2937afd0]: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-cff1dd22],.fade-leave-active[data-v-cff1dd22]{transition:opacity .25s ease}.fade-enter[data-v-cff1dd22],.fade-leave-to[data-v-cff1dd22]{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-3cb85541]{width:100%;border-spacing:unset;line-height:inherit}table td[data-v-3cb85541],table th[data-v-3cb85541]{padding:3px 5px;vertical-align:top}hr[data-v-3cb85541]{border-collapse:unset;background:#888;height:2px;border:0px}.text-left[data-v-3cb85541]{text-align:left}.text-right[data-v-3cb85541]{text-align:right}.purchase-box[data-v-3cb85541]{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-3cb85541]{padding-bottom:0;font-size:30px;color:#333}.header[data-v-3cb85541]{font-weight:600;color:#333}.sub-header[data-v-3cb85541]{font-size:18px;color:#333}.caption[data-v-3cb85541]{font-size:14px;color:#666}.address[data-v-3cb85541]{font-size:16px;line-height:1.2;color:#666}.purchase-body[data-v-3cb85541]{margin-top:30px}.item-header[data-v-3cb85541]{border:0px;background:#ccc;color:#444}table[data-v-805a706a]{width:100%;border-spacing:unset;line-height:inherit}table td[data-v-805a706a],table th[data-v-805a706a]{padding:3px 5px;vertical-align:top}hr[data-v-805a706a]{border-collapse:unset;background:#888;height:2px;border:0px}.text-left[data-v-805a706a]{text-align:left}.text-right[data-v-805a706a]{text-align:right}.purchase-box[data-v-805a706a]{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-805a706a]{padding-bottom:0;font-size:32px;color:#333}.subtitle[data-v-805a706a]{padding-bottom:0;font-size:25px;color:#333}.header[data-v-805a706a]{font-weight:600;color:#333}.sub-header[data-v-805a706a]{font-size:18px;color:#333}.caption[data-v-805a706a]{font-size:14px;color:#666}.address[data-v-805a706a]{font-size:14px;line-height:1.2;color:#666}.purchase-body[data-v-805a706a]{margin-top:30px}.item-header[data-v-805a706a]{border:0px;background:#ccc;color:#444}.logo[data-v-805a706a]{max-width:100%;height:100px;-o-object-fit:contain;object-fit:contain}img[data-v-805a706a]{width:100px;height:100px;-o-object-fit:contain;object-fit:contain}.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;min-height:24px}.fm-status-badge-draft{background-color:var(--fm-color-neutral-gray-100);color:var(--fm-color-neutral-gray-500)}.fm-status-badge-receiving,.fm-status-badge-partial_received{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)}.fm-status-badge-error{border-width:2px;--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}@media print{.print-mode .overflow-auto{overflow:visible!important}}
|
|
1
|
+
.fm-droppable-field[data-v-2937afd0]{display:flex;flex-direction:column;gap:4px}.fm-droppable-field__container[data-v-2937afd0]{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-2937afd0]{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-2937afd0]{border-color:var(--fm-color-primary)}.fm-droppable-field__container--invalid[data-v-2937afd0]{border-color:var(--fm-color-system-red-300)}.fm-droppable-field__container[data-v-2937afd0]:hover:not(.fm-droppable-field__container--disabled){border-color:var(--fm-color-neutral-gray-400)}.fm-droppable-field__input[data-v-2937afd0]{cursor:pointer;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%}.fm-droppable-field__input[data-v-2937afd0]: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-cff1dd22],.fade-leave-active[data-v-cff1dd22]{transition:opacity .25s ease}.fade-enter[data-v-cff1dd22],.fade-leave-to[data-v-cff1dd22]{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-3cb85541]{width:100%;border-spacing:unset;line-height:inherit}table td[data-v-3cb85541],table th[data-v-3cb85541]{padding:3px 5px;vertical-align:top}hr[data-v-3cb85541]{border-collapse:unset;background:#888;height:2px;border:0px}.text-left[data-v-3cb85541]{text-align:left}.text-right[data-v-3cb85541]{text-align:right}.purchase-box[data-v-3cb85541]{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-3cb85541]{padding-bottom:0;font-size:30px;color:#333}.header[data-v-3cb85541]{font-weight:600;color:#333}.sub-header[data-v-3cb85541]{font-size:18px;color:#333}.caption[data-v-3cb85541]{font-size:14px;color:#666}.address[data-v-3cb85541]{font-size:16px;line-height:1.2;color:#666}.purchase-body[data-v-3cb85541]{margin-top:30px}.item-header[data-v-3cb85541]{border:0px;background:#ccc;color:#444}table[data-v-805a706a]{width:100%;border-spacing:unset;line-height:inherit}table td[data-v-805a706a],table th[data-v-805a706a]{padding:3px 5px;vertical-align:top}hr[data-v-805a706a]{border-collapse:unset;background:#888;height:2px;border:0px}.text-left[data-v-805a706a]{text-align:left}.text-right[data-v-805a706a]{text-align:right}.purchase-box[data-v-805a706a]{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-805a706a]{padding-bottom:0;font-size:32px;color:#333}.subtitle[data-v-805a706a]{padding-bottom:0;font-size:25px;color:#333}.header[data-v-805a706a]{font-weight:600;color:#333}.sub-header[data-v-805a706a]{font-size:18px;color:#333}.caption[data-v-805a706a]{font-size:14px;color:#666}.address[data-v-805a706a]{font-size:14px;line-height:1.2;color:#666}.purchase-body[data-v-805a706a]{margin-top:30px}.item-header[data-v-805a706a]{border:0px;background:#ccc;color:#444}.logo[data-v-805a706a]{max-width:100%;height:100px;-o-object-fit:contain;object-fit:contain}img[data-v-805a706a]{width:100px;height:100px;-o-object-fit:contain;object-fit:contain}.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;min-height:24px}.fm-status-badge-draft{background-color:var(--fm-color-neutral-gray-100);color:var(--fm-color-neutral-gray-500)}.fm-status-badge-receiving,.fm-status-badge-partial_received{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-close,.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)}.fm-status-badge-error{border-width:2px;--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity))}@media print{.print-mode .overflow-auto{overflow:visible!important}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a3 as m, u, c as b, w,
|
|
1
|
+
import { a3 as m, u, c as b, w, av as v, aw as $ } from "./app-Cjc33Hak.js";
|
|
2
2
|
import { useCoreStore as c } from "@feedmepos/mf-common";
|
|
3
3
|
import { defineStore as A } from "pinia";
|
|
4
4
|
import { ref as l, computed as d } from "vue";
|