@feedmepos/mf-inventory-portal 1.7.2-dev.1 → 1.7.2-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-CPiZvK24.js → App-ByQsWsux.js} +4 -4
- package/dist/{ApprovalView-j2I6kj-5.js → ApprovalView-B8IHv-MP.js} +11 -11
- package/dist/{BindingsDialog-C1MnTVRl.js → BindingsDialog-BWFYy018.js} +2 -2
- package/dist/{BindingsPicker-CpFT0xnq.js → BindingsPicker-BTrQKndU.js} +2 -2
- package/dist/{BindingsTable-CFDJOUOJ.js → BindingsTable-CUswvy2T.js} +3 -3
- package/dist/{BulkReceiveRequestView-LgTAo-XE.js → BulkReceiveRequestView-r8C2SPMH.js} +19 -19
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CiUxzxG1.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DZHlmTL9.js} +1 -1
- package/dist/{ClosingDraftView-CjSrjCXS.js → ClosingDraftView-CIfZLApY.js} +19 -19
- package/dist/{ClosingHistoryView-BcV1olc-.js → ClosingHistoryView-CaD1xhmM.js} +32 -32
- package/dist/{ClosingTemplateView-B6664Bln.js → ClosingTemplateView-C0OvsmJ4.js} +16 -16
- package/dist/{DefaultView-k_cX_Rgq.js → DefaultView-l0-z0i7P.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-Cndz9b3u.js → DeliveryOrderPrintPreview-BhqqbNbz.js} +2 -2
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-iQkhFqNy.js → EmailDialog.vue_vue_type_script_setup_true_lang-DAp4el8X.js} +2262 -2262
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DYkSnV3W.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-D3eXBcWj.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CaC6H0vH.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C9GpwdRQ.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DHGRyJJ2.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BOedO11b.js} +2 -2
- package/dist/{FmMultiselectDialog-CqSQTy19.js → FmMultiselectDialog-CXtK2ZsB.js} +2 -2
- package/dist/{FmMultiselectDialog-DcbsQv6c.js → FmMultiselectDialog-D9oGXLFE.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Bw3hWPX4.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CzZ70aMc.js} +5 -5
- package/dist/{ImportView-BEmVVjdx.js → ImportView-ANrHmifJ.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVcaNiLi.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CXM8rPZC.js} +1 -1
- package/dist/{IngredientGroupView-Bcprjpgu.js → IngredientGroupView-DCi5Qd1w.js} +5 -5
- package/dist/{IngredientsView-DUDgGzz8.js → IngredientsView-DRPxANKi.js} +15 -15
- package/dist/{IntegrationExplorerView-D5RBT4zR.js → IntegrationExplorerView-DBoqKSj4.js} +4 -4
- package/dist/IntegrationView-agoanWWf.js +6271 -0
- package/dist/{InventoryBindingForm-DRjr8bvd.js → InventoryBindingForm-w1kjkywV.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B-2yPbAm.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-C8pIbAJN.js} +5 -5
- package/dist/{InventoryBindingSummary-BHUNtJey.js → InventoryBindingSummary-DOc7osOY.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BeCnzNZk.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BtdI0HiI.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D7bm57E7.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DB7XfTRW.js} +1 -1
- package/dist/{ProductionView-B3SBsS5h.js → ProductionView-xNl142Fq.js} +7 -7
- package/dist/{PublishView-BpjI7rmM.js → PublishView-BkYY1dbq.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-C8M6Yax5.js → PurchaseOrderPrintPreview-Cy5LC5G8.js} +2 -2
- package/dist/{ReceiveRequestView-BlBrbNoW.js → ReceiveRequestView-C9Ge3dBk.js} +22 -22
- package/dist/{RecipeView-BdBjxgQF.js → RecipeView-DHkXKjMW.js} +17 -17
- package/dist/{SettingsView-D5h0Kjma.js → SettingsView-Eedo-gm4.js} +4 -4
- package/dist/{StockView-6niOF2HE.js → StockView-CTloP4Oy.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-95yKD8E_.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DQ_ZgiFI.js} +1 -1
- package/dist/{SupplierView-BOfucFHD.js → SupplierView-DEfd3W5T.js} +12 -12
- package/dist/{SurchargeView-B4NOWDNm.js → SurchargeView-fvvvzM2f.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-B-T5hfVU.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DfLOGQWO.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BS0WQ2q-.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CqJIt_pF.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BMFNKKmV.js → TransferDetails.vue_vue_type_script_setup_true_lang-Ei4Dj1lb.js} +20 -20
- package/dist/{TransferTemplateView-CKytDs9X.js → TransferTemplateView-BfSI7X8j.js} +20 -20
- package/dist/{UnitCostHistoryView-Pk7ErOkB.js → UnitCostHistoryView-BFce-XiD.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-D0vgeUur.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DBbzawh6.js} +4 -4
- package/dist/{UnitView-CR8xb5TS.js → UnitView-eDezcmmU.js} +7 -7
- package/dist/{WarehouseView-DxCFvRDK.js → WarehouseView-WqYXomci.js} +5 -5
- package/dist/{WastageTemplateView-ZOcx-Sw1.js → WastageTemplateView-dHB1_9wS.js} +60 -60
- package/dist/api/codemax.d.ts +12 -15
- package/dist/{app-UXaVUOFj.js → app-BkI7JOut.js} +2374 -2367
- package/dist/app.js +1 -1
- package/dist/{closing-template-BL_7K26j.js → closing-template-Wt20QIwL.js} +1 -1
- package/dist/{date2-DWsaERsg.js → date2-CrQebr0O.js} +1 -1
- package/dist/{dayjs.min-D9-6o_pb.js → dayjs.min-Dm5Jl29E.js} +1 -1
- package/dist/{decimal-D9akmsuY.js → decimal-oFnzK0l5.js} +2 -2
- package/dist/{defineDeepModel-CRz54q7h.js → defineDeepModel-DhQwyn5A.js} +1 -1
- package/dist/{duplicate-template-CXCfl2NH.js → duplicate-template-BGxc36Vo.js} +1 -1
- package/dist/{feature-4PKcZSe0.js → feature-OSSn5heM.js} +2 -2
- package/dist/{format-time-from-id-DoWSyd1w.js → format-time-from-id-BPGeqy_q.js} +1 -1
- package/dist/{format-unit-display-BXx5PrhU.js → format-unit-display-B4Z1I9Zr.js} +12 -12
- package/dist/{import-export.helper-C-njSW-F.js → import-export.helper-B1aP4IVt.js} +6 -6
- package/dist/{index-DYf5BKra.js → index-BOX713UW.js} +70 -59
- package/dist/{index-D__km1gW.js → index-CwCsZdsF.js} +1 -1
- package/dist/{index-xatqRsUm.js → index-t3KRi2bz.js} +1 -1
- package/dist/{inventory-core-dart.default-CG-4fho4.js → inventory-core-dart.default-DpFGa4FK.js} +1 -1
- package/dist/{jszip.min-CuKGTB3Q.js → jszip.min-SYQ9tNfS.js} +2 -2
- package/dist/{lz-string-Di2ld6md.js → lz-string-DOfeReOs.js} +1 -1
- package/dist/{netsuite-B_qujeBG.js → netsuite-DkR3T1Jo.js} +2 -2
- package/dist/{number-BaHim51P.js → number-M0fTNQZX.js} +3 -3
- package/dist/{predefined-templates-BSLRBeB0.js → predefined-templates-BT-JaWkO.js} +1 -1
- package/dist/{purchase-order-template-QNfXyt-d.js → purchase-order-template-CsuMKskZ.js} +1 -1
- package/dist/{recalculationUtils-B3CX9rQC.js → recalculationUtils-Z_4CmpRM.js} +1 -1
- package/dist/{rules-DYMYmtzv.js → rules-eDovZZt4.js} +2 -2
- package/dist/{stock-C1jT8ufE.js → stock-Cr6BUVXY.js} +3 -3
- package/dist/{stock-5uSaJQTg.js → stock-DN2CnjyS.js} +1 -1
- package/dist/{supplier-BoX9Fh0G.js → supplier-pEZ0UFf8.js} +2 -2
- package/dist/{surcharge-FJVEiOpa.js → surcharge-BBlPpII9.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-BHrAwdAH.js → uom-rules-DS7RjEO9.js} +1 -1
- package/dist/{use-ingredient-select-dialog-mGOA_61r.js → use-ingredient-select-dialog-B2UpzYAg.js} +2 -2
- package/dist/{use-inventory-binding-dialog-BSN0xrPb.js → use-inventory-binding-dialog-Dj4vt0Iw.js} +2 -2
- package/dist/{use-template-enabled-locations-Dy-dcIiU.js → use-template-enabled-locations-vtVTL9Wg.js} +2 -2
- package/dist/{use-transfer-locations-Da0XeXxv.js → use-transfer-locations-jovUkrWP.js} +2 -2
- package/dist/{useHrmPermission-Bp7HhhKY.js → useHrmPermission-Bqa_CJkq.js} +1 -1
- package/dist/{useNavigationMenu-DGixRVd0.js → useNavigationMenu-DJrl-u99.js} +2 -2
- package/dist/{useSseClient-C5GrB7_M.js → useSseClient-C4prtQ7f.js} +1 -1
- package/dist/{vue-i18n-DvlJg9yn.js → vue-i18n-Ynah-A_3.js} +413 -413
- package/dist/{xlsx.util-BF_fV-5o.js → xlsx.util-dU4t7hoK.js} +2 -2
- package/package.json +5 -4
- package/dist/IntegrationView-AXBRZnWR.js +0 -5940
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ref as W, defineComponent as j, watch as ee, onMounted as te, onUnmounted as $e, createElementBlock as q, openBlock as R, toRaw as ge, reactive as Se, createElementVNode as b, createVNode as V, toDisplayString as N, unref as n, resolveComponent as L, createBlock as O, createCommentVNode as ae, createSlots as Te, withCtx as B, createTextVNode as Ae, renderSlot as De, computed as F, isRef as we, normalizeClass as We, normalizeStyle as Re } from "vue";
|
|
2
|
-
import { m as Pe, n as Ue, o as Ee, c as z, p as Ne, S as Le, u as Ie } from "./app-
|
|
2
|
+
import { m as Pe, n as Ue, o as Ee, c as z, p as Ne, S as Le, u as Ie } from "./app-BkI7JOut.js";
|
|
3
3
|
import { useCoreStore as Ce, useI18n as G } from "@feedmepos/mf-common";
|
|
4
4
|
import { D as Ve, R as J } from "./row-action.enum-DQ9bJ_uv.js";
|
|
5
5
|
import { c as Be } from "./component-kqxARxvM.js";
|
|
6
6
|
import { u as qe, _ as ze } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DwrLsWX_.js";
|
|
7
7
|
import { F as E } from "./form-mode.enum-BKiNVH6A.js";
|
|
8
8
|
import { useDialogChild as Oe, useDialog as Me, useSnackbar as le, useProxiedModel as oe, useBreakpoints as je } from "@feedmepos/ui-library";
|
|
9
|
-
import { R as I } from "./rules-
|
|
9
|
+
import { R as I } from "./rules-eDovZZt4.js";
|
|
10
10
|
import { c as Fe, u as se, g as Ge } from "./googlemap-D9vA7GsS.js";
|
|
11
|
-
import { d as Ke } from "./index-
|
|
11
|
+
import { d as Ke } from "./index-CwCsZdsF.js";
|
|
12
12
|
import { _ as He } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
13
|
import { _ as Ye } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-CG1m-B2p.js";
|
|
14
|
-
import { u as Ze } from "./feature-
|
|
14
|
+
import { u as Ze } from "./feature-OSSn5heM.js";
|
|
15
15
|
import { _ as Je, F as Q } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
|
|
16
|
-
import { _ as Qe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
16
|
+
import { _ as Qe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BOedO11b.js";
|
|
17
17
|
const X = Pe((y, v) => {
|
|
18
18
|
const h = Ce();
|
|
19
19
|
return {
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as D, h as P, defineComponent as Y, resolveComponent as M, createElementBlock as C, openBlock as A, createElementVNode as T, createCommentVNode as z, normalizeClass as K, createTextVNode as ie, toDisplayString as j, unref as $, createVNode as I, createBlock as O, Fragment as H, renderList as Q, computed as U, watch as ue, createSlots as Le, withCtx as L, isRef as Ne, withModifiers as Xe, normalizeStyle as Ze, Teleport as et, normalizeProps as tt, guardReactiveProps as nt, mergeProps as Ee } from "vue";
|
|
2
2
|
import { u as at, _ as ot } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DwrLsWX_.js";
|
|
3
3
|
import { useI18n as G, useCoreStore as Be } from "@feedmepos/mf-common";
|
|
4
4
|
import { D as le, R as B } from "./row-action.enum-DQ9bJ_uv.js";
|
|
5
|
-
import { _ as st } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as st } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BOedO11b.js";
|
|
6
6
|
import { useDialog as X, useDialogChild as lt, useSnackbar as ce, FmButtonVariant as q, components as W, useProxiedModel as ze, useBreakpoints as rt } from "@feedmepos/ui-library";
|
|
7
7
|
import { defineStore as Oe, storeToRefs as We } from "pinia";
|
|
8
8
|
import { _ as it, F as re } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
|
|
9
|
-
import { u as he, c as He, a as Z,
|
|
9
|
+
import { u as he, c as He, a as Z, J as N, l as ut, E as fe, K as me } from "./app-BkI7JOut.js";
|
|
10
10
|
import { F as J } from "./form-mode.enum-BKiNVH6A.js";
|
|
11
11
|
import { c as ct } from "./component-kqxARxvM.js";
|
|
12
|
-
import { f as mt } from "./format-time-from-id-
|
|
13
|
-
import { u as de } from "./closing-template-
|
|
14
|
-
import { _ as Pe } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { t as ve, a as Ke, d as Ye, s as Ge, r as dt } from "./xlsx.util-
|
|
16
|
-
import { f as pt, a as ft } from "./date2-
|
|
17
|
-
import { u as vt } from "./netsuite-
|
|
12
|
+
import { f as mt } from "./format-time-from-id-BPGeqy_q.js";
|
|
13
|
+
import { u as de } from "./closing-template-Wt20QIwL.js";
|
|
14
|
+
import { _ as Pe } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CqJIt_pF.js";
|
|
15
|
+
import { t as ve, a as Ke, d as Ye, s as Ge, r as dt } from "./xlsx.util-dU4t7hoK.js";
|
|
16
|
+
import { f as pt, a as ft } from "./date2-CrQebr0O.js";
|
|
17
|
+
import { u as vt } from "./netsuite-DkR3T1Jo.js";
|
|
18
18
|
import { F as yt } from "./FmDroppableField-J0tG_U3w.js";
|
|
19
|
-
import { u as ht } from "./duplicate-template-
|
|
20
|
-
import { A as gt, R as Je } from "./rules-
|
|
21
|
-
import { d as bt } from "./defineDeepModel-
|
|
22
|
-
import { u as _t } from "./use-template-enabled-locations-
|
|
23
|
-
import { a as xt } from "./FmMultiselectDialog-
|
|
24
|
-
import { _ as wt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-
|
|
19
|
+
import { u as ht } from "./duplicate-template-BGxc36Vo.js";
|
|
20
|
+
import { A as gt, R as Je } from "./rules-eDovZZt4.js";
|
|
21
|
+
import { d as bt } from "./defineDeepModel-DhQwyn5A.js";
|
|
22
|
+
import { u as _t } from "./use-template-enabled-locations-vtVTL9Wg.js";
|
|
23
|
+
import { a as xt } from "./FmMultiselectDialog-CXtK2ZsB.js";
|
|
24
|
+
import { _ as wt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-DfLOGQWO.js";
|
|
25
25
|
import { _ as Tt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
26
26
|
const ee = Oe(
|
|
27
27
|
"wastageTable",
|
|
28
28
|
function() {
|
|
29
|
-
const { t: a } = G(), p = X(), y = ye(), v =
|
|
29
|
+
const { t: a } = G(), p = X(), y = ye(), v = D({}), i = D(new Array()), r = D(!1), s = he(), o = de(), d = D({}), m = D();
|
|
30
30
|
async function x() {
|
|
31
31
|
if (s._currentLocation)
|
|
32
32
|
try {
|
|
@@ -591,7 +591,7 @@ function Ft(u) {
|
|
|
591
591
|
const s = new Set(i.disabledMeasurements);
|
|
592
592
|
return s.has(v.unit._id) && v.unit.measurements.every((d) => s.has(d.id)) && p.push(`Ingredient ${v.code} - ${v.name} must have at least one unit enabled.`), { errors: p, templateItem: i };
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function Ct(u) {
|
|
595
595
|
const a = u.SheetNames.filter(
|
|
596
596
|
(i) => !Object.values(ge).map(String).includes(i)
|
|
597
597
|
), y = ee().templates, v = ut(y, "_id");
|
|
@@ -670,7 +670,7 @@ function Dt(u) {
|
|
|
670
670
|
};
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
|
-
const
|
|
673
|
+
const Dt = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Et = { class: "flex flex-col" }, Pt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary flex items-center gap-4" }, Vt = {
|
|
674
674
|
key: 0,
|
|
675
675
|
class: "text-fm-color-typo-secondary fm-typo-en-body-sm-400"
|
|
676
676
|
}, jt = { key: 0 }, Ut = { class: "ml-auto" }, Lt = { key: 0 }, Ve = /* @__PURE__ */ Y({
|
|
@@ -683,13 +683,13 @@ const Ct = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Et = { cla
|
|
|
683
683
|
errors: {}
|
|
684
684
|
},
|
|
685
685
|
setup(u) {
|
|
686
|
-
const a = u, { t: p } = G(), y =
|
|
686
|
+
const a = u, { t: p } = G(), y = D(!1), v = () => {
|
|
687
687
|
a.errors.length && (y.value = !y.value);
|
|
688
688
|
};
|
|
689
689
|
return (i, r) => {
|
|
690
690
|
var o, d, m;
|
|
691
691
|
const s = M("FmIcon");
|
|
692
|
-
return A(),
|
|
692
|
+
return A(), C("div", Dt, [
|
|
693
693
|
r[0] || (r[0] = T("div", null, "•", -1)),
|
|
694
694
|
T("div", Mt, [
|
|
695
695
|
T("div", {
|
|
@@ -706,9 +706,9 @@ const Ct = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Et = { cla
|
|
|
706
706
|
})
|
|
707
707
|
}, [
|
|
708
708
|
ie(j(i.name) + " ", 1),
|
|
709
|
-
i.type === "create" ? (A(),
|
|
709
|
+
i.type === "create" ? (A(), C("span", Vt, "(" + j($(p)("inventory.closing.template.import.new")) + ")", 1)) : z("", !0)
|
|
710
710
|
], 2),
|
|
711
|
-
i.errors.length ? (A(),
|
|
711
|
+
i.errors.length ? (A(), C("div", jt, [
|
|
712
712
|
I(s, {
|
|
713
713
|
name: "error",
|
|
714
714
|
size: "sm",
|
|
@@ -734,16 +734,16 @@ const Ct = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Et = { cla
|
|
|
734
734
|
}, null, 8, ["name"])) : z("", !0)
|
|
735
735
|
])
|
|
736
736
|
], 2),
|
|
737
|
-
y.value ? (A(),
|
|
737
|
+
y.value ? (A(), C("div", {
|
|
738
738
|
key: 0,
|
|
739
739
|
class: K(["flex flex-col gap-4 pl-8 fm-typo-en-body-sm-400", {
|
|
740
740
|
"text-fm-color-typo-secondary": !i.errors.length,
|
|
741
741
|
"text-fm-color-system-error-300": i.errors.length
|
|
742
742
|
}])
|
|
743
743
|
}, [
|
|
744
|
-
i.errors.length ? (A(),
|
|
744
|
+
i.errors.length ? (A(), C("div", Lt, [
|
|
745
745
|
T("ol", null, [
|
|
746
|
-
(A(!0),
|
|
746
|
+
(A(!0), C(H, null, Q(i.errors, (x, c) => (A(), C("li", { key: c }, j(x), 1))), 128))
|
|
747
747
|
])
|
|
748
748
|
])) : z("", !0)
|
|
749
749
|
], 2)) : z("", !0)
|
|
@@ -766,7 +766,7 @@ const Ct = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Et = { cla
|
|
|
766
766
|
}, qt = { class: "fm-typo-en-body-lg-600" }, Qt = /* @__PURE__ */ Y({
|
|
767
767
|
__name: "AdjustmentTemplateImport",
|
|
768
768
|
setup(u) {
|
|
769
|
-
const a =
|
|
769
|
+
const a = D(null), p = lt(), y = ce(), v = D(!1), i = D(!1), r = D(new Array()), s = D([]), o = D([]), d = U(
|
|
770
770
|
() => !!r.value.length || s.value.some((b) => b.errors.length) || o.value.some((b) => b.errors.length)
|
|
771
771
|
), m = U(
|
|
772
772
|
() => !!s.value.length || !!o.value.length
|
|
@@ -786,7 +786,7 @@ const Ct = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Et = { cla
|
|
|
786
786
|
r.value.push(x("inventory.ingredient.import.fileError.noSheet"));
|
|
787
787
|
return;
|
|
788
788
|
}
|
|
789
|
-
const e =
|
|
789
|
+
const e = Ct(k);
|
|
790
790
|
if (e.invalidExcel) {
|
|
791
791
|
r.value.push(
|
|
792
792
|
e.invalidExcelMessage ?? x("inventory.ingredient.import.fileError.invalidExcel")
|
|
@@ -815,9 +815,9 @@ const Ct = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Et = { cla
|
|
|
815
815
|
b && c(b);
|
|
816
816
|
}), (b, k) => {
|
|
817
817
|
const S = M("FmCircularProgress"), w = M("FmIcon"), e = M("FmButton");
|
|
818
|
-
return A(),
|
|
818
|
+
return A(), C("div", Nt, [
|
|
819
819
|
T("div", Bt, j($(x)("inventory.adjustment.template.import.message")), 1),
|
|
820
|
-
i.value ? (A(),
|
|
820
|
+
i.value ? (A(), C("div", zt, [
|
|
821
821
|
T("div", null, [
|
|
822
822
|
I(S, {
|
|
823
823
|
size: "md",
|
|
@@ -825,7 +825,7 @@ const Ct = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Et = { cla
|
|
|
825
825
|
})
|
|
826
826
|
]),
|
|
827
827
|
T("div", Ot, j($(x)("inventory.formField.loading")), 1)
|
|
828
|
-
])) : (A(),
|
|
828
|
+
])) : (A(), C(H, { key: 1 }, [
|
|
829
829
|
I(yt, {
|
|
830
830
|
class: K({
|
|
831
831
|
"w-full": !0,
|
|
@@ -871,7 +871,7 @@ const Ct = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Et = { cla
|
|
|
871
871
|
}, [
|
|
872
872
|
T("div", Ht, j(a.value.name), 1)
|
|
873
873
|
], 2),
|
|
874
|
-
v.value ? z("", !0) : (A(),
|
|
874
|
+
v.value ? z("", !0) : (A(), C("div", Kt, [
|
|
875
875
|
I(e, {
|
|
876
876
|
label: $(x)("inventory.ingredient.import.replaceFile"),
|
|
877
877
|
variant: d.value ? "destructive" : "secondary",
|
|
@@ -880,8 +880,8 @@ const Ct = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Et = { cla
|
|
|
880
880
|
}, null, 8, ["label", "variant", "prepend-icon", "onClick"])
|
|
881
881
|
]))
|
|
882
882
|
], 2),
|
|
883
|
-
r.value.length ? (A(),
|
|
884
|
-
(A(!0),
|
|
883
|
+
r.value.length ? (A(), C("div", Yt, [
|
|
884
|
+
(A(!0), C(H, null, Q(r.value, (t, n) => (A(), C("div", {
|
|
885
885
|
key: n,
|
|
886
886
|
class: "flex gap-8 items-center"
|
|
887
887
|
}, [
|
|
@@ -898,9 +898,9 @@ const Ct = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Et = { cla
|
|
|
898
898
|
key: "0"
|
|
899
899
|
} : void 0
|
|
900
900
|
]), 1032, ["class", "label", "button-label"]),
|
|
901
|
-
m.value ? (A(),
|
|
901
|
+
m.value ? (A(), C("div", Jt, [
|
|
902
902
|
T("div", qt, j($(x)("inventory.ingredient.import.summary")), 1),
|
|
903
|
-
(A(!0),
|
|
903
|
+
(A(!0), C(H, null, Q(s.value, (h, t) => (A(), O(Ve, {
|
|
904
904
|
key: t,
|
|
905
905
|
name: h.template.name,
|
|
906
906
|
locations: h.template.locations,
|
|
@@ -908,7 +908,7 @@ const Ct = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Et = { cla
|
|
|
908
908
|
errors: h.errors,
|
|
909
909
|
type: "create"
|
|
910
910
|
}, null, 8, ["name", "locations", "items", "errors"]))), 128)),
|
|
911
|
-
(A(!0),
|
|
911
|
+
(A(!0), C(H, null, Q(o.value, (h) => (A(), O(Ve, {
|
|
912
912
|
key: h.template._id,
|
|
913
913
|
name: h.template.name,
|
|
914
914
|
locations: h.template.locations,
|
|
@@ -922,7 +922,7 @@ const Ct = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Et = { cla
|
|
|
922
922
|
};
|
|
923
923
|
}
|
|
924
924
|
}), ye = Oe("wastageTemplateAction", () => {
|
|
925
|
-
const { t: u } = G(), a = X(), p = ce(), y = de(), v = ht(), i = ee(), { loading: r } = We(i), s =
|
|
925
|
+
const { t: u } = G(), a = X(), p = ce(), y = de(), v = ht(), i = ee(), { loading: r } = We(i), s = D({});
|
|
926
926
|
function o() {
|
|
927
927
|
s.value = {
|
|
928
928
|
mode: J.CREATE,
|
|
@@ -1079,7 +1079,7 @@ const Ct = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Et = { cla
|
|
|
1079
1079
|
}
|
|
1080
1080
|
});
|
|
1081
1081
|
}
|
|
1082
|
-
const b =
|
|
1082
|
+
const b = D({});
|
|
1083
1083
|
function k(n) {
|
|
1084
1084
|
b.value = {
|
|
1085
1085
|
template: n,
|
|
@@ -1189,7 +1189,7 @@ const Ct = { class: "flex" }, Mt = { class: "flex flex-col flex-1" }, Et = { cla
|
|
|
1189
1189
|
r.value = !1, i.fetchTemplates();
|
|
1190
1190
|
}
|
|
1191
1191
|
}
|
|
1192
|
-
const h =
|
|
1192
|
+
const h = D({});
|
|
1193
1193
|
function t() {
|
|
1194
1194
|
h.value = {
|
|
1195
1195
|
show: !0,
|
|
@@ -1487,7 +1487,7 @@ const nn = { class: "flex flex-col gap-16" }, an = { class: "flex items-center"
|
|
|
1487
1487
|
},
|
|
1488
1488
|
emits: ["update:modelValue"],
|
|
1489
1489
|
setup(u, { expose: a, emit: p }) {
|
|
1490
|
-
const y = u, v =
|
|
1490
|
+
const y = u, v = D(y.modelValue), { t: i } = G(), r = p, s = Z(), o = X(), d = D(), m = D("");
|
|
1491
1491
|
a({
|
|
1492
1492
|
validateInputs: () => {
|
|
1493
1493
|
var w, e;
|
|
@@ -1616,7 +1616,7 @@ const nn = { class: "flex flex-col gap-16" }, an = { class: "flex items-center"
|
|
|
1616
1616
|
}
|
|
1617
1617
|
return (w, e) => {
|
|
1618
1618
|
const h = M("FmButton"), t = M("FmIcon"), n = M("FmTextField"), g = M("FmTable"), f = M("FmFormGroup");
|
|
1619
|
-
return A(),
|
|
1619
|
+
return A(), C("div", nn, [
|
|
1620
1620
|
T("div", an, [
|
|
1621
1621
|
T("div", on, j($(i)("inventory.closing.form.items.title")), 1),
|
|
1622
1622
|
I(h, {
|
|
@@ -1629,7 +1629,7 @@ const nn = { class: "flex flex-col gap-16" }, an = { class: "flex items-center"
|
|
|
1629
1629
|
size: "md"
|
|
1630
1630
|
}, null, 8, ["disabled", "label"])
|
|
1631
1631
|
]),
|
|
1632
|
-
b.value.length > 0 ? (A(),
|
|
1632
|
+
b.value.length > 0 ? (A(), C("div", sn, [
|
|
1633
1633
|
T("div", ln, [
|
|
1634
1634
|
I(t, {
|
|
1635
1635
|
name: "warning",
|
|
@@ -1640,7 +1640,7 @@ const nn = { class: "flex flex-col gap-16" }, an = { class: "flex items-center"
|
|
|
1640
1640
|
T("div", rn, [
|
|
1641
1641
|
ie(" The following " + j(b.value.length) + " item(s) no longer exist in the system and have been excluded: ", 1),
|
|
1642
1642
|
T("ul", un, [
|
|
1643
|
-
(A(!0),
|
|
1643
|
+
(A(!0), C(H, null, Q(b.value, (l) => (A(), C("li", {
|
|
1644
1644
|
key: l.id
|
|
1645
1645
|
}, "(" + j(l.code) + ") " + j(l.name), 1))), 128))
|
|
1646
1646
|
])
|
|
@@ -1705,7 +1705,7 @@ const nn = { class: "flex flex-col gap-16" }, an = { class: "flex items-center"
|
|
|
1705
1705
|
}), m = U(() => {
|
|
1706
1706
|
const c = [{ label: "(None)", value: "" }, ...o.value], b = d.value;
|
|
1707
1707
|
return b && !c.some((k) => k.value === b) && c.push({ label: `${b} (not in reasons)`, value: b }), c;
|
|
1708
|
-
}), x =
|
|
1708
|
+
}), x = D();
|
|
1709
1709
|
return a({
|
|
1710
1710
|
validateInputs: () => {
|
|
1711
1711
|
var c, b;
|
|
@@ -1800,7 +1800,7 @@ const nn = { class: "flex flex-col gap-16" }, an = { class: "flex items-center"
|
|
|
1800
1800
|
defaultRemark: null
|
|
1801
1801
|
};
|
|
1802
1802
|
}
|
|
1803
|
-
const c =
|
|
1803
|
+
const c = D(y.modelValue ?? x()), b = D(((g = y.modelValue) == null ? void 0 : g._id) ?? `${Math.random()}`);
|
|
1804
1804
|
ue(
|
|
1805
1805
|
() => y.show,
|
|
1806
1806
|
(f) => {
|
|
@@ -1808,7 +1808,7 @@ const nn = { class: "flex flex-col gap-16" }, an = { class: "flex items-center"
|
|
|
1808
1808
|
f && (c.value = y.modelValue ?? x(), b.value = ((l = y.modelValue) == null ? void 0 : l._id) ?? `${Math.random()}`);
|
|
1809
1809
|
}
|
|
1810
1810
|
);
|
|
1811
|
-
const k =
|
|
1811
|
+
const k = D(!1), S = U(() => {
|
|
1812
1812
|
switch (y.mode) {
|
|
1813
1813
|
case J.READ:
|
|
1814
1814
|
return "";
|
|
@@ -1818,7 +1818,7 @@ const nn = { class: "flex flex-col gap-16" }, an = { class: "flex items-center"
|
|
|
1818
1818
|
return s("inventory.adjustment.template.update.title");
|
|
1819
1819
|
}
|
|
1820
1820
|
return "";
|
|
1821
|
-
}), w =
|
|
1821
|
+
}), w = D();
|
|
1822
1822
|
a({
|
|
1823
1823
|
validateInputs: () => {
|
|
1824
1824
|
var f, l;
|
|
@@ -1905,7 +1905,7 @@ const nn = { class: "flex flex-col gap-16" }, an = { class: "flex items-center"
|
|
|
1905
1905
|
])
|
|
1906
1906
|
]),
|
|
1907
1907
|
default: L(() => [
|
|
1908
|
-
c.value.updatedAt ? (A(),
|
|
1908
|
+
c.value.updatedAt ? (A(), C(H, { key: 0 }, [
|
|
1909
1909
|
c.value.updatedAt ? (A(), O(R, {
|
|
1910
1910
|
key: 0,
|
|
1911
1911
|
variant: "outlined",
|
|
@@ -1924,7 +1924,7 @@ const nn = { class: "flex flex-col gap-16" }, an = { class: "flex items-center"
|
|
|
1924
1924
|
T("div", kn, [
|
|
1925
1925
|
T("div", $n, [
|
|
1926
1926
|
ie(j($(ft)(c.value.updatedAt)) + " ", 1),
|
|
1927
|
-
(V = c.value.updatedBy) != null && V.name ? (A(),
|
|
1927
|
+
(V = c.value.updatedBy) != null && V.name ? (A(), C(H, { key: 0 }, [
|
|
1928
1928
|
ie(" (" + j(c.value.updatedBy.name) + ") ", 1)
|
|
1929
1929
|
], 64)) : z("", !0)
|
|
1930
1930
|
]),
|
|
@@ -1972,16 +1972,16 @@ const nn = { class: "flex flex-col gap-16" }, an = { class: "flex items-center"
|
|
|
1972
1972
|
}
|
|
1973
1973
|
}), An = {};
|
|
1974
1974
|
function Rn(u, a) {
|
|
1975
|
-
return A(),
|
|
1975
|
+
return A(), C("div");
|
|
1976
1976
|
}
|
|
1977
|
-
const Fn = /* @__PURE__ */ Tt(An, [["render", Rn]]),
|
|
1977
|
+
const Fn = /* @__PURE__ */ Tt(An, [["render", Rn]]), Cn = { class: "flex flex-col gap-16" }, Dn = { class: "flex" }, Mn = { class: "flex gap-24" }, En = { class: "flex" }, Pn = { class: "flex-1" }, Vn = { class: "flex" }, jn = { class: "flex gap-8 items-center justify-start" }, Un = /* @__PURE__ */ Y({
|
|
1978
1978
|
__name: "WastageTemplateReason",
|
|
1979
1979
|
props: {
|
|
1980
1980
|
show: { type: Boolean }
|
|
1981
1981
|
},
|
|
1982
1982
|
emits: ["update:show", "submitted"],
|
|
1983
1983
|
setup(u, { emit: a }) {
|
|
1984
|
-
const p = u, y = ze(p, "show"), v = ce(), i = X(), r =
|
|
1984
|
+
const p = u, y = ze(p, "show"), v = ce(), i = X(), r = D([]), s = a, o = ee(), d = de(), m = D(!1);
|
|
1985
1985
|
ue(
|
|
1986
1986
|
() => p.show,
|
|
1987
1987
|
(e) => {
|
|
@@ -2066,7 +2066,7 @@ const Fn = /* @__PURE__ */ Tt(An, [["render", Rn]]), Dn = { class: "flex flex-co
|
|
|
2066
2066
|
m.value = !1;
|
|
2067
2067
|
}
|
|
2068
2068
|
}
|
|
2069
|
-
}, S =
|
|
2069
|
+
}, S = D(), w = () => {
|
|
2070
2070
|
var e, h;
|
|
2071
2071
|
(h = (e = S.value) == null ? void 0 : e.validateInputs) == null || h.call(e);
|
|
2072
2072
|
};
|
|
@@ -2089,8 +2089,8 @@ const Fn = /* @__PURE__ */ Tt(An, [["render", Rn]]), Dn = { class: "flex flex-co
|
|
|
2089
2089
|
onValidationSuccess: k
|
|
2090
2090
|
}, {
|
|
2091
2091
|
default: L(() => [
|
|
2092
|
-
T("div",
|
|
2093
|
-
T("div",
|
|
2092
|
+
T("div", Cn, [
|
|
2093
|
+
T("div", Dn, [
|
|
2094
2094
|
I(t, {
|
|
2095
2095
|
class: "ml-auto px-5",
|
|
2096
2096
|
variant: "primary",
|
|
@@ -2106,7 +2106,7 @@ const Fn = /* @__PURE__ */ Tt(An, [["render", Rn]]), Dn = { class: "flex flex-co
|
|
|
2106
2106
|
separator: ""
|
|
2107
2107
|
}, {
|
|
2108
2108
|
default: L(() => [
|
|
2109
|
-
(A(!0),
|
|
2109
|
+
(A(!0), C(H, null, Q(r.value, (R, F) => (A(), C("div", {
|
|
2110
2110
|
key: F,
|
|
2111
2111
|
class: "flex items-center gap-8 px-1 py-2"
|
|
2112
2112
|
}, [
|
|
@@ -2172,7 +2172,7 @@ const Fn = /* @__PURE__ */ Tt(An, [["render", Rn]]), Dn = { class: "flex flex-co
|
|
|
2172
2172
|
X();
|
|
2173
2173
|
const x = ee(), c = at(), { breakpoints: b } = rt();
|
|
2174
2174
|
m.watchLocation(x.fetchTemplates);
|
|
2175
|
-
const k = U(() => x.loading), S =
|
|
2175
|
+
const k = U(() => x.loading), S = D(""), w = U(() => b.value.xs || b.value.sm), e = U(() => w.value ? 10 : 20);
|
|
2176
2176
|
function h(f) {
|
|
2177
2177
|
switch (f) {
|
|
2178
2178
|
case B.Add:
|
|
@@ -2247,7 +2247,7 @@ const Fn = /* @__PURE__ */ Tt(An, [["render", Rn]]), Dn = { class: "flex flex-co
|
|
|
2247
2247
|
};
|
|
2248
2248
|
return (f, l) => {
|
|
2249
2249
|
const _ = M("FmButton"), R = M("FmTable");
|
|
2250
|
-
return A(),
|
|
2250
|
+
return A(), C(H, null, [
|
|
2251
2251
|
I(ot, {
|
|
2252
2252
|
title: $(a)("inventory.adjustment.template.wastage.title"),
|
|
2253
2253
|
actions: n.value,
|
|
@@ -2318,7 +2318,7 @@ const Fn = /* @__PURE__ */ Tt(An, [["render", Rn]]), Dn = { class: "flex flex-co
|
|
|
2318
2318
|
onRowClick: (E) => $(y)(E)
|
|
2319
2319
|
}, {
|
|
2320
2320
|
default: L((E) => {
|
|
2321
|
-
var V, pe, te, ne, be, _e, xe, we, ae, Te, ke, $e, Se, Ie, Ae, oe, Re, Fe,
|
|
2321
|
+
var V, pe, te, ne, be, _e, xe, we, ae, Te, ke, $e, Se, Ie, Ae, oe, Re, Fe, Ce, De, se, Me;
|
|
2322
2322
|
return [
|
|
2323
2323
|
T("div", Nn, [
|
|
2324
2324
|
T("div", Bn, [
|
|
@@ -2347,7 +2347,7 @@ const Fn = /* @__PURE__ */ Tt(An, [["render", Rn]]), Dn = { class: "flex flex-co
|
|
|
2347
2347
|
]),
|
|
2348
2348
|
T("div", null, [
|
|
2349
2349
|
I($(re), {
|
|
2350
|
-
render: (
|
|
2350
|
+
render: (De = (Ce = (Fe = E.status) == null ? void 0 : Fe.column) == null ? void 0 : Ce.columnDef) == null ? void 0 : De.cell,
|
|
2351
2351
|
props: (Me = (se = E.status) == null ? void 0 : se.getContext) == null ? void 0 : Me.call(se)
|
|
2352
2352
|
}, null, 8, ["render", "props"])
|
|
2353
2353
|
])
|
package/dist/api/codemax.d.ts
CHANGED
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
stage: string;
|
|
6
|
-
status: string;
|
|
7
|
-
resultCode: string | null;
|
|
8
|
-
errorMessage: string | null;
|
|
9
|
-
createdAt: string;
|
|
10
|
-
}
|
|
11
|
-
export interface CodemaxReuploadResult {
|
|
12
|
-
billId: string;
|
|
13
|
-
success: boolean;
|
|
14
|
-
error?: string;
|
|
15
|
-
}
|
|
1
|
+
import type { FdtoCodemaxBill, FdtoCodemaxReuploadResult, FdtoCodemaxSyncLog } from '@feedmepos/codemax-dto';
|
|
2
|
+
export type CodemaxSyncLogRow = FdtoCodemaxSyncLog;
|
|
3
|
+
export type CodemaxReuploadResult = FdtoCodemaxReuploadResult;
|
|
4
|
+
export type CodemaxBillRow = FdtoCodemaxBill;
|
|
16
5
|
export declare const useCodemaxApi: () => {
|
|
17
6
|
readSetting(): Promise<FdoCodemaxSetting>;
|
|
18
7
|
updateSetting(setting: FdoCodemaxSetting): Promise<void>;
|
|
@@ -23,9 +12,17 @@ export declare const useCodemaxApi: () => {
|
|
|
23
12
|
end: string;
|
|
24
13
|
}): Promise<void>;
|
|
25
14
|
syncInvoice(billId: string): Promise<void>;
|
|
15
|
+
readBills(params: {
|
|
16
|
+
start: string;
|
|
17
|
+
end: string;
|
|
18
|
+
}): Promise<CodemaxBillRow[]>;
|
|
19
|
+
readLatestSyncStatus(billIds: string[], opts?: {
|
|
20
|
+
includePayload?: boolean;
|
|
21
|
+
}): Promise<CodemaxSyncLogRow[]>;
|
|
26
22
|
readSyncLog(params: {
|
|
27
23
|
billId?: string;
|
|
28
24
|
billSeq?: string;
|
|
25
|
+
includePayload?: boolean;
|
|
29
26
|
limit?: number;
|
|
30
27
|
offset?: number;
|
|
31
28
|
}): Promise<CodemaxSyncLogRow[]>;
|