@feedmepos/mf-inventory-portal 1.2.51-dev.1 → 1.2.51

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 (96) hide show
  1. package/dist/{App-bY_YcLwH.js → App-BJ_vKOR1.js} +70 -75
  2. package/dist/{ApprovalView-vzIiBqt2.js → ApprovalView-B_prTTtl.js} +34 -34
  3. package/dist/{BindingsDialog-DCh2ORem.js → BindingsDialog-BPuKgJIk.js} +2 -2
  4. package/dist/{BindingsPicker-DcNG03p-.js → BindingsPicker-Dv_cmEil.js} +2 -2
  5. package/dist/{BindingsTable-B_Yaq-z3.js → BindingsTable-BNSfYRfq.js} +4 -4
  6. package/dist/{ClosingDraftView-C0T8cWEB.js → ClosingDraftView-C78tcaJ3.js} +399 -413
  7. package/dist/{ClosingHistoryView-DkKAjh7T.js → ClosingHistoryView-DY8liEk3.js} +27 -27
  8. package/dist/{ClosingTemplateView-DpH1EyW5.js → ClosingTemplateView-pJXEcrjO.js} +17 -18
  9. package/dist/{DeliveryOrderPrintPreview-B2ecLaLu.js → DeliveryOrderPrintPreview-Bu_l-kxu.js} +1 -1
  10. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dgibb-Fh.js +231 -0
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DHe5G3kX.js} +12 -12
  12. package/dist/{FmMultiselectDialog-DGUwruxs.js → FmMultiselectDialog-C3iCMK5I.js} +1 -1
  13. package/dist/FmMultiselectDialog-CDONDKxE.js +598 -0
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CRTG3VFo.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CefvebOx.js} +3 -3
  15. package/dist/{ImportView-Bk4Z7nGh.js → ImportView-JrenRgiI.js} +7 -7
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BEJ19Uej.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CSdxodp6.js} +1 -1
  17. package/dist/{IngredientGroupView-8GHMMOux.js → IngredientGroupView-aDFq_ZDh.js} +107 -108
  18. package/dist/{IngredientsView-DbmODx-v.js → IngredientsView-DSh3UqDg.js} +125 -126
  19. package/dist/{IntegrationView-DC0O_Lk4.js → IntegrationView-KhZ78uxM.js} +80 -80
  20. package/dist/{InventoryBindingForm-ln0q25n_.js → InventoryBindingForm-DZu0CZYh.js} +1 -1
  21. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFgk9rSe.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-YuCn0irA.js} +21 -21
  22. package/dist/{InventoryBindingSummary-BlNXhS4v.js → InventoryBindingSummary-DZxLhZ_-.js} +1 -1
  23. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BY_mXqPr.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DAwpZY3n.js} +1 -1
  24. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BhNjwE3X.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CPDxwz-V.js} +2 -2
  25. package/dist/{PublishView-5GkTzxbi.js → PublishView-CLnQ7NBN.js} +3 -3
  26. package/dist/{PurchaseOrderPrintPreview-Dj5lJ5Ou.js → PurchaseOrderPrintPreview-DiBztBma.js} +1 -1
  27. package/dist/ReceiveRequestView-_TOSnDGJ.js +2913 -0
  28. package/dist/{RecipeView-OLPRwnVx.js → RecipeView-BPIMvoTw.js} +82 -83
  29. package/dist/{StockView-TcA5zJqr.js → StockView-CI8MUJay.js} +112 -113
  30. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DZ6TDkKR.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DEBHEMkh.js} +1 -1
  31. package/dist/{SupplierView-77qI9YCg.js → SupplierView-COihDMNY.js} +27 -28
  32. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-_8YeihNH.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-D-c0Ayis.js} +2 -2
  33. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js +162 -0
  34. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-ByPIjcED.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D8vbPlie.js} +13 -13
  35. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-7BoFD5wV.js → TransferDetails.vue_vue_type_script_setup_true_lang-BVuuw11z.js} +659 -658
  36. package/dist/{TransferTemplateView-CI0U36Tr.js → TransferTemplateView-B2NNfrEq.js} +81 -82
  37. package/dist/{UnitView-fNFFUNlb.js → UnitView-ZsbM07hw.js} +19 -20
  38. package/dist/{WarehouseView-BAXgnZnO.js → WarehouseView-Cd5RFu5v.js} +20 -21
  39. package/dist/{WastageTemplateView-C5qCXWqZ.js → WastageTemplateView-DpikyyZW.js} +164 -165
  40. package/dist/api/netsuite.d.ts +0 -8
  41. package/dist/{app-CddcvygU.js → app-CySQTQxj.js} +4410 -4513
  42. package/dist/app-uBuHtW8m.js +8127 -0
  43. package/dist/app.d.ts +0 -52
  44. package/dist/app.js +1 -1
  45. package/dist/{closing-template-DxdLqlb1.js → closing-template-DXGjC5AG.js} +1 -1
  46. package/dist/components/FmInventoryTableToolbar.vue.d.ts +0 -8
  47. package/dist/components/FmMultiselectDialogProps.d.ts +0 -5
  48. package/dist/cypress/component/receive-request/KDI-15-total-price-currency.cy.d.ts +2 -0
  49. package/dist/{date2-CVZy20Q_.js → date2-BWoUn1K_.js} +1 -1
  50. package/dist/{dayjs.min-NrRtjg32.js → dayjs.min-cMW8olEu.js} +26 -26
  51. package/dist/{decimal-Du3Grkk9.js → decimal-8BRzZQU6.js} +2 -2
  52. package/dist/{defineDeepModel-DgRoiQBp.js → defineDeepModel-AsUZ-DyW.js} +1 -1
  53. package/dist/{duplicate-template-DvnZ4BW6.js → duplicate-template-CyHfZR3S.js} +1 -1
  54. package/dist/{feature-CTA18HlL.js → feature-Dm0FnWf9.js} +6178 -8906
  55. package/dist/{format-time-from-id-6kt1RMWs.js → format-time-from-id-C9lmv5BP.js} +1 -1
  56. package/dist/{format-unit-display-mVJ-nuJe.js → format-unit-display-BV8pJisO.js} +11 -11
  57. package/dist/{import-export.helper-DWwlJy7N.js → import-export.helper-Djxw_H5S.js} +5 -5
  58. package/dist/{index-By-jyWOP.js → index-8hCa5_Gb.js} +1 -1
  59. package/dist/{index-BfcdagSF.js → index-D6u3kywf.js} +1 -1
  60. package/dist/{index-BEcj1jGd.js → index-DidYtgNc.js} +3 -3
  61. package/dist/{lodash-D0COOw3m.js → lodash-CW_Ea6mA.js} +1 -1
  62. package/dist/netsuite-BEto-z0v.js +5131 -0
  63. package/dist/{purchase-order-template-CJCmABzP.js → purchase-order-template-BTzjcgrO.js} +1 -1
  64. package/dist/router/name.d.ts +0 -1
  65. package/dist/{rules-hQBVd1Mn.js → rules-DkVWS5mF.js} +9 -9
  66. package/dist/{stock-4xGaezEy.js → stock-CHw8pI8V.js} +3 -3
  67. package/dist/{stock-B6QW-S14.js → stock-D8hLHgeN.js} +1 -1
  68. package/dist/stores/feature.d.ts +2 -4
  69. package/dist/stores/integration/netsuite.d.ts +0 -5
  70. package/dist/style.css +1 -1
  71. package/dist/{supplier-C-dmFnqw.js → supplier-Dv83IfQr.js} +2 -2
  72. package/dist/tsconfig.app.tsbuildinfo +1 -1
  73. package/dist/{use-ingredient-select-dialog-DgYSZDN8.js → use-ingredient-select-dialog-CJjd4g-6.js} +2 -2
  74. package/dist/{use-inventory-binding-dialog-CnYcA_Fo.js → use-inventory-binding-dialog-D4g79p5S.js} +2 -2
  75. package/dist/{use-template-enabled-locations-2-B_aZrMUU.js → use-template-enabled-locations-2-Cg2iqQdq.js} +2 -2
  76. package/dist/views/ingredients/helper/calculate-default-cost.d.ts +9 -0
  77. package/dist/views/receive-request/components/transfer-form/TransferForm2.vue.d.ts +22 -0
  78. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +0 -714
  79. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -8
  80. package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
  81. package/dist/{vue-i18n-BCEDBY4T.js → vue-i18n-kUcLfpvT.js} +563 -563
  82. package/dist/{xlsx-CJsXiiEq.js → xlsx-BjeMbhDF.js} +398 -398
  83. package/dist/{xlsx.util-CSudzOii.js → xlsx.util-9eMlJfd9.js} +1 -1
  84. package/package.json +5 -5
  85. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CI4z5XYQ.js +0 -188
  86. package/dist/FmMultiselectDialog-BviFuAM5.js +0 -618
  87. package/dist/ReceiveRequestView-BAYczSpW.js +0 -2913
  88. package/dist/SurchargeView-CxW2ZZ8a.js +0 -460
  89. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js +0 -84
  90. package/dist/api/surcharge.d.ts +0 -31
  91. package/dist/app-DiX-EfV6.js +0 -8167
  92. package/dist/component-DpCUABT3.js +0 -82
  93. package/dist/netsuite-3LgQ5ztL.js +0 -5402
  94. package/dist/stores/surcharge.d.ts +0 -18
  95. package/dist/surcharge-Db4IiSEQ.js +0 -71
  96. package/dist/views/surcharge/SurchargeView.vue.d.ts +0 -2
@@ -1,10 +1,10 @@
1
- import { defineComponent as G, ref as v, computed as D, watch as se, resolveComponent as S, openBlock as i, createElementBlock as f, createVNode as g, withModifiers as ie, withCtx as L, createElementVNode as n, toDisplayString as s, unref as a, Fragment as $, createTextVNode as N, createBlock as T, createCommentVNode as k, renderList as z, normalizeClass as ce, h as re, onMounted as de, Teleport as ue } from "vue";
1
+ import { defineComponent as G, ref as v, computed as D, watch as se, resolveComponent as S, openBlock as i, createElementBlock as f, createVNode as g, withModifiers as ie, withCtx as B, createElementVNode as n, toDisplayString as s, unref as a, Fragment as E, createTextVNode as N, createBlock as T, createCommentVNode as k, renderList as z, normalizeClass as ce, h as re, onMounted as de, Teleport as ue } from "vue";
2
2
  import { F as me, _ as fe } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
3
3
  import { useI18n as J, useCoreStore as ve } from "@feedmepos/mf-common";
4
- import { E as Q, B as V, u as ye } from "./app-CddcvygU.js";
5
- import { _ as pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js";
4
+ import { D as Q, A as V, u as ye } from "./app-CySQTQxj.js";
5
+ import { _ as pe } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DHe5G3kX.js";
6
6
  import { useSnackbar as W, useDialog as ge } from "@feedmepos/ui-library";
7
- import { u as _e } from "./stock-B6QW-S14.js";
7
+ import { u as _e } from "./stock-D8hLHgeN.js";
8
8
  const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col gap-16" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, xe = { class: "flex flex-col gap-8" }, De = { class: "fm-typo-en-body-md-600" }, we = { class: "flex flex-col gap-8" }, Se = { class: "fm-typo-en-body-md-600" }, Ve = { class: "flex items-center gap-8 mb-8" }, Ae = {
9
9
  key: 2,
10
10
  class: "text-red-500 text-sm mt-2"
@@ -14,13 +14,13 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
14
14
  }, Re = {
15
15
  key: 0,
16
16
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
17
- }, Be = {
17
+ }, Le = {
18
18
  key: 1,
19
19
  class: "flex flex-col gap-8"
20
- }, Le = { class: "fm-typo-en-body-sm-600" }, Te = { class: "flex flex-col gap-4" }, Ie = { key: 0 }, Oe = {
20
+ }, Be = { class: "fm-typo-en-body-sm-600" }, Te = { class: "flex flex-col gap-4" }, Ie = { key: 0 }, Oe = {
21
21
  key: 1,
22
22
  class: "flex flex-col gap-8"
23
- }, Ee = { class: "fm-typo-en-body-md-600" }, $e = { class: "flex flex-col gap-8 max-h-[300px] overflow-y-auto" }, Ne = { class: "flex items-center justify-between" }, Pe = { class: "fm-typo-en-body-sm-600" }, Ue = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ke = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Me = {
23
+ }, $e = { class: "fm-typo-en-body-md-600" }, Ee = { class: "flex flex-col gap-8 max-h-[300px] overflow-y-auto" }, Ne = { class: "flex items-center justify-between" }, Pe = { class: "fm-typo-en-body-sm-600" }, Ue = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ke = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Me = {
24
24
  key: 0,
25
25
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
26
26
  }, He = {
@@ -65,7 +65,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
65
65
  } catch (e) {
66
66
  console.error("Error parsing date from closing ID:", e);
67
67
  }
68
- }), B = D(() => {
68
+ }), L = D(() => {
69
69
  if (!d.value || !c.value) return "";
70
70
  const e = V(d.value), o = c.value;
71
71
  if (e && o) {
@@ -74,7 +74,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
74
74
  return l("inventory.stock.recalculation.error.endDateBeforeOpening");
75
75
  }
76
76
  return "";
77
- }), U = D(() => !!d.value && !!c.value && !B.value), K = D(() => w.value.some(
77
+ }), U = D(() => !!d.value && !!c.value && !L.value), K = D(() => w.value.some(
78
78
  (e) => !e.completedAt && !e.failedReason
79
79
  ));
80
80
  async function M() {
@@ -138,7 +138,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
138
138
  se(
139
139
  [d, c],
140
140
  () => {
141
- d.value && c.value && !B.value ? te() : r.value = [];
141
+ d.value && c.value && !L.value ? te() : r.value = [];
142
142
  },
143
143
  { immediate: !1 }
144
144
  );
@@ -167,7 +167,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
167
167
  }
168
168
  }
169
169
  return (e, o) => {
170
- const b = S("FmButton"), E = S("FmSelect"), j = S("FmRadio"), le = S("FmDatePicker"), ae = S("FmAlert"), ne = S("FmDialog");
170
+ const b = S("FmButton"), $ = S("FmSelect"), j = S("FmRadio"), le = S("FmDatePicker"), ae = S("FmAlert"), ne = S("FmDialog");
171
171
  return i(), f("div", null, [
172
172
  g(b, {
173
173
  "prepend-icon": "info",
@@ -181,10 +181,10 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
181
181
  dismissAway: "",
182
182
  "max-width": "600px"
183
183
  }, {
184
- "dialog-header": L(() => [
184
+ "dialog-header": B(() => [
185
185
  n("div", be, s(a(l)("inventory.stock.recalculation.title")), 1)
186
186
  ]),
187
- "dialog-footer": L(() => [
187
+ "dialog-footer": B(() => [
188
188
  K.value ? (i(), f("div", Ge, [
189
189
  g(b, {
190
190
  variant: "tertiary",
@@ -207,17 +207,17 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
207
207
  }, null, 8, ["disabled", "loading", "label"])
208
208
  ]))
209
209
  ]),
210
- default: L(() => [
210
+ default: B(() => [
211
211
  n("div", he, [
212
212
  n("div", ke, s(a(l)("inventory.stock.recalculation.description")), 1),
213
- K.value ? k("", !0) : (i(), f($, { key: 0 }, [
213
+ K.value ? k("", !0) : (i(), f(E, { key: 0 }, [
214
214
  n("div", xe, [
215
215
  n("p", De, [
216
216
  N(s(a(l)("inventory.stock.recalculation.openingDate")) + " ", 1),
217
217
  o[8] || (o[8] = n("span", { class: "text-fm-color-system-error-300" }, "*", -1))
218
218
  ]),
219
219
  o[9] || (o[9] = n("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary mb-4" }, " Showing the last 30 closing records. Select the opening date to start recalculation. ", -1)),
220
- g(E, {
220
+ g($, {
221
221
  modelValue: d.value,
222
222
  "onUpdate:modelValue": o[0] || (o[0] = (t) => d.value = t),
223
223
  items: R.value,
@@ -245,7 +245,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
245
245
  label: a(l)("inventory.stock.recalculation.selectByClosing")
246
246
  }, null, 8, ["modelValue", "label"])
247
247
  ]),
248
- _.value ? (i(), T(E, {
248
+ _.value ? (i(), T($, {
249
249
  key: 1,
250
250
  modelValue: P.value,
251
251
  "onUpdate:modelValue": o[4] || (o[4] = (t) => P.value = t),
@@ -261,22 +261,22 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
261
261
  min: Z.value,
262
262
  disabled: !d.value || u.value
263
263
  }, null, 8, ["modelValue", "placeholder", "min", "disabled"])),
264
- B.value ? (i(), f("div", Ae, s(B.value), 1)) : k("", !0)
264
+ L.value ? (i(), f("div", Ae, s(L.value), 1)) : k("", !0)
265
265
  ]),
266
- d.value && c.value && !B.value ? (i(), T(ae, {
266
+ d.value && c.value && !L.value ? (i(), T(ae, {
267
267
  key: 0,
268
268
  type: "info"
269
269
  }, {
270
- default: L(() => [
270
+ default: B(() => [
271
271
  n("div", Ce, s(a(l)("inventory.stock.recalculation.info")), 1)
272
272
  ]),
273
273
  _: 1
274
274
  })) : k("", !0),
275
275
  r.value.length > 0 ? (i(), f("div", Fe, [
276
- p.value ? (i(), f("div", Re, " Loading affected closing drafts... ")) : (i(), f("div", Be, [
277
- n("div", Le, " Affected closing draft(s): " + s(r.value.length), 1),
276
+ p.value ? (i(), f("div", Re, " Loading affected closing drafts... ")) : (i(), f("div", Le, [
277
+ n("div", Be, " Affected closing draft(s): " + s(r.value.length), 1),
278
278
  n("div", Te, [
279
- (i(!0), f($, null, z(r.value, (t) => (i(), f("div", {
279
+ (i(!0), f(E, null, z(r.value, (t) => (i(), f("div", {
280
280
  key: t._id,
281
281
  class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
282
282
  }, [
@@ -288,9 +288,9 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
288
288
  ])) : k("", !0)
289
289
  ], 64)),
290
290
  w.value.length > 0 ? (i(), f("div", Oe, [
291
- n("p", Ee, s(a(l)("inventory.stock.recalculation.recentRequests")), 1),
292
- n("div", $e, [
293
- (i(!0), f($, null, z(w.value, (t) => (i(), f("div", {
291
+ n("p", $e, s(a(l)("inventory.stock.recalculation.recentRequests")), 1),
292
+ n("div", Ee, [
293
+ (i(!0), f(E, null, z(w.value, (t) => (i(), f("div", {
294
294
  key: t._id,
295
295
  class: "p-12 border border-fm-color-border-primary rounded-8 flex flex-col gap-4"
296
296
  }, [
@@ -416,7 +416,7 @@ const be = { class: "fm-typo-en-heading-lg-600" }, he = { class: "flex flex-col
416
416
  title: a(h)("inventory.closing.history.title"),
417
417
  "onClick:action": _
418
418
  }, {
419
- default: L(() => [
419
+ default: B(() => [
420
420
  n("div", Qe, [
421
421
  g(pe, {
422
422
  "change-location": "",
@@ -4,24 +4,23 @@ import { useI18n as W, useCoreStore as de } from "@feedmepos/mf-common";
4
4
  import { useDialog as pe, useDialogChild as Ze, useSnackbar as ce, FmButtonVariant as oe, components as Y, FmAdvancedSort as et, useProxiedModel as tt, useBreakpoints as nt } from "@feedmepos/ui-library";
5
5
  import { defineStore as Ve, storeToRefs as Ue } from "pinia";
6
6
  import { F as G } from "./form-mode.enum-BKiNVH6A.js";
7
- import { a as me } from "./closing-template-DxdLqlb1.js";
8
- import { u as fe, c as Ne, a as ve, n as ot } from "./app-CddcvygU.js";
9
- import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-CSudzOii.js";
7
+ import { a as me } from "./closing-template-DXGjC5AG.js";
8
+ import { u as fe, c as Ne, a as ve, n as ot } from "./app-CySQTQxj.js";
9
+ import { t as re, a as ge, d as ye, s as Le, r as st } from "./xlsx.util-9eMlJfd9.js";
10
10
  import { F as lt } from "./FmDroppableField-J0xUsOTV.js";
11
- import { f as Be, a as le } from "./date2-CVZy20Q_.js";
11
+ import { f as Be, a as le } from "./date2-BWoUn1K_.js";
12
12
  import { D as se, R as z } from "./row-action.enum-BcW_L_nE.js";
13
- import { c as at } from "./component-DpCUABT3.js";
14
- import { f as rt } from "./format-time-from-id-6kt1RMWs.js";
15
- import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-ByPIjcED.js";
16
- import { u as ct } from "./netsuite-3LgQ5ztL.js";
17
- import { u as mt } from "./duplicate-template-DvnZ4BW6.js";
18
- import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-kVpsL4cx.js";
19
- import { R as dt, A as pt } from "./rules-hQBVd1Mn.js";
20
- import { u as ft } from "./use-ingredient-select-dialog-DgYSZDN8.js";
21
- import { d as vt } from "./defineDeepModel-DgRoiQBp.js";
22
- import { F as X, _ as ze } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
23
- import { u as gt } from "./use-template-enabled-locations-2-B_aZrMUU.js";
24
- import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-_8YeihNH.js";
13
+ import { c as at, F as X, _ as ze } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-cfFHDIwQ.js";
14
+ import { f as rt } from "./format-time-from-id-C9lmv5BP.js";
15
+ import { _ as it } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D8vbPlie.js";
16
+ import { u as ct } from "./netsuite-BEto-z0v.js";
17
+ import { u as mt } from "./duplicate-template-CyHfZR3S.js";
18
+ import { _ as ut } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DHe5G3kX.js";
19
+ import { R as dt, A as pt } from "./rules-DkVWS5mF.js";
20
+ import { u as ft } from "./use-ingredient-select-dialog-CJjd4g-6.js";
21
+ import { d as vt } from "./defineDeepModel-AsUZ-DyW.js";
22
+ import { u as gt } from "./use-template-enabled-locations-2-Cg2iqQdq.js";
23
+ import { _ as yt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-D-c0Ayis.js";
25
24
  import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
26
25
  const ue = Ve(
27
26
  "closingTemplateTable",
@@ -1869,7 +1868,7 @@ const Tn = /* @__PURE__ */ ht(wn, [["render", kn]]), $n = { class: "flex flex-co
1869
1868
  ]);
1870
1869
  };
1871
1870
  }
1872
- }), Nn = { class: "flex-1 flex flex-col gap-8" }, Ln = { class: "flex flex-col" }, Bn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, zn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Hn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, On = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, go = /* @__PURE__ */ K({
1871
+ }), Nn = { class: "flex-1 flex flex-col gap-8" }, Ln = { class: "flex flex-col" }, Bn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, zn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Hn = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary line-clamp-2" }, On = { class: "fm-typo-en-body-lg-400 line-clamp-2" }, vo = /* @__PURE__ */ K({
1873
1872
  __name: "ClosingTemplateView",
1874
1873
  setup(m) {
1875
1874
  const { t: r } = W(), { createTemplate: l, updateTemplate: d, exportTemplates: t, importTemplates: n } = ie(), { templateDialogProps: f, templateDetailsProps: b } = Ue(ie()), c = fe(), a = pe(), g = ue(), i = Xe(), { breakpoints: h } = nt();
@@ -2055,5 +2054,5 @@ const Tn = /* @__PURE__ */ ht(wn, [["render", kn]]), $n = { class: "flex flex-co
2055
2054
  }
2056
2055
  });
2057
2056
  export {
2058
- go as default
2057
+ vo as default
2059
2058
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as x, computed as f, ref as h, onMounted as _, openBlock as u, createElementBlock as i, createElementVNode as t, createTextVNode as n, toDisplayString as e, createCommentVNode as d, Fragment as o, renderList as p, normalizeClass as g } from "vue";
2
2
  import { useRoute as k } from "vue-router";
3
- import { M as y } from "./app-CddcvygU.js";
3
+ import { M as y } from "./app-CySQTQxj.js";
4
4
  import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const c = { class: "purchase-box" }, A = { valign: "bottom" }, N = { class: "sub-header" }, O = ["src"], P = { style: { "padding-left": "10px" } }, C = { class: "address" }, D = { class: "text-right" }, R = {
6
6
  key: 0,
@@ -0,0 +1,231 @@
1
+ import { J as O, u as D, t as C, T as A, V as E, y as V } from "./app-CySQTQxj.js";
2
+ import { a as L, t as R } from "./rules-DkVWS5mF.js";
3
+ import { u as z } from "./supplier-Dv83IfQr.js";
4
+ import { computed as f, defineComponent as H, mergeModels as j, useModel as q, ref as x, resolveComponent as w, openBlock as P, createElementBlock as U, normalizeStyle as W, createElementVNode as I, createVNode as $, withCtx as J, createBlock as g, createCommentVNode as N, Fragment as Y, renderList as K, unref as M } from "vue";
5
+ import { F as Q } from "./FmMultiselectDialog-CDONDKxE.js";
6
+ function X(e, r, a) {
7
+ var o;
8
+ if (!!r.measurement === !!a && ((o = r.measurement) == null ? void 0 : o.id) === a)
9
+ return r;
10
+ if (!a)
11
+ return {
12
+ costPerUnit: r.costPerUnit
13
+ };
14
+ const n = e.measurements.find((p) => p.id === a);
15
+ return n ? {
16
+ costPerUnit: r.costPerUnit,
17
+ measurement: n
18
+ } : {
19
+ costPerUnit: r.costPerUnit
20
+ };
21
+ }
22
+ function ne(e, r, a, u) {
23
+ var T, _, s;
24
+ const l = (s = (_ = (T = u == null ? void 0 : u.supplier) == null ? void 0 : T.supplyItems) == null ? void 0 : _.find(
25
+ (t) => t.skuId === e._id
26
+ )) == null ? void 0 : s.defaultCost;
27
+ if (u != null && u.manualTotalCost)
28
+ return {
29
+ cost: u.manualTotalCost,
30
+ skuDefaultCost: e.defaultCost ?? void 0,
31
+ supplierOverrideCost: l ?? void 0
32
+ };
33
+ const n = e.defaultCost ? X(e.unit, e.defaultCost, e.trackingMeasurement) : void 0, o = l ?? n, p = o == null ? void 0 : o.costPerUnit, v = p ? o != null && o.measurement ? +L(p) / +L(o == null ? void 0 : o.measurement.conversion) : +L(p) : void 0, b = v ? a ? v * +L(a.conversion) : v : void 0, h = b ? +L(r) * b : void 0;
34
+ return {
35
+ cost: h ? {
36
+ ...R(h ?? 0, 2),
37
+ currency: O()
38
+ } : {
39
+ amount: 0,
40
+ precision: 0,
41
+ currency: O()
42
+ },
43
+ skuDefaultCost: e.defaultCost ?? void 0,
44
+ supplierOverrideCost: l ?? void 0
45
+ };
46
+ }
47
+ function k(e) {
48
+ const r = E.safeParse(e);
49
+ if (r.success) return r.data;
50
+ throw new Error("Invalid supplier data");
51
+ }
52
+ function S(e) {
53
+ return {
54
+ _id: e.doc._id,
55
+ internal: e.type,
56
+ contactName: e.doc.profile.name,
57
+ name: e.doc.profile.name ?? "",
58
+ email: e.doc.profile.email,
59
+ phoneNumber: e.doc.profile.phoneNo,
60
+ registrationNumber: e.doc.profile.regNo,
61
+ address: e.doc.profile.address ?? {
62
+ line1: "",
63
+ state: "",
64
+ city: "",
65
+ postcode: "",
66
+ country: ""
67
+ },
68
+ preparationTime: e.preparationTime
69
+ };
70
+ }
71
+ function re(e, r, a = !1, u = !1) {
72
+ const l = z(), n = D();
73
+ n.watchLocation(async () => {
74
+ var y;
75
+ await l.readSuppliers();
76
+ const s = e();
77
+ if ((y = s.supplier) != null && y._id) return;
78
+ const t = u ? l.suppliers[0] : l.businessSuppliers[0], i = (a ? n.locations.filter((d) => d.doc._id !== n.currentLocation.doc._id) : n.locations)[0];
79
+ r({
80
+ ...s,
81
+ supplier: t ? k(t) : i ? S(i) : s.supplier
82
+ });
83
+ });
84
+ const o = f(
85
+ () => {
86
+ var s, t;
87
+ return typeof ((t = (s = e()) == null ? void 0 : s.supplier) == null ? void 0 : t.internal) == "string" ? C.enum.transfer : C.enum.purchase;
88
+ }
89
+ ), p = f({
90
+ get() {
91
+ var s, t;
92
+ return (t = (s = e()) == null ? void 0 : s.supplier) == null ? void 0 : t._id;
93
+ },
94
+ set(s) {
95
+ const t = e() ?? {};
96
+ if (o.value === C.enum.purchase) {
97
+ const F = (u ? l.suppliers : l.businessSuppliers).find((B) => B._id === s);
98
+ r({
99
+ ...t,
100
+ supplier: F ? k(F) : t.supplier
101
+ });
102
+ return;
103
+ }
104
+ const y = (a ? n.allLocations.filter(
105
+ (d) => d.doc._id !== n.currentLocation.doc._id
106
+ ) : n.allLocations).find((d) => d.doc._id === s);
107
+ r({
108
+ ...t,
109
+ supplier: y ? S(y) : t.supplier
110
+ });
111
+ }
112
+ }), v = f(() => l.locationSuppliers.map(k)), b = f(() => l.businessSuppliers.map(k)), h = f(() => {
113
+ const s = [...v.value], t = [...b.value];
114
+ return u ? [...t, ...s] : t;
115
+ }), c = f(() => {
116
+ var m;
117
+ const s = ((m = n._currentLocation) == null ? void 0 : m.type) === A.warehouse;
118
+ return (a ? n.allLocations.filter(
119
+ (i) => i.doc._id !== n.currentLocation.doc._id
120
+ ) : n.allLocations).filter((i) => s || i.acceptRequest).map(S);
121
+ }), T = f(() => {
122
+ if (o.value === C.enum.purchase) {
123
+ const t = v.value.map((i) => ({
124
+ label: i.name,
125
+ value: i._id
126
+ })), m = b.value.map((i) => ({
127
+ label: i.name,
128
+ sublabel: "Business supplier",
129
+ value: i._id
130
+ }));
131
+ return u ? [...t, ...m] : m;
132
+ }
133
+ return c.value.map((t) => ({
134
+ label: t.name,
135
+ sublabel: t.internal ? `${t.internal}` : void 0,
136
+ value: t._id
137
+ }));
138
+ }), _ = f(() => {
139
+ var i, y;
140
+ const s = (y = (i = e()) == null ? void 0 : i.supplier) == null ? void 0 : y._id;
141
+ if (o.value === C.enum.purchase) {
142
+ const d = l.suppliers.find((F) => F._id === s);
143
+ return d ? k(d) : null;
144
+ }
145
+ const m = n.allLocations.find((d) => d.doc._id);
146
+ return m ? S(m) : null;
147
+ });
148
+ return {
149
+ transferLocationModel: p,
150
+ transferLocationOptions: T,
151
+ locationOptionsTypePurchase: h,
152
+ locationOptionsTypePurchaseLocationLevel: v,
153
+ locationOptionsTypeTransfer: c,
154
+ selectedLocation: _
155
+ };
156
+ }
157
+ const Z = { class: "overflow-y-auto h-full pb-8" }, ae = /* @__PURE__ */ H({
158
+ __name: "FmFilterableMenuOptions",
159
+ props: /* @__PURE__ */ j({
160
+ modelValue: {},
161
+ maxHeight: {},
162
+ width: {},
163
+ handleItemChange: { type: Function },
164
+ items: {},
165
+ options: {}
166
+ }, {
167
+ search: {},
168
+ searchModifiers: {}
169
+ }),
170
+ emits: ["update:search"],
171
+ setup(e) {
172
+ const r = e, a = q(e, "search"), u = f(
173
+ () => new Q(r.items, ["label", "sublabel"], {
174
+ caseSensitive: !1,
175
+ sort: !0
176
+ })
177
+ ), l = f(() => u.value.search(a.value)), n = x();
178
+ return console.log({ stickyRef: n }), (o, p) => {
179
+ const v = w("FmButton"), b = w("FmTextField"), h = w("FmMenuItem");
180
+ return P(), U("div", {
181
+ class: "relative",
182
+ style: W({ width: o.width })
183
+ }, [
184
+ I("div", {
185
+ class: "sticky top-0 bg-white mb-8",
186
+ ref_key: "stickyRef",
187
+ ref: n
188
+ }, [
189
+ $(b, {
190
+ modelValue: a.value,
191
+ "onUpdate:modelValue": p[1] || (p[1] = (c) => a.value = c),
192
+ placeholder: "Filter options"
193
+ }, {
194
+ append: J(() => [
195
+ a.value ? (P(), g(v, {
196
+ key: 0,
197
+ variant: "tertiary",
198
+ "prepend-icon": "close",
199
+ onClick: p[0] || (p[0] = (c) => a.value = "")
200
+ })) : N("", !0)
201
+ ]),
202
+ _: 1
203
+ }, 8, ["modelValue"])
204
+ ], 512),
205
+ I("div", Z, [
206
+ (P(!0), U(Y, null, K(l.value, (c, T) => (P(), g(h, {
207
+ key: T,
208
+ label: c.label,
209
+ sublabel: c.sublabel,
210
+ "model-value": M(V)(o.modelValue, c.value),
211
+ onClick: () => o.handleItemChange(M(V)(o.modelValue, c.value), c),
212
+ onVnodeMounted: (_) => {
213
+ var s, t;
214
+ return M(V)(o.modelValue, c.value) && ((s = _.el) == null || s.scrollIntoView({ behavior: "instant", block: "end" }), (t = _.el) == null || t.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
215
+ }
216
+ }, null, 8, ["label", "sublabel", "model-value", "onClick", "onVnodeMounted"]))), 128)),
217
+ l.value.length ? N("", !0) : (P(), g(h, {
218
+ key: 0,
219
+ disabled: "",
220
+ label: "No options available"
221
+ }))
222
+ ])
223
+ ], 4);
224
+ };
225
+ }
226
+ });
227
+ export {
228
+ ae as _,
229
+ ne as c,
230
+ re as u
231
+ };
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as I, computed as g, ref as z, resolveComponent as h, openBlock as n, createElementBlock as y, createVNode as _, withCtx as L, createElementVNode as f, toDisplayString as Y, unref as u, createBlock as p, createCommentVNode as w, Fragment as $, renderList as R, watch as E, mergeModels as O, useModel as C, renderSlot as H, normalizeClass as S } from "vue";
2
2
  import { useCoreStore as W, useI18n as P } from "@feedmepos/mf-common";
3
- import { u as q } from "./app-CddcvygU.js";
4
- import { d as U } from "./date2-CVZy20Q_.js";
3
+ import { u as q } from "./app-CySQTQxj.js";
4
+ import { d as U } from "./date2-BWoUn1K_.js";
5
5
  import { useBreakpoints as G } from "@feedmepos/ui-library";
6
6
  import { u as J, F as K } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js";
7
- import { D as A } from "./app-DiX-EfV6.js";
7
+ import { b as A } from "./app-uBuHtW8m.js";
8
8
  const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400" }, ee = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, te = { class: "relative" }, oe = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, ne = /* @__PURE__ */ I({
9
9
  __name: "ChangeLocationComponent",
10
10
  props: {
@@ -34,19 +34,19 @@ const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-c
34
34
  a.value = !1, o.selectLocation(o.locations.find((t) => t.dbName === e));
35
35
  }
36
36
  return (e, t) => {
37
- const D = h("FmIcon"), Q = h("FmSearch"), M = h("FmMenuItem"), j = h("FmMenu");
37
+ const M = h("FmIcon"), Q = h("FmSearch"), D = h("FmMenuItem"), j = h("FmMenu");
38
38
  return n(), y("div", X, [
39
39
  _(j, { "close-on-click": !0 }, {
40
40
  "menu-button": L(() => {
41
41
  var r;
42
42
  return [
43
43
  f("div", Z, [
44
- _(D, {
44
+ _(M, {
45
45
  name: e.showBusiness && a.value ? "store" : "storefront",
46
46
  size: "sm"
47
47
  }, null, 8, ["name"]),
48
48
  f("div", ee, Y(e.showBusiness && a.value ? c.value : ((r = u(o)._currentLocation) == null ? void 0 : r.name) ?? u(v)("inventory.common.noLocationSelected")), 1),
49
- _(D, {
49
+ _(M, {
50
50
  name: "expand_more",
51
51
  size: "sm"
52
52
  })
@@ -63,7 +63,7 @@ const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-c
63
63
  }, null, 8, ["model-value", "placeholder"])
64
64
  ]),
65
65
  f("div", null, [
66
- e.showBusiness ? (n(), p(M, {
66
+ e.showBusiness ? (n(), p(D, {
67
67
  key: 0,
68
68
  "model-value": a.value,
69
69
  label: c.value,
@@ -72,7 +72,7 @@ const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-c
72
72
  }, null, 8, ["model-value", "label"])) : w("", !0),
73
73
  (n(!0), y($, null, R(l.value, (r) => {
74
74
  var V;
75
- return n(), p(M, {
75
+ return n(), p(D, {
76
76
  key: r.value,
77
77
  "model-value": !a.value && ((V = u(o)._currentLocation) == null ? void 0 : V.dbName) === r.value,
78
78
  label: r.label,
@@ -86,7 +86,7 @@ const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-c
86
86
  }), 128)),
87
87
  (n(!0), y($, null, R(s.value, (r) => {
88
88
  var V;
89
- return n(), p(M, {
89
+ return n(), p(D, {
90
90
  key: r.value,
91
91
  "model-value": !a.value && ((V = u(o)._currentLocation) == null ? void 0 : V.dbName) === r.value,
92
92
  label: r.label,
@@ -98,7 +98,7 @@ const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-c
98
98
  }
99
99
  }, null, 8, ["model-value", "label", "onClick", "onVnodeMounted"]);
100
100
  }), 128)),
101
- !e.showBusiness && !l.value.length && !s.value.length ? (n(), p(M, {
101
+ !e.showBusiness && !l.value.length && !s.value.length ? (n(), p(D, {
102
102
  key: 1,
103
103
  disabled: "",
104
104
  label: u(v)("inventory.common.noResultFound")
@@ -260,8 +260,8 @@ const le = { class: "inline-flex rounded-md items-center gap-4 justify-center h-
260
260
  class: "w-full"
261
261
  }, null, 8, ["model-value", "placeholder"])) : w("", !0)
262
262
  ]),
263
- (n(!0), y($, null, R(l.actions, (t, D) => (n(), p(e, {
264
- key: D,
263
+ (n(!0), y($, null, R(l.actions, (t, M) => (n(), p(e, {
264
+ key: M,
265
265
  variant: "tertiary",
266
266
  "prepend-icon": t.icon,
267
267
  onClick: t.onClick
@@ -1,7 +1,7 @@
1
1
  import { defineStore as p } from "pinia";
2
2
  import { useDialog as y } from "@feedmepos/ui-library";
3
3
  import { useI18n as v } from "@feedmepos/mf-common";
4
- import { a } from "./FmMultiselectDialog-BviFuAM5.js";
4
+ import { a } from "./FmMultiselectDialog-CDONDKxE.js";
5
5
  import { h as S } from "vue";
6
6
  const w = p("inventoryMultiSelectDialog", () => {
7
7
  const l = y(), { t: n } = v();