@feedmepos/mf-inventory-portal 1.6.1-dev.0 → 1.6.1-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 (107) hide show
  1. package/dist/{App-CL5dPCEj.js → App-tsLr4IOP.js} +5 -5
  2. package/dist/{ApprovalView-DKJibNlK.js → ApprovalView-CQjXRw8C.js} +24 -23
  3. package/dist/{BindingsDialog-DLJXu8Dw.js → BindingsDialog-CxDEdC6C.js} +2 -2
  4. package/dist/{BindingsPicker-CW6Tk9JI.js → BindingsPicker-BkAb19vW.js} +2 -2
  5. package/dist/{BindingsTable-3JJEAQz3.js → BindingsTable-1wVrUeMy.js} +3 -3
  6. package/dist/BulkReceiveRequestView-CcMDC8AO.js +2000 -0
  7. package/dist/{ClosingDraftView-DVoWnPTQ.js → ClosingDraftView-B80djffM.js} +14 -14
  8. package/dist/{ClosingHistoryView-qWjIbBsX.js → ClosingHistoryView-DHvyhey_.js} +247 -247
  9. package/dist/{ClosingTemplateView-C3Hf510z.js → ClosingTemplateView-DqX2g8PI.js} +14 -14
  10. package/dist/{DefaultView-wBhT3ag9.js → DefaultView-oPI1wm7e.js} +2 -2
  11. package/dist/{DeliveryOrderPrintPreview-VnG9wrNu.js → DeliveryOrderPrintPreview-D59Lf8S5.js} +11 -11
  12. package/dist/{ReceiveRequestView-DIPZCXxV.js → EmailDialog.vue_vue_type_script_setup_true_lang-BVhjsBP3.js} +12571 -12873
  13. package/dist/FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CLTI25iw.js +61 -0
  14. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C4pvSYN-.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-RpCYckxf.js} +2 -2
  15. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BqJ3SnfZ.js +237 -0
  16. package/dist/{FmMultiselectDialog-C7P1UET0.js → FmMultiselectDialog-BZlf6oZl.js} +50 -44
  17. package/dist/{FmMultiselectDialog-Dru64kWF.js → FmMultiselectDialog-DMQjKOrJ.js} +1 -1
  18. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BklBxBGT.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DvQvV6jN.js} +5 -5
  19. package/dist/{ImportView-C9w-sF5E.js → ImportView-BWAllFBa.js} +6 -6
  20. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BuphGYe2.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CYLpzpdL.js} +1 -1
  21. package/dist/{IngredientGroupView-BZqXPr_n.js → IngredientGroupView-B_qUY9ik.js} +5 -5
  22. package/dist/{IngredientsView-DgTPgkN9.js → IngredientsView-DHo7Ywtt.js} +15 -15
  23. package/dist/{IntegrationExplorerView-B8U3LTtj.js → IntegrationExplorerView-BiYdzcS3.js} +5 -5
  24. package/dist/{IntegrationView-QyHxizvF.js → IntegrationView-e0R16LLC.js} +13 -13
  25. package/dist/{InventoryBindingForm-NRwFwJt5.js → InventoryBindingForm-C6BZhtqn.js} +1 -1
  26. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-C-If3KBe.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-7FoOHhX8.js} +5 -5
  27. package/dist/{InventoryBindingSummary-DqI3M6jQ.js → InventoryBindingSummary-C5AQnnCs.js} +1 -1
  28. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Xt_1oU-z.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CTWexpNg.js} +1 -1
  29. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DFYTlv_K.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Dzr8FeSh.js} +1 -1
  30. package/dist/{PublishView-2ytn8EUo.js → PublishView-C0ErXWjz.js} +3 -3
  31. package/dist/{PurchaseOrderPrintPreview-Bqim_q38.js → PurchaseOrderPrintPreview-BifBn6Fo.js} +9 -9
  32. package/dist/ReceiveRequestView-5w1OX2de.js +345 -0
  33. package/dist/{RecipeView-Bs326Ew3.js → RecipeView-I_FnrtHB.js} +17 -17
  34. package/dist/{SettingsView-frX_dI_K.js → SettingsView-pHCzYXZr.js} +4 -4
  35. package/dist/{StockView-Us8Wx8y_.js → StockView-BO-LR1WR.js} +28 -27
  36. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Du8BI_cZ.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Dz9VvX-B.js} +1 -1
  37. package/dist/{SupplierView-8dnHAbK3.js → SupplierView-Bn-ul1j8.js} +12 -12
  38. package/dist/{SurchargeView-CfqjYiBs.js → SurchargeView-Da-H4FzH.js} +6 -6
  39. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-_03vSZ4W.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-Do-wa8bS.js} +6 -5
  40. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CAb7UWFP.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DcBA8hzp.js} +1 -1
  41. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-B58A7dWI.js → TransferDetails.vue_vue_type_script_setup_true_lang-F7bFaIip.js} +1440 -1433
  42. package/dist/{TransferTemplateView-CI84cmV5.js → TransferTemplateView-IncI48M6.js} +20 -20
  43. package/dist/{UnitCostHistoryView-DXolsbDT.js → UnitCostHistoryView-0mbMN39f.js} +4 -4
  44. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-Bpoawj7B.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DM0t-SJD.js} +4 -4
  45. package/dist/{UnitView-DT3fcagF.js → UnitView-mq5WIx8v.js} +7 -7
  46. package/dist/WarehouseView-CrD6agyt.js +1079 -0
  47. package/dist/{WastageTemplateView-Bc5CZJ58.js → WastageTemplateView-MrS6QsDh.js} +14 -14
  48. package/dist/api/purchase-order.d.ts +2 -1
  49. package/dist/api/supplier.d.ts +1 -0
  50. package/dist/{app-DpMCzQql.js → app-DV7aQ_cQ.js} +1363 -999
  51. package/dist/app.d.ts +354 -2
  52. package/dist/app.js +1 -1
  53. package/dist/{closing-template-CaFX19g1.js → closing-template-DJ_1EoSh.js} +1 -1
  54. package/dist/components/FmCoordinateInputProps.d.ts +1 -0
  55. package/dist/components/FmMultiselectDialog.vue.d.ts +8 -4
  56. package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
  57. package/dist/components/MultiLocationSelector.vue.d.ts +202 -0
  58. package/dist/components/map/coordinates.d.ts +13 -0
  59. package/dist/{date2-DBsUy1HH.js → date2-M311L05t.js} +1 -1
  60. package/dist/{dayjs.min-BVKjPmJE.js → dayjs.min-9zk0IgeS.js} +12 -12
  61. package/dist/{decimal-DKl2dUd0.js → decimal-iv0YYQk_.js} +2 -2
  62. package/dist/{defineDeepModel-YeHxg9wN.js → defineDeepModel-CgMeJpz5.js} +1 -1
  63. package/dist/{duplicate-template-Dyx4X380.js → duplicate-template-CGWTaWeS.js} +1 -1
  64. package/dist/{feature-ltFu24H8.js → feature-CKH-cZsq.js} +70 -65
  65. package/dist/{format-time-from-id-D3lPFiqA.js → format-time-from-id-DaxR-jQl.js} +1 -1
  66. package/dist/{format-unit-display-CD8C9YZc.js → format-unit-display-C4vI4fRV.js} +12 -12
  67. package/dist/{googlemap-BGi_aKUA.js → googlemap-D9vA7GsS.js} +48 -35
  68. package/dist/{import-export.helper-BJ5Lz4Gg.js → import-export.helper-zsEeF3Qb.js} +6 -6
  69. package/dist/{index-TQKBiFuU.js → index-CBQF1IDr.js} +3 -3
  70. package/dist/{index-JOemzj27.js → index-Cu1y898s.js} +1 -1
  71. package/dist/{index-B8xTUvTH.js → index-DZ-7c-AR.js} +1 -1
  72. package/dist/{inventory-core-dart.default-Xz0fuxVn.js → inventory-core-dart.default-Czt49AGY.js} +1 -1
  73. package/dist/jszip.min-DuMMMB7Y.js +2322 -0
  74. package/dist/{lz-string-DAdPi3YY.js → lz-string-BpMyCNFt.js} +1 -1
  75. package/dist/{netsuite-qr2wHoV5.js → netsuite-BEwbzOju.js} +2 -2
  76. package/dist/{number-xgIylzEb.js → number-H0O0vBDD.js} +3 -3
  77. package/dist/{predefined-templates-j5MqD37J.js → predefined-templates-gzc0FRzN.js} +1 -1
  78. package/dist/{purchase-order-template-CglLUVxv.js → purchase-order-template-BDat5HvG.js} +1 -1
  79. package/dist/{recalculationUtils-O8dnzyPD.js → recalculationUtils-hksr7WVZ.js} +1 -1
  80. package/dist/router/name.d.ts +1 -0
  81. package/dist/{rules-BPu-CBAX.js → rules-BJJYOD6y.js} +2 -2
  82. package/dist/{stock-VM7b7_Km.js → stock-CKMkhKG-.js} +1 -1
  83. package/dist/stores/feature.d.ts +2 -0
  84. package/dist/style.css +1 -1
  85. package/dist/supplier-D8G3A4Fh.js +83 -0
  86. package/dist/{surcharge-CUUDBYUf.js → surcharge-DPwNFa1t.js} +1 -1
  87. package/dist/tsconfig.app.tsbuildinfo +1 -1
  88. package/dist/{uom-rules-D6eW0fAO.js → uom-rules-DoYkZ5ZU.js} +1 -1
  89. package/dist/{use-ingredient-select-dialog-Cd700UkI.js → use-ingredient-select-dialog-D0mBasQT.js} +2 -2
  90. package/dist/{use-inventory-binding-dialog-Cf8wC8AI.js → use-inventory-binding-dialog-C6HEtbBs.js} +2 -2
  91. package/dist/{use-template-enabled-locations-D1AVostH.js → use-template-enabled-locations-CnEcb7h4.js} +2 -2
  92. package/dist/{use-transfer-locations-uOi6cGul.js → use-transfer-locations-BmqLOJob.js} +8 -8
  93. package/dist/{useHrmPermission-DEu2Lyei.js → useHrmPermission-O-zOwblR.js} +1 -1
  94. package/dist/{useNavigationMenu-DuIGSnMd.js → useNavigationMenu-B-LGFL0q.js} +43 -38
  95. package/dist/{useSseClient-D1uc8ZIc.js → useSseClient-BDjXWGbT.js} +3 -3
  96. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +2 -0
  97. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +194 -0
  98. package/dist/views/receive-request-bulk/BulkReceiveRequestView.vue.d.ts +3 -0
  99. package/dist/views/receive-request-bulk/components/CreateTransferWizard.vue.d.ts +25 -0
  100. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +4138 -0
  101. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +771 -0
  102. package/dist/{vue-i18n-DElpxFA8.js → vue-i18n-BfVinz9g.js} +99 -99
  103. package/dist/{xlsx.util-Cm8s0ZJD.js → xlsx.util-BkECcQ9d.js} +3 -3
  104. package/package.json +5 -4
  105. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Bkh9LvJQ.js +0 -293
  106. package/dist/WarehouseView-C1BHChSJ.js +0 -1077
  107. package/dist/supplier-W00UQBDk.js +0 -78
@@ -1,5 +1,5 @@
1
1
  import { computed as o } from "vue";
2
- import { u } from "./netsuite-qr2wHoV5.js";
2
+ import { u } from "./netsuite-BEwbzOju.js";
3
3
  function i(e) {
4
4
  const t = (n) => !!n && n.toLocaleLowerCase().includes("inactive");
5
5
  return t(e.name) || t(e.abbrev);
@@ -1,6 +1,6 @@
1
1
  import { defineStore as S } from "pinia";
2
- import { a as b } from "./app-DpMCzQql.js";
3
- import { a as A } from "./FmMultiselectDialog-C7P1UET0.js";
2
+ import { a as b } from "./app-DV7aQ_cQ.js";
3
+ import { a as A } from "./FmMultiselectDialog-BZlf6oZl.js";
4
4
  import { useDialog as I } from "@feedmepos/ui-library";
5
5
  import { useI18n as D } from "@feedmepos/mf-common";
6
6
  const w = S(
@@ -1,5 +1,5 @@
1
- import { a as g } from "./FmMultiselectDialog-C7P1UET0.js";
2
- import { a as P } from "./app-DpMCzQql.js";
1
+ import { a as g } from "./FmMultiselectDialog-BZlf6oZl.js";
2
+ import { a as P } from "./app-DV7aQ_cQ.js";
3
3
  import { useDialog as E } from "@feedmepos/ui-library";
4
4
  function A() {
5
5
  const u = P(), _ = E();
@@ -1,5 +1,5 @@
1
- import { a as A } from "./FmMultiselectDialog-C7P1UET0.js";
2
- import { u as S } from "./app-DpMCzQql.js";
1
+ import { a as A } from "./FmMultiselectDialog-BZlf6oZl.js";
2
+ import { u as S } from "./app-DV7aQ_cQ.js";
3
3
  import { useI18n as w, useCoreStore as i, useCustomAttributes as _ } from "@feedmepos/mf-common";
4
4
  import { useDialog as C, components as p } from "@feedmepos/ui-library";
5
5
  import { computed as r, h as c } from "vue";
@@ -1,5 +1,5 @@
1
- import { u as g, r as l, T as w, X as R } from "./app-DpMCzQql.js";
2
- import { u as E } from "./supplier-W00UQBDk.js";
1
+ import { u as g, r as l, W as w, Z as R } from "./app-DV7aQ_cQ.js";
2
+ import { u as E } from "./supplier-D8G3A4Fh.js";
3
3
  import { computed as u } from "vue";
4
4
  function d(n) {
5
5
  const c = R.safeParse(n);
@@ -31,7 +31,7 @@ function F(n, c, y = !1, f = !1) {
31
31
  var a;
32
32
  await p.readSuppliers();
33
33
  const s = n();
34
- if ((a = s.supplier) != null && a._id) return;
34
+ if ((a = s.supplier) != null && a._id || s.template) return;
35
35
  const e = f ? p.suppliers[0] : p.businessSuppliers[0], r = (y ? t.locations.filter((i) => i.doc._id !== t.currentLocation.doc._id) : t.locations)[0];
36
36
  c({
37
37
  ...s,
@@ -65,8 +65,8 @@ function F(n, c, y = !1, f = !1) {
65
65
  supplier: a ? _(a) : e.supplier
66
66
  });
67
67
  }
68
- }), T = u(() => p.locationSuppliers.map(d)), v = u(() => p.businessSuppliers.map(d)), S = u(() => {
69
- const s = [...T.value], e = [...v.value];
68
+ }), v = u(() => p.locationSuppliers.map(d)), T = u(() => p.businessSuppliers.map(d)), S = u(() => {
69
+ const s = [...v.value], e = [...T.value];
70
70
  return f ? [...e, ...s] : e;
71
71
  }), b = u(() => {
72
72
  var o;
@@ -76,10 +76,10 @@ function F(n, c, y = !1, f = !1) {
76
76
  ) : t.allLocations).filter((r) => s || r.acceptRequest).map(_);
77
77
  }), O = u(() => {
78
78
  if (L.value === l.enum.purchase) {
79
- const e = T.value.map((r) => ({
79
+ const e = v.value.map((r) => ({
80
80
  label: r.name,
81
81
  value: r._id
82
- })), o = v.value.map((r) => ({
82
+ })), o = T.value.map((r) => ({
83
83
  label: r.name,
84
84
  sublabel: "Business supplier",
85
85
  value: r._id
@@ -105,7 +105,7 @@ function F(n, c, y = !1, f = !1) {
105
105
  transferLocationModel: h,
106
106
  transferLocationOptions: O,
107
107
  locationOptionsTypePurchase: S,
108
- locationOptionsTypePurchaseLocationLevel: T,
108
+ locationOptionsTypePurchaseLocationLevel: v,
109
109
  locationOptionsTypeTransfer: b,
110
110
  selectedLocation: P
111
111
  };
@@ -1,5 +1,5 @@
1
1
  import { computed as p, toValue as o } from "vue";
2
- import { a3 as n } from "./app-DpMCzQql.js";
2
+ import { a4 as n } from "./app-DV7aQ_cQ.js";
3
3
  import { useCoreStore as c } from "@feedmepos/mf-common";
4
4
  function g(t, i = "all") {
5
5
  const m = c();
@@ -1,29 +1,29 @@
1
1
  import { computed as T } from "vue";
2
- import { a4 as P, R as e, b, a5 as A, a3 as O } from "./app-DpMCzQql.js";
3
- import { useCoreStore as C, useI18n as L } from "@feedmepos/mf-common";
4
- import { u as _ } from "./feature-ltFu24H8.js";
5
- const G = P.reduce(
6
- (o, i) => {
7
- var s;
8
- return i.name && (o[i.name] = (s = i.meta) == null ? void 0 : s.validationManifest), o;
2
+ import { a5 as b, R as e, b as P, a6 as A, a4 as O } from "./app-DV7aQ_cQ.js";
3
+ import { useCoreStore as _, useI18n as C } from "@feedmepos/mf-common";
4
+ import { u as L } from "./feature-CKH-cZsq.js";
5
+ const U = b.reduce(
6
+ (s, E) => {
7
+ var i;
8
+ return E.name && (s[E.name] = (i = E.meta) == null ? void 0 : i.validationManifest), s;
9
9
  },
10
10
  {}
11
11
  );
12
12
  function p() {
13
- const o = C(), i = _(), { t: s } = L(), { isDev: c } = b(), l = (r) => A(r, s), N = T(
13
+ const s = _(), E = L(), { t: i } = C(), { isDev: c } = P(), l = (t) => A(t, i), N = T(
14
14
  () => {
15
- var r;
16
- return ((r = o.sessionUser.value) == null ? void 0 : r.permissions) ?? [];
15
+ var t;
16
+ return ((t = s.sessionUser.value) == null ? void 0 : t.permissions) ?? [];
17
17
  }
18
- ), h = (r = []) => r.length === 0 ? !0 : O(r, N.value).granted, a = (r) => {
19
- const n = G[r];
18
+ ), h = (t = []) => t.length === 0 ? !0 : O(t, N.value).granted, a = (t) => {
19
+ const n = U[t];
20
20
  return h(n == null ? void 0 : n.requiredCaslPermissions);
21
- }, R = (r) => r.filter((n) => !n.hide).map((n) => n.children ? { ...n, children: R(n.children) } : n).filter((n) => !n.children || n.children.length > 0), I = (r) => r.map((n) => {
22
- const { hide: E, children: t, ...u } = n, S = { ...u };
23
- return t && (S.children = I(t)), S;
21
+ }, R = (t) => t.filter((n) => !n.hide).map((n) => n.children ? { ...n, children: R(n.children) } : n).filter((n) => !n.children || n.children.length > 0), I = (t) => t.map((n) => {
22
+ const { hide: o, children: r, ...u } = n, S = { ...u };
23
+ return r && (S.children = I(r)), S;
24
24
  }), d = T(() => {
25
- var E;
26
- const r = [
25
+ var o;
26
+ const t = [
27
27
  {
28
28
  label: "Non-Production Environment",
29
29
  icon: "logo_dev",
@@ -34,24 +34,24 @@ function p() {
34
34
  label: l(e.STOCK),
35
35
  children: [
36
36
  {
37
- label: s("inventory.stock.stock_balance.title"),
37
+ label: i("inventory.stock.stock_balance.title"),
38
38
  value: e.STOCK,
39
39
  hide: !a(e.STOCK)
40
40
  },
41
41
  {
42
42
  label: l(e.UNIT_COST_HISTORY),
43
43
  value: e.UNIT_COST_HISTORY,
44
- hide: !a(e.UNIT_COST_HISTORY) || !i.enableTotalCost
44
+ hide: !a(e.UNIT_COST_HISTORY) || !E.enableTotalCost
45
45
  },
46
46
  {
47
47
  label: l(e.WASTAGE_TEMPLATE),
48
48
  value: e.WASTAGE_TEMPLATE,
49
- hide: !a(e.WASTAGE_TEMPLATE) || !i.enableWastageTemplate
49
+ hide: !a(e.WASTAGE_TEMPLATE) || !E.enableWastageTemplate
50
50
  }
51
51
  ]
52
52
  },
53
53
  {
54
- label: s("inventory.closing.title"),
54
+ label: i("inventory.closing.title"),
55
55
  children: [
56
56
  {
57
57
  label: l(e.CLOSING_HISTORY),
@@ -61,12 +61,12 @@ function p() {
61
61
  {
62
62
  label: l(e.CLOSING_TEMPLATE),
63
63
  value: e.CLOSING_TEMPLATE,
64
- hide: !a(e.CLOSING_TEMPLATE) || !i.enableClosingTemplate
64
+ hide: !a(e.CLOSING_TEMPLATE) || !E.enableClosingTemplate
65
65
  },
66
66
  {
67
67
  label: l(e.CLOSING_DRAFT),
68
68
  value: e.CLOSING_DRAFT,
69
- hide: !a(e.CLOSING_DRAFT) || !i.enableClosingTemplate
69
+ hide: !a(e.CLOSING_DRAFT) || !E.enableClosingTemplate
70
70
  }
71
71
  ]
72
72
  },
@@ -78,7 +78,7 @@ function p() {
78
78
  {
79
79
  label: l(e.INGREDIENT_GROUP),
80
80
  value: e.INGREDIENT_GROUP,
81
- hide: !a(e.INGREDIENT_GROUP) || !i.enableIngredientGroup
81
+ hide: !a(e.INGREDIENT_GROUP) || !E.enableIngredientGroup
82
82
  },
83
83
  {
84
84
  label: l(e.RECIPE),
@@ -91,13 +91,18 @@ function p() {
91
91
  hide: !a(e.UNIT)
92
92
  },
93
93
  {
94
- label: s("inventory.transfer.title"),
94
+ label: i("inventory.transfer.title"),
95
95
  children: [
96
96
  {
97
97
  label: l(e.RECEIVE_REQUEST),
98
98
  value: e.RECEIVE_REQUEST,
99
99
  hide: !a(e.RECEIVE_REQUEST)
100
100
  },
101
+ {
102
+ label: l(e.RECEIVE_REQUEST_BULK),
103
+ value: e.RECEIVE_REQUEST_BULK,
104
+ hide: !a(e.RECEIVE_REQUEST_BULK) || !E.enableReceiveRequestBeta
105
+ },
101
106
  {
102
107
  label: l(e.APPROVAL),
103
108
  value: e.APPROVAL,
@@ -106,12 +111,12 @@ function p() {
106
111
  {
107
112
  label: l(e.SURCHARGE),
108
113
  value: e.SURCHARGE,
109
- hide: !a(e.SURCHARGE) || !i.enableSurcharge
114
+ hide: !a(e.SURCHARGE) || !E.enableSurcharge
110
115
  },
111
116
  {
112
117
  label: l(e.TRANSFER_TEMPLATE),
113
118
  value: e.TRANSFER_TEMPLATE,
114
- hide: !a(e.TRANSFER_TEMPLATE) || !i.enablePoTemplate
119
+ hide: !a(e.TRANSFER_TEMPLATE) || !E.enablePoTemplate
115
120
  }
116
121
  ]
117
122
  },
@@ -133,27 +138,27 @@ function p() {
133
138
  {
134
139
  label: l(e.IMPORT),
135
140
  value: e.IMPORT,
136
- hide: !a(e.IMPORT) || !i.enableBulkImport
141
+ hide: !a(e.IMPORT) || !E.enableBulkImport
137
142
  },
138
143
  {
139
144
  label: l(e.INTEGRATION),
140
145
  value: e.INTEGRATION,
141
146
  hide: !a(e.INTEGRATION)
142
147
  }
143
- ], n = I(R(r));
144
- return ((E = o.currentBusiness.value) == null ? void 0 : E.menuVersion) === "v3" ? n.filter(
145
- (t) => t.value !== e.INGREDIENTS && t.value !== e.RECIPE && t.value !== e.UNIT && t.value !== e.PUBLISH
148
+ ], n = I(R(t));
149
+ return ((o = s.currentBusiness.value) == null ? void 0 : o.menuVersion) === "v3" ? n.filter(
150
+ (r) => r.value !== e.INGREDIENTS && r.value !== e.RECIPE && r.value !== e.UNIT && r.value !== e.PUBLISH
146
151
  ) : n;
147
152
  }), v = T(() => {
148
- function r(E) {
149
- for (const t of E)
150
- if (t.children && t.children.length > 0) {
151
- const u = r(t.children);
153
+ function t(o) {
154
+ for (const r of o)
155
+ if (r.children && r.children.length > 0) {
156
+ const u = t(r.children);
152
157
  if (u) return u;
153
- } else if (t.value)
154
- return t.value;
158
+ } else if (r.value)
159
+ return r.value;
155
160
  }
156
- return r(d.value) ?? null;
161
+ return t(d.value) ?? null;
157
162
  });
158
163
  return { menuItems: d, firstAccessibleRouteName: v };
159
164
  }
@@ -1,7 +1,7 @@
1
- import { u as re } from "./stock-VM7b7_Km.js";
2
- import { a as K, P as oe, m as ae } from "./app-DpMCzQql.js";
1
+ import { u as re } from "./stock-CKMkhKG-.js";
2
+ import { a as K, P as oe, m as ae } from "./app-DV7aQ_cQ.js";
3
3
  import { ref as ie, computed as ce } from "vue";
4
- import { c as le } from "./number-xgIylzEb.js";
4
+ import { c as le } from "./number-H0O0vBDD.js";
5
5
  import { useCoreStore as he } from "@feedmepos/mf-common";
6
6
  function ue() {
7
7
  return {
@@ -7,10 +7,12 @@ export interface TransferFormProps {
7
7
  lastClosingDate?: Date | null;
8
8
  skuBalanceMap?: Map<string, FdoSkuBalance>;
9
9
  isBalanceLoading?: boolean;
10
+ lockedSupplier?: FdoPurchaseOrderSupplier;
10
11
  }
11
12
  export interface TransferFormEvents {
12
13
  (event: 'validation-success'): void;
13
14
  (event: 'form:ready'): void;
15
+ (event: 'form:data-change', items: FdoPurchaseOrderItem[]): void;
14
16
  }
15
17
  export interface TransferFormExpose {
16
18
  validateInputs: () => void;
@@ -645,9 +645,203 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
645
645
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
646
646
  "validation-success": () => void;
647
647
  "form:ready": () => void;
648
+ "form:data-change": (items: {
649
+ measurement?: {
650
+ name: string;
651
+ id: string;
652
+ abbrev: string;
653
+ conversion: {
654
+ amount: number;
655
+ precision: number;
656
+ };
657
+ } | null | undefined;
658
+ id?: string | null | undefined;
659
+ externalId?: string | null | undefined;
660
+ totalCost?: {
661
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
662
+ amount: number;
663
+ precision: number;
664
+ } | null | undefined;
665
+ isCustomCost?: boolean | null | undefined;
666
+ sku: {
667
+ trackingMeasurement?: string | null | undefined;
668
+ isInactive?: boolean | null | undefined;
669
+ convert?: {
670
+ measurement?: string | null | undefined;
671
+ inventoryBindings?: {
672
+ measurement?: {
673
+ name: string;
674
+ id: string;
675
+ abbrev: string;
676
+ conversion: {
677
+ amount: number;
678
+ precision: number;
679
+ };
680
+ } | null | undefined;
681
+ rules?: Record<string, any> | null | undefined;
682
+ alternatives?: {
683
+ default?: boolean | null | undefined;
684
+ trackingMeasurement?: string | null | undefined;
685
+ priority?: number | null | undefined;
686
+ _id: string;
687
+ }[] | null | undefined;
688
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
689
+ amount: {
690
+ amount: number;
691
+ precision: number;
692
+ };
693
+ id: string;
694
+ }[] | null | undefined;
695
+ } | null | undefined;
696
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
697
+ defaultCost?: {
698
+ measurement?: {
699
+ name: string;
700
+ id: string;
701
+ abbrev: string;
702
+ conversion: {
703
+ amount: number;
704
+ precision: number;
705
+ };
706
+ } | null | undefined;
707
+ costPerUnit: {
708
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
709
+ amount: number;
710
+ precision: number;
711
+ };
712
+ } | null | undefined;
713
+ operationalGroup?: string | null | undefined;
714
+ thresholds?: {
715
+ low: number;
716
+ mid: number;
717
+ } | null | undefined;
718
+ customAttributes?: Record<string, any> | null | undefined;
719
+ unit: {
720
+ _id: string;
721
+ name: string;
722
+ abbrev: string;
723
+ precision: number;
724
+ measurements: {
725
+ name: string;
726
+ id: string;
727
+ abbrev: string;
728
+ conversion: {
729
+ amount: number;
730
+ precision: number;
731
+ };
732
+ }[];
733
+ };
734
+ code: string;
735
+ _id: string;
736
+ name: string;
737
+ };
738
+ code: string;
739
+ name: string;
740
+ quantity: {
741
+ amount: number;
742
+ precision: number;
743
+ };
744
+ }[]) => void;
648
745
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TransferFormProps>>> & Readonly<{
649
746
  "onValidation-success"?: (() => any) | undefined;
650
747
  "onForm:ready"?: (() => any) | undefined;
748
+ "onForm:data-change"?: ((items: {
749
+ measurement?: {
750
+ name: string;
751
+ id: string;
752
+ abbrev: string;
753
+ conversion: {
754
+ amount: number;
755
+ precision: number;
756
+ };
757
+ } | null | undefined;
758
+ id?: string | null | undefined;
759
+ externalId?: string | null | undefined;
760
+ totalCost?: {
761
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
762
+ amount: number;
763
+ precision: number;
764
+ } | null | undefined;
765
+ isCustomCost?: boolean | null | undefined;
766
+ sku: {
767
+ trackingMeasurement?: string | null | undefined;
768
+ isInactive?: boolean | null | undefined;
769
+ convert?: {
770
+ measurement?: string | null | undefined;
771
+ inventoryBindings?: {
772
+ measurement?: {
773
+ name: string;
774
+ id: string;
775
+ abbrev: string;
776
+ conversion: {
777
+ amount: number;
778
+ precision: number;
779
+ };
780
+ } | null | undefined;
781
+ rules?: Record<string, any> | null | undefined;
782
+ alternatives?: {
783
+ default?: boolean | null | undefined;
784
+ trackingMeasurement?: string | null | undefined;
785
+ priority?: number | null | undefined;
786
+ _id: string;
787
+ }[] | null | undefined;
788
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
789
+ amount: {
790
+ amount: number;
791
+ precision: number;
792
+ };
793
+ id: string;
794
+ }[] | null | undefined;
795
+ } | null | undefined;
796
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
797
+ defaultCost?: {
798
+ measurement?: {
799
+ name: string;
800
+ id: string;
801
+ abbrev: string;
802
+ conversion: {
803
+ amount: number;
804
+ precision: number;
805
+ };
806
+ } | null | undefined;
807
+ costPerUnit: {
808
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
809
+ amount: number;
810
+ precision: number;
811
+ };
812
+ } | null | undefined;
813
+ operationalGroup?: string | null | undefined;
814
+ thresholds?: {
815
+ low: number;
816
+ mid: number;
817
+ } | null | undefined;
818
+ customAttributes?: Record<string, any> | null | undefined;
819
+ unit: {
820
+ _id: string;
821
+ name: string;
822
+ abbrev: string;
823
+ precision: number;
824
+ measurements: {
825
+ name: string;
826
+ id: string;
827
+ abbrev: string;
828
+ conversion: {
829
+ amount: number;
830
+ precision: number;
831
+ };
832
+ }[];
833
+ };
834
+ code: string;
835
+ _id: string;
836
+ name: string;
837
+ };
838
+ code: string;
839
+ name: string;
840
+ quantity: {
841
+ amount: number;
842
+ precision: number;
843
+ };
844
+ }[]) => any) | undefined;
651
845
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
652
846
  export default _default;
653
847
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -0,0 +1,3 @@
1
+ import '@/extensions/array';
2
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3
+ export default _default;
@@ -0,0 +1,25 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ show: boolean;
3
+ lastClosingDate?: Date | null | undefined;
4
+ selectedOutletIds?: string[] | undefined;
5
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ "update:show": (value: boolean) => void;
7
+ submitted: () => void;
8
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
+ show: boolean;
10
+ lastClosingDate?: Date | null | undefined;
11
+ selectedOutletIds?: string[] | undefined;
12
+ }>>> & Readonly<{
13
+ "onUpdate:show"?: ((value: boolean) => any) | undefined;
14
+ onSubmitted?: (() => any) | undefined;
15
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
16
+ export default _default;
17
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
+ type __VLS_TypePropsToRuntimeProps<T> = {
19
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
20
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
+ } : {
22
+ type: import('vue').PropType<T[K]>;
23
+ required: true;
24
+ };
25
+ };