@feedmepos/mf-inventory-portal 1.7.1-dev.0 → 1.7.1

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 (128) hide show
  1. package/dist/{App-B_ja37tB.js → App-B0lFktSW.js} +5 -5
  2. package/dist/ApprovalView-Ka7ehCQd.js +242 -0
  3. package/dist/{BindingsDialog-0IRWCLTc.js → BindingsDialog-B_YgAtlu.js} +2 -2
  4. package/dist/{BindingsPicker-DCISa6Fx.js → BindingsPicker-CtCjgzt7.js} +2 -2
  5. package/dist/{BindingsTable-B3CmHp97.js → BindingsTable-BNPP0R_A.js} +3 -3
  6. package/dist/BulkReceiveRequestView-B0bj9Syr.js +2011 -0
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-D4Nd89xp.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CiGVQ_6T.js} +1 -1
  8. package/dist/{ClosingDraftView-DDWU93p0.js → ClosingDraftView-QJKj8C9l.js} +21 -21
  9. package/dist/{ClosingHistoryView-KdmhszIO.js → ClosingHistoryView-BS3DFkAz.js} +7 -7
  10. package/dist/{ClosingTemplateView-CQRujMB9.js → ClosingTemplateView-B8njPb4E.js} +17 -17
  11. package/dist/{DefaultView-QAEDG6pS.js → DefaultView-BLv5wqcv.js} +2 -2
  12. package/dist/{DeliveryOrderPrintPreview-B08SSOCX.js → DeliveryOrderPrintPreview-CnuwXphl.js} +2 -2
  13. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-DdzV_fzq.js → EmailDialog.vue_vue_type_script_setup_true_lang-9lUR6kHg.js} +10225 -10398
  14. package/dist/{FmAdminBadge-DH_2w13D.js → FmAdminBadge-DlplQOHb.js} +8 -8
  15. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CmH3uhTZ.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-fC_rbTfa.js} +1 -1
  16. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DvX5xI9b.js +76 -0
  17. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Df-yCfRe.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-hFKGb0Aa.js} +4 -4
  18. package/dist/{FmMultiselectDialog-DpPyNOpJ.js → FmMultiselectDialog-D231CKWQ.js} +1 -1
  19. package/dist/{FmMultiselectDialog-QEs0yct_.js → FmMultiselectDialog-QrLJQhIf.js} +2 -2
  20. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-D8-IQUtA.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C6RH3VSF.js} +119 -121
  21. package/dist/{ImportView-8qlgZSTO.js → ImportView-DwLmW0jr.js} +8 -8
  22. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CGWRbAF2.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-LrPxsgOW.js} +1 -1
  23. package/dist/{IngredientGroupView-BI9SlKfz.js → IngredientGroupView-D4SUVGTu.js} +6 -6
  24. package/dist/{IngredientsView-1naUkKAi.js → IngredientsView-CUUYlGfs.js} +17 -17
  25. package/dist/{IntegrationExplorerView-C6kyLz3y.js → IntegrationExplorerView-C2xZMSEm.js} +5 -5
  26. package/dist/{IntegrationView-DrmxLdlk.js → IntegrationView-4J5SmJPp.js} +15 -15
  27. package/dist/{InventoryBindingForm-CPNAgZkD.js → InventoryBindingForm-B7YadUXu.js} +1 -1
  28. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-sz_VtHRr.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-B3lKJcut.js} +5 -5
  29. package/dist/{InventoryBindingSummary-Cu98L10w.js → InventoryBindingSummary-Cw8ppkq9.js} +1 -1
  30. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-g2PDNQx-.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CvXdUIPp.js} +1 -1
  31. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BZEa61go.js → PremiumBadge.vue_vue_type_script_setup_true_lang-C7Gol-ne.js} +1 -1
  32. package/dist/{ProductionView-D8dxypqA.js → ProductionView-D7_RHbkz.js} +8 -8
  33. package/dist/{PublishView-C82UwIoz.js → PublishView-CXalRknq.js} +4 -4
  34. package/dist/{PurchaseOrderPrintPreview-CP40tEma.js → PurchaseOrderPrintPreview-CRrYe6dD.js} +2 -2
  35. package/dist/ReceiveRequestView-CR2_mNj2.js +345 -0
  36. package/dist/{RecipeView-DB1DJQp7.js → RecipeView-Yzx4gY33.js} +18 -18
  37. package/dist/{SettingsView-DsS62lxW.js → SettingsView-Dfih5z0X.js} +6 -6
  38. package/dist/{SingleColumnLayout.vue_vue_type_script_setup_true_lang-DWsPvPE1.js → SingleColumnLayout.vue_vue_type_script_setup_true_lang-DwrLsWX_.js} +1 -1
  39. package/dist/{StockView-gcf7RCZz.js → StockView-B-OIr9-B.js} +23 -23
  40. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-nXqFCKic.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B2vo0BFA.js} +1 -1
  41. package/dist/{SupplierView-BIANlKLE.js → SupplierView-CKCPRXZV.js} +13 -13
  42. package/dist/{SurchargeView-kRzaixM5.js → SurchargeView-Da7YbT5A.js} +7 -7
  43. package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-Btecdwc5.js +178 -0
  44. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BceIOuBq.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DgDzjf87.js} +2 -2
  45. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DuKUOvt4.js +4682 -0
  46. package/dist/{TransferTemplateView-Bq68Vh7t.js → TransferTemplateView-C3Nx1W5t.js} +21 -21
  47. package/dist/{UnitCostHistoryView-d0oLssyZ.js → UnitCostHistoryView-DYHBMjfW.js} +6 -6
  48. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CLOotG6K.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-BmLZ-7TM.js} +4 -4
  49. package/dist/{UnitView-BHfm2IE4.js → UnitView-Ccwmj-B0.js} +8 -8
  50. package/dist/{WarehouseView-CorSYwm6.js → WarehouseView-DiXvpGkL.js} +6 -6
  51. package/dist/{WastageTemplateView-CtYZwiRW.js → WastageTemplateView-CAbu77vo.js} +15 -15
  52. package/dist/api/purchase-order.d.ts +1 -35
  53. package/dist/{app-37NZKFUI.js → app-BWvf7Pbw.js} +5192 -5557
  54. package/dist/app.d.ts +0 -88
  55. package/dist/app.js +1 -1
  56. package/dist/{closing-template-C0dl45x2.js → closing-template-hsPMmSJP.js} +1 -1
  57. package/dist/components/FmFilterableMenuOptions.vue.d.ts +2 -11
  58. package/dist/{date2-r4KgBCs9.js → date2-BJfdfeJO.js} +1 -1
  59. package/dist/{dayjs.min-BKUldDi9.js → dayjs.min-DadksG29.js} +1 -1
  60. package/dist/{decimal-Cgmw6HIY.js → decimal-C9idbIOo.js} +2 -2
  61. package/dist/{defineDeepModel-DXLwZWst.js → defineDeepModel-CH4cTogB.js} +1 -1
  62. package/dist/{duplicate-template-DDA4QWPl.js → duplicate-template-BMd6tF6Y.js} +1 -1
  63. package/dist/feature-Bt9vQSu_.js +1136 -0
  64. package/dist/{format-time-from-id-Dhjn5QgH.js → format-time-from-id-B6Oxxcmv.js} +1 -1
  65. package/dist/{format-unit-display-g95-VuYJ.js → format-unit-display-B32MF8YP.js} +12 -12
  66. package/dist/{import-export.helper-DsZFPPqj.js → import-export.helper-BWex8GSP.js} +6 -6
  67. package/dist/{index-C207KsUh.js → index-BgS2MztF.js} +3 -3
  68. package/dist/{index-D3Bmmx66.js → index-BrmQVR18.js} +1 -1
  69. package/dist/{index-B9WjF3Ox.js → index-G8zX1OUg.js} +1 -1
  70. package/dist/{inventory-core-dart.default-NpD15h63.js → inventory-core-dart.default-DMYZxr7z.js} +5550 -7099
  71. package/dist/{jszip.min-B52cHzHI.js → jszip.min-BiUtLGgB.js} +129 -129
  72. package/dist/{lz-string-CItFpr5-.js → lz-string-CVwhv8uD.js} +1 -1
  73. package/dist/{netsuite-R_NkLn5t.js → netsuite-jqgyyem9.js} +2 -2
  74. package/dist/{number-BkC_lelq.js → number-4scgLaMY.js} +3 -3
  75. package/dist/{predefined-templates-CVT54o4V.js → predefined-templates-CK5XSRe_.js} +1 -1
  76. package/dist/{purchase-order-template-DvqAncB2.js → purchase-order-template-D4JHGs3l.js} +1 -1
  77. package/dist/{recalculationUtils-Cak1mo4o.js → recalculationUtils-B9BLpNFc.js} +1 -1
  78. package/dist/router/name.d.ts +0 -1
  79. package/dist/{rules--cnFg-PI.js → rules-CEKN0fON.js} +2 -2
  80. package/dist/{stock-DvquSog3.js → stock-BSIJKbLk.js} +3 -3
  81. package/dist/{stock-BLYAJxMj.js → stock-DEDIyrA9.js} +1 -1
  82. package/dist/stores/feature.d.ts +0 -2
  83. package/dist/style.css +1 -1
  84. package/dist/{supplier-C5X8p_vd.js → supplier-CnEm0FdT.js} +2 -2
  85. package/dist/{surcharge-CLkpleoW.js → surcharge-BTe4mWtB.js} +1 -1
  86. package/dist/tsconfig.app.tsbuildinfo +1 -1
  87. package/dist/{uom-rules-CykFo_pB.js → uom-rules-C1nV-lQn.js} +1 -1
  88. package/dist/{use-ingredient-select-dialog-DlxWMkAI.js → use-ingredient-select-dialog-COiU0eIQ.js} +2 -2
  89. package/dist/{use-inventory-binding-dialog-DnWDyziu.js → use-inventory-binding-dialog-Dhpo1L4-.js} +2 -2
  90. package/dist/{use-template-enabled-locations-SRgcWLO4.js → use-template-enabled-locations-BZN5nUrH.js} +2 -2
  91. package/dist/{use-transfer-locations-D4f4Ib1r.js → use-transfer-locations-DDtX2nBf.js} +2 -2
  92. package/dist/{useHrmPermission-lAc6ZHVZ.js → useHrmPermission-EZ3pfyTj.js} +1 -1
  93. package/dist/{useNavigationMenu-CeN7TEwe.js → useNavigationMenu-CIGwi2pS.js} +49 -59
  94. package/dist/{useSseClient-C6ndlLpA.js → useSseClient-Ccmg1XUC.js} +1 -1
  95. package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +0 -1
  96. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +0 -1
  97. package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +2 -102
  98. package/dist/views/receive-request/composables/fn.d.ts +1 -2
  99. package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +3 -119
  100. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +14 -643
  101. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +15 -721
  102. package/dist/views/receive-request/helper/resolve-po-item-cost.d.ts +12 -0
  103. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +10 -524
  104. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +2 -102
  105. package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +0 -4
  106. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +0 -8
  107. package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +0 -12
  108. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +0 -24
  109. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +0 -24
  110. package/dist/{vue-i18n-DDqVG60p.js → vue-i18n-XR3XXGIN.js} +405 -405
  111. package/dist/{xlsx.util-BzQcPwvM.js → xlsx.util-Cit0fL6n.js} +2 -2
  112. package/package.json +5 -5
  113. package/dist/ApprovalView-_wG6KeZl.js +0 -249
  114. package/dist/BulkReceiveRequestView-Dmqm65c9.js +0 -2025
  115. package/dist/ConnectedBusinessView-Cu2QnRN9.js +0 -533
  116. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Dzqh8pM9.js +0 -84
  117. package/dist/ReceiveRequestView-DDo0Pb0J.js +0 -514
  118. package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-QMUVuthC.js +0 -211
  119. package/dist/TransferDetailsV3.vue_vue_type_script_setup_true_lang-DYAzxoHE.js +0 -5991
  120. package/dist/api/connected-business-mapping.d.ts +0 -25
  121. package/dist/connected-business-mapping-ywgqqyMr.js +0 -37
  122. package/dist/feature-B4BoCy_k.js +0 -1548
  123. package/dist/views/connected-business/ConnectedBusinessMappingPanel.vue.d.ts +0 -25
  124. package/dist/views/connected-business/ConnectedBusinessView.vue.d.ts +0 -2
  125. package/dist/views/receive-request/components/CreateTransferChoice.vue.d.ts +0 -27
  126. package/dist/views/receive-request/components/transfer-details/TransferDetailsV3.vue.d.ts +0 -18
  127. package/dist/views/receive-request/helper/po-version.d.ts +0 -6
  128. /package/dist/views/receive-request/{composables/fn.spec.d.ts → helper/resolve-po-item-cost.spec.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { computed as o } from "vue";
2
- import { u } from "./netsuite-R_NkLn5t.js";
2
+ import { u } from "./netsuite-jqgyyem9.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-37NZKFUI.js";
3
- import { a as A } from "./FmMultiselectDialog-QEs0yct_.js";
2
+ import { a as b } from "./app-BWvf7Pbw.js";
3
+ import { a as A } from "./FmMultiselectDialog-QrLJQhIf.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-QEs0yct_.js";
2
- import { a as P } from "./app-37NZKFUI.js";
1
+ import { a as g } from "./FmMultiselectDialog-QrLJQhIf.js";
2
+ import { a as P } from "./app-BWvf7Pbw.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-QEs0yct_.js";
2
- import { u as S } from "./app-37NZKFUI.js";
1
+ import { a as A } from "./FmMultiselectDialog-QrLJQhIf.js";
2
+ import { u as S } from "./app-BWvf7Pbw.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, W as w, Z as R } from "./app-37NZKFUI.js";
2
- import { u as E } from "./supplier-C5X8p_vd.js";
1
+ import { u as g, r as l, W as w, Z as R } from "./app-BWvf7Pbw.js";
2
+ import { u as E } from "./supplier-CnEm0FdT.js";
3
3
  import { computed as u } from "vue";
4
4
  function d(n) {
5
5
  const c = R.safeParse(n);
@@ -1,5 +1,5 @@
1
1
  import { computed as p, toValue as o } from "vue";
2
- import { a7 as n } from "./app-37NZKFUI.js";
2
+ import { a4 as n } from "./app-BWvf7Pbw.js";
3
3
  import { useCoreStore as c } from "@feedmepos/mf-common";
4
4
  function g(t, i = "all") {
5
5
  const m = c();
@@ -1,62 +1,62 @@
1
1
  import { computed as T } from "vue";
2
- import { b as v, R as e, a8 as O, a9 as P, a7 as C } from "./app-37NZKFUI.js";
3
- import { useCoreStore as U, useI18n as _ } from "@feedmepos/mf-common";
4
- import { u as A } from "./feature-B4BoCy_k.js";
5
- const L = P.reduce(
6
- (s, t) => {
7
- var r;
8
- return t.name && (s[t.name] = (r = t.meta) == null ? void 0 : r.validationManifest), s;
2
+ import { b as v, R as e, a5 as b, a6 as O, a4 as A } from "./app-BWvf7Pbw.js";
3
+ import { useCoreStore as C, useI18n as U } from "@feedmepos/mf-common";
4
+ import { u as _ } from "./feature-Bt9vQSu_.js";
5
+ const L = O.reduce(
6
+ (o, r) => {
7
+ var i;
8
+ return r.name && (o[r.name] = (i = r.meta) == null ? void 0 : i.validationManifest), o;
9
9
  },
10
10
  {}
11
11
  );
12
- function D() {
13
- const s = U(), t = A(), { t: r } = _(), { isDev: N } = v(), l = (E) => O(E, r), c = T(
12
+ function p() {
13
+ const o = C(), r = _(), { t: i } = U(), { isDev: c } = v(), l = (t) => b(t, i), N = T(
14
14
  () => {
15
- var E;
16
- return ((E = s.sessionUser.value) == null ? void 0 : E.permissions) ?? [];
15
+ var t;
16
+ return ((t = o.sessionUser.value) == null ? void 0 : t.permissions) ?? [];
17
17
  }
18
- ), h = (E = []) => E.length === 0 ? !0 : C(E, c.value).granted, a = (E) => {
19
- const n = L[E];
18
+ ), h = (t = []) => t.length === 0 ? !0 : A(t, N.value).granted, a = (t) => {
19
+ const n = L[t];
20
20
  return h(n == null ? void 0 : n.requiredCaslPermissions);
21
- }, R = (E) => E.filter((n) => !n.hide).map((n) => n.children ? { ...n, children: R(n.children) } : n).filter((n) => !n.children || n.children.length > 0), I = (E) => E.map((n) => {
22
- const { hide: o, children: i, ...u } = n, d = { ...u };
23
- return i && (d.children = I(i)), d;
24
- }), S = T(() => {
25
- var o;
26
- const E = [
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: s, children: E, ...u } = n, S = { ...u };
23
+ return E && (S.children = I(E)), S;
24
+ }), d = T(() => {
25
+ var s;
26
+ const t = [
27
27
  {
28
28
  label: "Non-Production Environment",
29
29
  icon: "logo_dev",
30
30
  disabled: !0,
31
- hide: !N
31
+ hide: !c
32
32
  },
33
33
  {
34
34
  label: l(e.STOCK),
35
35
  children: [
36
36
  {
37
- label: r("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.PRODUCTION),
43
43
  value: e.PRODUCTION,
44
- hide: !a(e.PRODUCTION) || !t.enableProductionItem
44
+ hide: !a(e.PRODUCTION) || !r.enableProductionItem
45
45
  },
46
46
  {
47
47
  label: l(e.UNIT_COST_HISTORY),
48
48
  value: e.UNIT_COST_HISTORY,
49
- hide: !a(e.UNIT_COST_HISTORY) || !t.enableTotalCost
49
+ hide: !a(e.UNIT_COST_HISTORY) || !r.enableTotalCost
50
50
  },
51
51
  {
52
52
  label: l(e.WASTAGE_TEMPLATE),
53
53
  value: e.WASTAGE_TEMPLATE,
54
- hide: !a(e.WASTAGE_TEMPLATE) || !t.enableWastageTemplate
54
+ hide: !a(e.WASTAGE_TEMPLATE) || !r.enableWastageTemplate
55
55
  }
56
56
  ]
57
57
  },
58
58
  {
59
- label: r("inventory.closing.title"),
59
+ label: i("inventory.closing.title"),
60
60
  children: [
61
61
  {
62
62
  label: l(e.CLOSING_HISTORY),
@@ -66,12 +66,12 @@ function D() {
66
66
  {
67
67
  label: l(e.CLOSING_TEMPLATE),
68
68
  value: e.CLOSING_TEMPLATE,
69
- hide: !a(e.CLOSING_TEMPLATE) || !t.enableClosingTemplate
69
+ hide: !a(e.CLOSING_TEMPLATE) || !r.enableClosingTemplate
70
70
  },
71
71
  {
72
72
  label: l(e.CLOSING_DRAFT),
73
73
  value: e.CLOSING_DRAFT,
74
- hide: !a(e.CLOSING_DRAFT) || !t.enableClosingTemplate
74
+ hide: !a(e.CLOSING_DRAFT) || !r.enableClosingTemplate
75
75
  }
76
76
  ]
77
77
  },
@@ -83,7 +83,7 @@ function D() {
83
83
  {
84
84
  label: l(e.INGREDIENT_GROUP),
85
85
  value: e.INGREDIENT_GROUP,
86
- hide: !a(e.INGREDIENT_GROUP) || !t.enableIngredientGroup
86
+ hide: !a(e.INGREDIENT_GROUP) || !r.enableIngredientGroup
87
87
  },
88
88
  {
89
89
  label: l(e.RECIPE),
@@ -96,7 +96,7 @@ function D() {
96
96
  hide: !a(e.UNIT)
97
97
  },
98
98
  {
99
- label: r("inventory.transfer.title"),
99
+ label: i("inventory.transfer.title"),
100
100
  children: [
101
101
  {
102
102
  label: l(e.RECEIVE_REQUEST),
@@ -106,7 +106,7 @@ function D() {
106
106
  {
107
107
  label: l(e.RECEIVE_REQUEST_BULK),
108
108
  value: e.RECEIVE_REQUEST_BULK,
109
- hide: !a(e.RECEIVE_REQUEST_BULK) || !t.enableReceiveRequestBeta
109
+ hide: !a(e.RECEIVE_REQUEST_BULK) || !r.enableReceiveRequestBeta
110
110
  },
111
111
  {
112
112
  label: l(e.APPROVAL),
@@ -116,29 +116,19 @@ function D() {
116
116
  {
117
117
  label: l(e.SURCHARGE),
118
118
  value: e.SURCHARGE,
119
- hide: !a(e.SURCHARGE) || !t.enableSurcharge
119
+ hide: !a(e.SURCHARGE) || !r.enableSurcharge
120
120
  },
121
121
  {
122
122
  label: l(e.TRANSFER_TEMPLATE),
123
123
  value: e.TRANSFER_TEMPLATE,
124
- hide: !a(e.TRANSFER_TEMPLATE) || !t.enablePoTemplate
124
+ hide: !a(e.TRANSFER_TEMPLATE) || !r.enablePoTemplate
125
125
  }
126
126
  ]
127
127
  },
128
128
  {
129
- label: r("inventory.businessNetwork.title"),
130
- children: [
131
- {
132
- label: l(e.CONNECTED_BUSINESS),
133
- value: e.CONNECTED_BUSINESS,
134
- hide: !a(e.CONNECTED_BUSINESS)
135
- },
136
- {
137
- label: l(e.SUPPLIER),
138
- value: e.SUPPLIER,
139
- hide: !a(e.SUPPLIER)
140
- }
141
- ]
129
+ label: l(e.SUPPLIER),
130
+ value: e.SUPPLIER,
131
+ hide: !a(e.SUPPLIER)
142
132
  },
143
133
  {
144
134
  label: l(e.WAREHOUSE),
@@ -153,30 +143,30 @@ function D() {
153
143
  {
154
144
  label: l(e.IMPORT),
155
145
  value: e.IMPORT,
156
- hide: !a(e.IMPORT) || !t.enableBulkImport
146
+ hide: !a(e.IMPORT) || !r.enableBulkImport
157
147
  },
158
148
  {
159
149
  label: l(e.INTEGRATION),
160
150
  value: e.INTEGRATION,
161
151
  hide: !a(e.INTEGRATION)
162
152
  }
163
- ], n = I(R(E));
164
- return ((o = s.currentBusiness.value) == null ? void 0 : o.menuVersion) === "v3" ? n.filter(
165
- (i) => i.value !== e.INGREDIENTS && i.value !== e.RECIPE && i.value !== e.UNIT && i.value !== e.PUBLISH
153
+ ], n = I(R(t));
154
+ return ((s = o.currentBusiness.value) == null ? void 0 : s.menuVersion) === "v3" ? n.filter(
155
+ (E) => E.value !== e.INGREDIENTS && E.value !== e.RECIPE && E.value !== e.UNIT && E.value !== e.PUBLISH
166
156
  ) : n;
167
- }), b = T(() => {
168
- function E(o) {
169
- for (const i of o)
170
- if (i.children && i.children.length > 0) {
171
- const u = E(i.children);
157
+ }), P = T(() => {
158
+ function t(s) {
159
+ for (const E of s)
160
+ if (E.children && E.children.length > 0) {
161
+ const u = t(E.children);
172
162
  if (u) return u;
173
- } else if (i.value)
174
- return i.value;
163
+ } else if (E.value)
164
+ return E.value;
175
165
  }
176
- return E(S.value) ?? null;
166
+ return t(d.value) ?? null;
177
167
  });
178
- return { menuItems: S, firstAccessibleRouteName: b };
168
+ return { menuItems: d, firstAccessibleRouteName: P };
179
169
  }
180
170
  export {
181
- D as u
171
+ p as u
182
172
  };
@@ -1,4 +1,4 @@
1
- import { m as se } from "./app-37NZKFUI.js";
1
+ import { m as se } from "./app-BWvf7Pbw.js";
2
2
  import { useCoreStore as ne } from "@feedmepos/mf-common";
3
3
  const re = se((e, t) => ({
4
4
  getSubscribeUrl(s, r, a) {
@@ -5,7 +5,6 @@ export interface TransferDialogProps {
5
5
  templateId?: string;
6
6
  show?: boolean;
7
7
  lastClosingDate?: Date | null;
8
- lockedConnectedBusiness?: boolean;
9
8
  }
10
9
  export interface TransferDialogEvents {
11
10
  (event: 'update:show', show: boolean): void;
@@ -8,7 +8,6 @@ export interface TransferFormProps {
8
8
  skuBalanceMap?: Map<string, FdoSkuBalance>;
9
9
  isBalanceLoading?: boolean;
10
10
  lockedSupplier?: FdoPurchaseOrderSupplier;
11
- lockedConnectedBusiness?: boolean;
12
11
  }
13
12
  export interface TransferFormEvents {
14
13
  (event: 'validation-success'): void;
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
14
14
  precision: number;
15
15
  };
16
16
  }[];
17
- version?: "1" | "2" | "3" | null | undefined;
17
+ version?: "1" | "2" | null | undefined;
18
18
  ref?: string | null | undefined;
19
19
  template?: string | null | undefined;
20
20
  remark?: string | null | undefined;
@@ -120,7 +120,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
120
120
  ref?: string | null | undefined;
121
121
  remark?: string | null | undefined;
122
122
  supplier: {
123
- businessId?: string | null | undefined;
124
123
  _rev?: string | null | undefined;
125
124
  internal?: "restaurant" | "warehouse" | null | undefined;
126
125
  contactName?: string | null | undefined;
@@ -150,7 +149,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
150
149
  unit: "year" | "month" | "week" | "day" | "hour" | "minute" | "second" | "millisecond";
151
150
  value: number;
152
151
  } | null | undefined;
153
- businessName?: string | null | undefined;
154
152
  _id: string;
155
153
  name: string;
156
154
  address: {
@@ -406,14 +404,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
406
404
  recordType?: string | null | undefined;
407
405
  id: string | null;
408
406
  } | null | undefined;
409
- connectedBusinessItems?: {
410
- skuId: string;
411
- quantity: {
412
- amount: number;
413
- precision: number;
414
- };
415
- uomId: string;
416
- }[] | null | undefined;
417
407
  shipmentId?: string[] | null | undefined;
418
408
  id: string;
419
409
  createdAt: string;
@@ -512,97 +502,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
512
502
  };
513
503
  }[];
514
504
  }[] | null | undefined;
515
- connectedBusinessRef?: {
516
- businessName?: string | null | undefined;
517
- targetBusinessName?: string | null | undefined;
518
- skus: {
519
- trackingMeasurement?: string | null | undefined;
520
- isInactive?: boolean | null | undefined;
521
- convert?: {
522
- measurement?: string | null | undefined;
523
- inventoryBindings?: {
524
- measurement?: {
525
- name: string;
526
- id: string;
527
- abbrev: string;
528
- conversion: {
529
- amount: number;
530
- precision: number;
531
- };
532
- } | null | undefined;
533
- rules?: Record<string, any> | null | undefined;
534
- alternatives?: {
535
- default?: boolean | null | undefined;
536
- trackingMeasurement?: string | null | undefined;
537
- priority?: number | null | undefined;
538
- _id: string;
539
- }[] | null | undefined;
540
- type: "RECIPE" | "SKU" | "SKU_GROUP";
541
- amount: {
542
- amount: number;
543
- precision: number;
544
- };
545
- id: string;
546
- }[] | null | undefined;
547
- } | null | undefined;
548
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
549
- defaultCost?: {
550
- measurement?: {
551
- name: string;
552
- id: string;
553
- abbrev: string;
554
- conversion: {
555
- amount: number;
556
- precision: number;
557
- };
558
- } | null | undefined;
559
- costPerUnit: {
560
- 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";
561
- amount: number;
562
- precision: number;
563
- };
564
- } | null | undefined;
565
- operationalGroup?: string | null | undefined;
566
- thresholds?: {
567
- low: number;
568
- mid: number;
569
- } | null | undefined;
570
- customAttributes?: Record<string, any> | null | undefined;
571
- unit: {
572
- _id: string;
573
- name: string;
574
- abbrev: string;
575
- precision: number;
576
- measurements: {
577
- name: string;
578
- id: string;
579
- abbrev: string;
580
- conversion: {
581
- amount: number;
582
- precision: number;
583
- };
584
- }[];
585
- };
586
- code: string;
587
- _id: string;
588
- name: string;
589
- }[];
590
- pairs: {
591
- skuId: string;
592
- quantity: {
593
- amount: number;
594
- precision: number;
595
- };
596
- externalSkuId: string;
597
- externalQuantity: {
598
- amount: number;
599
- precision: number;
600
- };
601
- }[];
602
- } | null | undefined;
603
505
  actionChangelogs?: {
604
506
  remarks?: string | null | undefined;
605
- action: "submitRequest" | "confirmDraft" | "cancelDraft" | "approveDraft" | "rejectDraft" | "approveRequest" | "rejectRequest" | "processRequest" | "receiveStock" | "returnStock" | "completeReceive" | "closeRequest";
507
+ action: "approveDraft" | "rejectDraft" | "submitRequest" | "confirmDraft" | "cancelDraft" | "approveRequest" | "rejectRequest" | "processRequest" | "receiveStock" | "returnStock" | "completeReceive" | "closeRequest";
606
508
  changedBy: {
607
509
  name: string;
608
510
  id: string;
@@ -612,7 +514,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
612
514
  shipmentIds?: string[] | null | undefined;
613
515
  predictionId?: string | null | undefined;
614
516
  supplier: {
615
- businessId?: string | null | undefined;
616
517
  _rev?: string | null | undefined;
617
518
  internal?: "restaurant" | "warehouse" | null | undefined;
618
519
  contactName?: string | null | undefined;
@@ -642,7 +543,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
642
543
  unit: "year" | "month" | "week" | "day" | "hour" | "minute" | "second" | "millisecond";
643
544
  value: number;
644
545
  } | null | undefined;
645
- businessName?: string | null | undefined;
646
546
  _id: string;
647
547
  name: string;
648
548
  address: {
@@ -1,5 +1,4 @@
1
- export declare function notifyInvalidPoOnce(docId: string | undefined, notify: (title: string, message: string) => void, title: string, message: string): void;
2
- export declare function generatedPOReceivedMap(po: FdoPurchaseOrder, notifyInvalid?: (title: string, message: string) => void): Record<string, PurchaseOrderItemReceiveInfo>;
1
+ export declare function generatedPOReceivedMap(po: FdoPurchaseOrder): Record<string, PurchaseOrderItemReceiveInfo>;
3
2
  export declare function validatePOItemReceivedStatus(dto: PurchaseOrderItemReceiveInfo): {
4
3
  isPartialReceive?: boolean;
5
4
  isFullReceive?: boolean;
@@ -9,25 +9,9 @@ export declare function useProcessPurchaseOrder(): (params: {
9
9
  operate: FdtoPurchaseOrderOperation;
10
10
  operateV2: FdtoPurchaseOrderOperateV2RequestWithPayload;
11
11
  transferTo?: string;
12
- /**
13
- * v3 POR routing: set when the PO is version 3 (connected-business) and the
14
- * action is taken on its request from the SOURCE location. Routes through
15
- * the source-side operate endpoint — the PO may live in another
16
- * business's db, which this portal session cannot call directly.
17
- */
18
- porV3?: {
19
- requestId: string;
20
- };
21
- /**
22
- * PO document version. When '3' (connected-business) and there is no existing
23
- * request yet (no `porV3`), owner-side ops — notably the first submit — must
24
- * run through the v3 engine so `createRequest` executes and the POR is
25
- * created. Without this a version-3 submit falls to v1/v2 and no v3 POR is made.
26
- */
27
- poVersion?: string | null;
28
- }) => Promise<void> | Promise<import("../../../api/type").WithRev<{
12
+ }) => Promise<import("../../../api/type").WithRev<{
29
13
  _rev?: string | null | undefined;
30
- version?: "1" | "2" | "3" | null | undefined;
14
+ version?: "1" | "2" | null | undefined;
31
15
  ref?: string | null | undefined;
32
16
  template?: string | null | undefined;
33
17
  remark?: string | null | undefined;
@@ -133,7 +117,6 @@ export declare function useProcessPurchaseOrder(): (params: {
133
117
  ref?: string | null | undefined;
134
118
  remark?: string | null | undefined;
135
119
  supplier: {
136
- businessId?: string | null | undefined;
137
120
  _rev?: string | null | undefined;
138
121
  internal?: "restaurant" | "warehouse" | null | undefined;
139
122
  contactName?: string | null | undefined;
@@ -163,7 +146,6 @@ export declare function useProcessPurchaseOrder(): (params: {
163
146
  unit: "year" | "month" | "week" | "day" | "hour" | "minute" | "second" | "millisecond";
164
147
  value: number;
165
148
  } | null | undefined;
166
- businessName?: string | null | undefined;
167
149
  _id: string;
168
150
  name: string;
169
151
  address: {
@@ -429,14 +411,6 @@ export declare function useProcessPurchaseOrder(): (params: {
429
411
  recordType?: string | null | undefined;
430
412
  id: string | null;
431
413
  } | null | undefined;
432
- connectedBusinessItems?: {
433
- skuId: string;
434
- quantity: {
435
- amount: number;
436
- precision: number;
437
- };
438
- uomId: string;
439
- }[] | null | undefined;
440
414
  shipmentId?: string[] | null | undefined;
441
415
  id: string;
442
416
  createdAt: string;
@@ -535,97 +509,9 @@ export declare function useProcessPurchaseOrder(): (params: {
535
509
  };
536
510
  }[];
537
511
  }[] | null | undefined;
538
- connectedBusinessRef?: {
539
- businessName?: string | null | undefined;
540
- targetBusinessName?: string | null | undefined;
541
- skus: {
542
- trackingMeasurement?: string | null | undefined;
543
- isInactive?: boolean | null | undefined;
544
- convert?: {
545
- measurement?: string | null | undefined;
546
- inventoryBindings?: {
547
- measurement?: {
548
- name: string;
549
- id: string;
550
- abbrev: string;
551
- conversion: {
552
- amount: number;
553
- precision: number;
554
- };
555
- } | null | undefined;
556
- rules?: Record<string, any> | null | undefined;
557
- alternatives?: {
558
- default?: boolean | null | undefined;
559
- trackingMeasurement?: string | null | undefined;
560
- priority?: number | null | undefined;
561
- _id: string;
562
- }[] | null | undefined;
563
- type: "RECIPE" | "SKU" | "SKU_GROUP";
564
- amount: {
565
- amount: number;
566
- precision: number;
567
- };
568
- id: string;
569
- }[] | null | undefined;
570
- } | null | undefined;
571
- valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
572
- defaultCost?: {
573
- measurement?: {
574
- name: string;
575
- id: string;
576
- abbrev: string;
577
- conversion: {
578
- amount: number;
579
- precision: number;
580
- };
581
- } | null | undefined;
582
- costPerUnit: {
583
- 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";
584
- amount: number;
585
- precision: number;
586
- };
587
- } | null | undefined;
588
- operationalGroup?: string | null | undefined;
589
- thresholds?: {
590
- low: number;
591
- mid: number;
592
- } | null | undefined;
593
- customAttributes?: Record<string, any> | null | undefined;
594
- unit: {
595
- _id: string;
596
- name: string;
597
- abbrev: string;
598
- precision: number;
599
- measurements: {
600
- name: string;
601
- id: string;
602
- abbrev: string;
603
- conversion: {
604
- amount: number;
605
- precision: number;
606
- };
607
- }[];
608
- };
609
- code: string;
610
- _id: string;
611
- name: string;
612
- }[];
613
- pairs: {
614
- skuId: string;
615
- quantity: {
616
- amount: number;
617
- precision: number;
618
- };
619
- externalSkuId: string;
620
- externalQuantity: {
621
- amount: number;
622
- precision: number;
623
- };
624
- }[];
625
- } | null | undefined;
626
512
  actionChangelogs?: {
627
513
  remarks?: string | null | undefined;
628
- action: "submitRequest" | "confirmDraft" | "cancelDraft" | "approveDraft" | "rejectDraft" | "approveRequest" | "rejectRequest" | "processRequest" | "receiveStock" | "returnStock" | "completeReceive" | "closeRequest";
514
+ action: "approveDraft" | "rejectDraft" | "submitRequest" | "confirmDraft" | "cancelDraft" | "approveRequest" | "rejectRequest" | "processRequest" | "receiveStock" | "returnStock" | "completeReceive" | "closeRequest";
629
515
  changedBy: {
630
516
  name: string;
631
517
  id: string;
@@ -634,7 +520,6 @@ export declare function useProcessPurchaseOrder(): (params: {
634
520
  }[] | null | undefined;
635
521
  shipmentIds?: string[] | null | undefined;
636
522
  supplier: {
637
- businessId?: string | null | undefined;
638
523
  _rev?: string | null | undefined;
639
524
  internal?: "restaurant" | "warehouse" | null | undefined;
640
525
  contactName?: string | null | undefined;
@@ -664,7 +549,6 @@ export declare function useProcessPurchaseOrder(): (params: {
664
549
  unit: "year" | "month" | "week" | "day" | "hour" | "minute" | "second" | "millisecond";
665
550
  value: number;
666
551
  } | null | undefined;
667
- businessName?: string | null | undefined;
668
552
  _id: string;
669
553
  name: string;
670
554
  address: {