@feedmepos/mf-inventory-portal 1.7.2-dev.1 → 1.7.2-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (91) hide show
  1. package/dist/{App-CPiZvK24.js → App-U_SxtEh_.js} +4 -4
  2. package/dist/{ApprovalView-j2I6kj-5.js → ApprovalView-CyhDIhx6.js} +11 -11
  3. package/dist/{BindingsDialog-C1MnTVRl.js → BindingsDialog-UKwDQASZ.js} +2 -2
  4. package/dist/{BindingsPicker-CpFT0xnq.js → BindingsPicker-D_gWDb-t.js} +2 -2
  5. package/dist/{BindingsTable-CFDJOUOJ.js → BindingsTable-8xXu28BV.js} +3 -3
  6. package/dist/{BulkReceiveRequestView-LgTAo-XE.js → BulkReceiveRequestView-D2Cq7J2t.js} +19 -19
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CiUxzxG1.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BI6mOIWO.js} +1 -1
  8. package/dist/{ClosingDraftView-CjSrjCXS.js → ClosingDraftView-C-sh4dbM.js} +19 -19
  9. package/dist/{ClosingHistoryView-BcV1olc-.js → ClosingHistoryView-B342r8aV.js} +32 -32
  10. package/dist/{ClosingTemplateView-B6664Bln.js → ClosingTemplateView-LJ1QSFzA.js} +16 -16
  11. package/dist/{DefaultView-k_cX_Rgq.js → DefaultView-DP3AFLXr.js} +2 -2
  12. package/dist/{DeliveryOrderPrintPreview-Cndz9b3u.js → DeliveryOrderPrintPreview-C8JUgk0S.js} +2 -2
  13. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-iQkhFqNy.js → EmailDialog.vue_vue_type_script_setup_true_lang-B4_buziB.js} +2262 -2262
  14. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DYkSnV3W.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-Duu8Xq9x.js} +1 -1
  15. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CaC6H0vH.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DB-xTIYI.js} +2 -2
  16. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DHGRyJJ2.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-i6bgYKcA.js} +2 -2
  17. package/dist/{FmMultiselectDialog-CqSQTy19.js → FmMultiselectDialog-CSZLfKrO.js} +2 -2
  18. package/dist/{FmMultiselectDialog-DcbsQv6c.js → FmMultiselectDialog-CbtU2ORO.js} +1 -1
  19. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Bw3hWPX4.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BAiEy0ua.js} +5 -5
  20. package/dist/{ImportView-BEmVVjdx.js → ImportView-BXpgzHCJ.js} +6 -6
  21. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVcaNiLi.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CrpMfG2Q.js} +1 -1
  22. package/dist/{IngredientGroupView-Bcprjpgu.js → IngredientGroupView-tl8A0Xzn.js} +5 -5
  23. package/dist/{IngredientsView-DUDgGzz8.js → IngredientsView-DXvKsV6G.js} +15 -15
  24. package/dist/{IntegrationExplorerView-D5RBT4zR.js → IntegrationExplorerView-DmVuoHPY.js} +4 -4
  25. package/dist/IntegrationView-Cnngpb6f.js +6271 -0
  26. package/dist/{InventoryBindingForm-DRjr8bvd.js → InventoryBindingForm-DxkoGcVR.js} +1 -1
  27. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B-2yPbAm.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-TKj55KJb.js} +5 -5
  28. package/dist/{InventoryBindingSummary-BHUNtJey.js → InventoryBindingSummary-B8rYYrV9.js} +1 -1
  29. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BeCnzNZk.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DfdYHoFm.js} +1 -1
  30. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D7bm57E7.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BH2yrzkP.js} +1 -1
  31. package/dist/{ProductionView-B3SBsS5h.js → ProductionView-CGMZecWe.js} +7 -7
  32. package/dist/{PublishView-BpjI7rmM.js → PublishView-BTISRgUo.js} +3 -3
  33. package/dist/{PurchaseOrderPrintPreview-C8M6Yax5.js → PurchaseOrderPrintPreview-BI3HFmWy.js} +2 -2
  34. package/dist/{ReceiveRequestView-BlBrbNoW.js → ReceiveRequestView-BPemdRUQ.js} +22 -22
  35. package/dist/{RecipeView-BdBjxgQF.js → RecipeView-CKZ18kwH.js} +17 -17
  36. package/dist/{SettingsView-D5h0Kjma.js → SettingsView-B1YkBG8O.js} +4 -4
  37. package/dist/{StockView-6niOF2HE.js → StockView-DMvqoF9Q.js} +21 -21
  38. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-95yKD8E_.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BCsMlGyf.js} +1 -1
  39. package/dist/{SupplierView-BOfucFHD.js → SupplierView-CPg4hWVn.js} +12 -12
  40. package/dist/{SurchargeView-B4NOWDNm.js → SurchargeView-B9fN_Fi5.js} +6 -6
  41. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-B-T5hfVU.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DGCivXse.js} +2 -2
  42. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BS0WQ2q-.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-JWniWB_s.js} +1 -1
  43. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BMFNKKmV.js → TransferDetails.vue_vue_type_script_setup_true_lang-CHNq5bH9.js} +20 -20
  44. package/dist/{TransferTemplateView-CKytDs9X.js → TransferTemplateView-BWRheR6f.js} +20 -20
  45. package/dist/{UnitCostHistoryView-Pk7ErOkB.js → UnitCostHistoryView-BQ_wZPr4.js} +4 -4
  46. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-D0vgeUur.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-Dcfesg0R.js} +4 -4
  47. package/dist/{UnitView-CR8xb5TS.js → UnitView-wb4WJr3z.js} +7 -7
  48. package/dist/{WarehouseView-DxCFvRDK.js → WarehouseView-DdMiB1mB.js} +5 -5
  49. package/dist/{WastageTemplateView-ZOcx-Sw1.js → WastageTemplateView-Bamayt8h.js} +60 -60
  50. package/dist/api/codemax.d.ts +12 -15
  51. package/dist/{app-UXaVUOFj.js → app-qwJVwq2l.js} +2374 -2367
  52. package/dist/app.js +1 -1
  53. package/dist/{closing-template-BL_7K26j.js → closing-template-DAp9kYJX.js} +1 -1
  54. package/dist/{date2-DWsaERsg.js → date2-DBkK81Nl.js} +1 -1
  55. package/dist/{dayjs.min-D9-6o_pb.js → dayjs.min-DLGgN_v6.js} +1 -1
  56. package/dist/{decimal-D9akmsuY.js → decimal-BnO8izTx.js} +2 -2
  57. package/dist/{defineDeepModel-CRz54q7h.js → defineDeepModel-DvV4X8-b.js} +1 -1
  58. package/dist/{duplicate-template-CXCfl2NH.js → duplicate-template-DlzorcMa.js} +1 -1
  59. package/dist/{feature-4PKcZSe0.js → feature-NCkTx8nZ.js} +2 -2
  60. package/dist/{format-time-from-id-DoWSyd1w.js → format-time-from-id-BIbXbn1x.js} +1 -1
  61. package/dist/{format-unit-display-BXx5PrhU.js → format-unit-display-CtM8JmEA.js} +12 -12
  62. package/dist/{import-export.helper-C-njSW-F.js → import-export.helper-BpVJxhqC.js} +6 -6
  63. package/dist/{index-D__km1gW.js → index-B8xG5q19.js} +1 -1
  64. package/dist/{index-xatqRsUm.js → index-CCMIvmic.js} +1 -1
  65. package/dist/{index-DYf5BKra.js → index-CxI3S5Zw.js} +70 -59
  66. package/dist/{inventory-core-dart.default-CG-4fho4.js → inventory-core-dart.default-D3eNj5mW.js} +1 -1
  67. package/dist/{jszip.min-CuKGTB3Q.js → jszip.min-Da4KZ1Eo.js} +2 -2
  68. package/dist/{lz-string-Di2ld6md.js → lz-string-De3Ad7Or.js} +1 -1
  69. package/dist/{netsuite-B_qujeBG.js → netsuite-BJ2iu_mz.js} +2 -2
  70. package/dist/{number-BaHim51P.js → number-B_FUhq8c.js} +3 -3
  71. package/dist/{predefined-templates-BSLRBeB0.js → predefined-templates-BfuWE-x4.js} +1 -1
  72. package/dist/{purchase-order-template-QNfXyt-d.js → purchase-order-template-JoiZd_ds.js} +1 -1
  73. package/dist/{recalculationUtils-B3CX9rQC.js → recalculationUtils-HHFhfIeI.js} +1 -1
  74. package/dist/{rules-DYMYmtzv.js → rules-Cft1gCcq.js} +2 -2
  75. package/dist/{stock-C1jT8ufE.js → stock-CdPtE1IH.js} +3 -3
  76. package/dist/{stock-5uSaJQTg.js → stock-Ey_V3Oj_.js} +1 -1
  77. package/dist/{supplier-BoX9Fh0G.js → supplier-DEUPiLQ_.js} +2 -2
  78. package/dist/{surcharge-FJVEiOpa.js → surcharge-DaT6Cu7U.js} +1 -1
  79. package/dist/tsconfig.app.tsbuildinfo +1 -1
  80. package/dist/{uom-rules-BHrAwdAH.js → uom-rules-Bn_GfC82.js} +1 -1
  81. package/dist/{use-ingredient-select-dialog-mGOA_61r.js → use-ingredient-select-dialog-DPw8cVk_.js} +2 -2
  82. package/dist/{use-inventory-binding-dialog-BSN0xrPb.js → use-inventory-binding-dialog-n5AyYlZF.js} +2 -2
  83. package/dist/{use-template-enabled-locations-Dy-dcIiU.js → use-template-enabled-locations-D9zP8Ujl.js} +2 -2
  84. package/dist/{use-transfer-locations-Da0XeXxv.js → use-transfer-locations-Cc2lnWxt.js} +2 -2
  85. package/dist/{useHrmPermission-Bp7HhhKY.js → useHrmPermission-DCViJxSf.js} +1 -1
  86. package/dist/{useNavigationMenu-DGixRVd0.js → useNavigationMenu-5tm4KA5Z.js} +2 -2
  87. package/dist/{useSseClient-C5GrB7_M.js → useSseClient-DdODeGFt.js} +1 -1
  88. package/dist/{vue-i18n-DvlJg9yn.js → vue-i18n-Wqtbyw1M.js} +217 -217
  89. package/dist/{xlsx.util-BF_fV-5o.js → xlsx.util-B3VrVFTR.js} +2 -2
  90. package/package.json +4 -3
  91. 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-UXaVUOFj.js";
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-qwJVwq2l.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-DYMYmtzv.js";
9
+ import { R as I } from "./rules-Cft1gCcq.js";
10
10
  import { c as Fe, u as se, g as Ge } from "./googlemap-D9vA7GsS.js";
11
- import { d as Ke } from "./index-D__km1gW.js";
11
+ import { d as Ke } from "./index-B8xG5q19.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-4PKcZSe0.js";
14
+ import { u as Ze } from "./feature-NCkTx8nZ.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-DHGRyJJ2.js";
16
+ import { _ as Qe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-i6bgYKcA.js";
17
17
  const X = Pe((y, v) => {
18
18
  const h = Ce();
19
19
  return {
@@ -1,32 +1,32 @@
1
- import { ref as C, h as P, defineComponent as Y, resolveComponent as M, createElementBlock as D, 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";
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-DHGRyJJ2.js";
5
+ import { _ as st } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-i6bgYKcA.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, I as N, l as ut, D as fe, J as me } from "./app-UXaVUOFj.js";
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-qwJVwq2l.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-DoWSyd1w.js";
13
- import { u as de } from "./closing-template-BL_7K26j.js";
14
- import { _ as Pe } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BS0WQ2q-.js";
15
- import { t as ve, a as Ke, d as Ye, s as Ge, r as dt } from "./xlsx.util-BF_fV-5o.js";
16
- import { f as pt, a as ft } from "./date2-DWsaERsg.js";
17
- import { u as vt } from "./netsuite-B_qujeBG.js";
12
+ import { f as mt } from "./format-time-from-id-BIbXbn1x.js";
13
+ import { u as de } from "./closing-template-DAp9kYJX.js";
14
+ import { _ as Pe } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-JWniWB_s.js";
15
+ import { t as ve, a as Ke, d as Ye, s as Ge, r as dt } from "./xlsx.util-B3VrVFTR.js";
16
+ import { f as pt, a as ft } from "./date2-DBkK81Nl.js";
17
+ import { u as vt } from "./netsuite-BJ2iu_mz.js";
18
18
  import { F as yt } from "./FmDroppableField-J0tG_U3w.js";
19
- import { u as ht } from "./duplicate-template-CXCfl2NH.js";
20
- import { A as gt, R as Je } from "./rules-DYMYmtzv.js";
21
- import { d as bt } from "./defineDeepModel-CRz54q7h.js";
22
- import { u as _t } from "./use-template-enabled-locations-Dy-dcIiU.js";
23
- import { a as xt } from "./FmMultiselectDialog-CqSQTy19.js";
24
- import { _ as wt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-B-T5hfVU.js";
19
+ import { u as ht } from "./duplicate-template-DlzorcMa.js";
20
+ import { A as gt, R as Je } from "./rules-Cft1gCcq.js";
21
+ import { d as bt } from "./defineDeepModel-DvV4X8-b.js";
22
+ import { u as _t } from "./use-template-enabled-locations-D9zP8Ujl.js";
23
+ import { a as xt } from "./FmMultiselectDialog-CSZLfKrO.js";
24
+ import { _ as wt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-DGCivXse.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 = C({}), i = C(new Array()), r = C(!1), s = he(), o = de(), d = C({}), m = C();
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 Dt(u) {
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 Ct = { 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 = {
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 = C(!1), v = () => {
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(), D("div", Ct, [
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(), D("span", Vt, "(" + j($(p)("inventory.closing.template.import.new")) + ")", 1)) : z("", !0)
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(), D("div", jt, [
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(), D("div", {
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(), D("div", Lt, [
744
+ i.errors.length ? (A(), C("div", Lt, [
745
745
  T("ol", null, [
746
- (A(!0), D(H, null, Q(i.errors, (x, c) => (A(), D("li", { key: c }, j(x), 1))), 128))
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 = C(null), p = lt(), y = ce(), v = C(!1), i = C(!1), r = C(new Array()), s = C([]), o = C([]), d = U(
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 = Dt(k);
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(), D("div", Nt, [
818
+ return A(), C("div", Nt, [
819
819
  T("div", Bt, j($(x)("inventory.adjustment.template.import.message")), 1),
820
- i.value ? (A(), D("div", zt, [
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(), D(H, { key: 1 }, [
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(), D("div", Kt, [
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(), D("div", Yt, [
884
- (A(!0), D(H, null, Q(r.value, (t, n) => (A(), D("div", {
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(), D("div", Jt, [
901
+ m.value ? (A(), C("div", Jt, [
902
902
  T("div", qt, j($(x)("inventory.ingredient.import.summary")), 1),
903
- (A(!0), D(H, null, Q(s.value, (h, t) => (A(), O(Ve, {
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), D(H, null, Q(o.value, (h) => (A(), O(Ve, {
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 = C({});
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 = C({});
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 = C({});
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 = C(y.modelValue), { t: i } = G(), r = p, s = Z(), o = X(), d = C(), m = C("");
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(), D("div", nn, [
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(), D("div", sn, [
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), D(H, null, Q(b.value, (l) => (A(), D("li", {
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 = C();
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 = C(y.modelValue ?? x()), b = C(((g = y.modelValue) == null ? void 0 : g._id) ?? `${Math.random()}`);
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 = C(!1), S = U(() => {
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 = C();
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(), D(H, { key: 0 }, [
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(), D(H, { key: 0 }, [
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(), D("div");
1975
+ return A(), C("div");
1976
1976
  }
1977
- const Fn = /* @__PURE__ */ Tt(An, [["render", Rn]]), Dn = { class: "flex flex-col gap-16" }, Cn = { 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({
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 = C([]), s = a, o = ee(), d = de(), m = C(!1);
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 = C(), w = () => {
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", Dn, [
2093
- T("div", Cn, [
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), D(H, null, Q(r.value, (R, F) => (A(), D("div", {
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 = C(""), w = U(() => b.value.xs || b.value.sm), e = U(() => w.value ? 10 : 20);
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(), D(H, null, [
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, De, Ce, se, Me;
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: (Ce = (De = (Fe = E.status) == null ? void 0 : Fe.column) == null ? void 0 : De.columnDef) == null ? void 0 : Ce.cell,
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
  ])
@@ -1,18 +1,7 @@
1
- export interface CodemaxSyncLogRow {
2
- billId: string;
3
- invoiceNo: string;
4
- billSeq: string | null;
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[]>;