@feedmepos/mf-inventory-portal 1.7.2-dev.9 → 1.7.3-dev.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 (108) hide show
  1. package/dist/{App-CB5B-Zqg.js → App-DK0-LWWu.js} +4 -4
  2. package/dist/{ApprovalView-DjwvggBw.js → ApprovalView-BxV4_keX.js} +8 -8
  3. package/dist/{BindingsDialog-YfD2_RXJ.js → BindingsDialog-DYVL00NY.js} +2 -2
  4. package/dist/{BindingsPicker-CX9ltw8m.js → BindingsPicker-Bi1EcW62.js} +2 -2
  5. package/dist/{BindingsTable-CL1UqP1z.js → BindingsTable-CvtOCAkc.js} +3 -3
  6. package/dist/BulkReceiveRequestView-Dgp3EWOn.js +2208 -0
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-De1kEKhU.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DX3Ug_dN.js} +1 -1
  8. package/dist/{ClosingDraftView-CZ6QJoll.js → ClosingDraftView-D2uvIKY5.js} +20 -20
  9. package/dist/{ClosingHistoryView-DhLeR64-.js → ClosingHistoryView-CIb7Ch4L.js} +6 -6
  10. package/dist/{ClosingTemplateView-BH-F82gI.js → ClosingTemplateView-XVSVYB2y.js} +17 -17
  11. package/dist/CursorPaginatedTable.vue_vue_type_script_setup_true_lang-BCUhtL_B.js +136 -0
  12. package/dist/{DefaultView-BBIJEA3P.js → DefaultView-BJets42n.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-DhUMqZ3g.js → DeliveryOrderPrintPreview-DaQHEkqA.js} +2 -2
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-B6LvPyyR.js → EmailDialog.vue_vue_type_script_setup_true_lang-CBL0xqFW.js} +23 -23
  15. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-vSNDlFNy.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DbQxJtrd.js} +1 -1
  16. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BuF_AviA.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BgCS24jN.js} +2 -2
  17. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DE3kzeYh.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Dc6xTcD8.js} +2 -2
  18. package/dist/{FmMultiselectDialog-DLtLmVL3.js → FmMultiselectDialog-Bq_Na17d.js} +2 -2
  19. package/dist/{FmMultiselectDialog-CJs80XOa.js → FmMultiselectDialog-CxsksooH.js} +1 -1
  20. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CDxaELo0.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DkftHtJN.js} +5 -5
  21. package/dist/{ImportView-CsHj-pR6.js → ImportView-BzNfHFEx.js} +6 -6
  22. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BUF81rHq.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Hat27Ar4.js} +1 -1
  23. package/dist/{IngredientGroupView-DkckpQLc.js → IngredientGroupView-ClG1OM4D.js} +5 -5
  24. package/dist/{IngredientsView-D_Nicjsh.js → IngredientsView-BYE1xoOE.js} +15 -15
  25. package/dist/{IntegrationExplorerView-DEuWQk1D.js → IntegrationExplorerView-DwvsbHfd.js} +4 -4
  26. package/dist/{IntegrationView-Cx4bxIwf.js → IntegrationView-ikLaCdnl.js} +1090 -1008
  27. package/dist/{InventoryBindingForm-qnb6z-u0.js → InventoryBindingForm-C6P0ZuXJ.js} +1 -1
  28. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Liy7aqJZ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DzLxq3uM.js} +5 -5
  29. package/dist/{InventoryBindingSummary-BZOmtpm6.js → InventoryBindingSummary-CMSSSTdo.js} +1 -1
  30. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DEWLrCAw.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-COXmn2a8.js} +1 -1
  31. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-By-JIDeu.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BvrpIpql.js} +1 -1
  32. package/dist/{ProductionView-C8-59pFt.js → ProductionView-DI3JxiFg.js} +7 -7
  33. package/dist/{PublishView-DQsv0-MK.js → PublishView-BoyEuUAu.js} +3 -3
  34. package/dist/{PurchaseOrderPrintPreview-CkhwGcLv.js → PurchaseOrderPrintPreview-D60kdiQU.js} +2 -2
  35. package/dist/{ReceiveRequestView-C1L3TRxG.js → ReceiveRequestView-DhpS9JLx.js} +13 -13
  36. package/dist/{RecipeView-BqIkAROe.js → RecipeView-Cz-Q0aio.js} +17 -17
  37. package/dist/{SettingsView-C7OvBsk7.js → SettingsView-BNDr4ez-.js} +4 -4
  38. package/dist/{StockView-DmooHpUA.js → StockView-bpRLYtw0.js} +21 -21
  39. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BnPsg73q.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B0wulwNM.js} +1 -1
  40. package/dist/{SupplierView-BX4NUlpe.js → SupplierView-CDHpZdob.js} +13 -13
  41. package/dist/{SurchargeView-BMEw-9NE.js → SurchargeView-BQ1O-fAr.js} +6 -6
  42. package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-DicFDlas.js +209 -0
  43. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BAtReLzV.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D0NGjAyr.js} +1 -1
  44. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-SHMiHC5F.js +4709 -0
  45. package/dist/{TransferTemplateView-DbDJkDG6.js → TransferTemplateView-BRYAJdlG.js} +20 -20
  46. package/dist/{UnitCostHistoryView-Dxh4Airx.js → UnitCostHistoryView-DLLPBU9n.js} +4 -4
  47. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BjrQMp_z.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DTJBsfEj.js} +4 -4
  48. package/dist/{UnitView-PDGsmslg.js → UnitView-DwZMbt4A.js} +7 -7
  49. package/dist/{WarehouseView-CxJwBhP2.js → WarehouseView-DyKR9b4c.js} +5 -5
  50. package/dist/{WastageTemplateView-CvWN_CSM.js → WastageTemplateView-CZhQ7MKe.js} +14 -14
  51. package/dist/api/codemax.d.ts +1 -1
  52. package/dist/api/purchase-order.d.ts +39 -1
  53. package/dist/{app-Jn5lGJlj.js → app-CPHh8dJ8.js} +3354 -3315
  54. package/dist/app.js +1 -1
  55. package/dist/{closing-template-H9tZbi5r.js → closing-template-DV8hM9mR.js} +1 -1
  56. package/dist/components/{CursorPaginatedTable.vue.d.ts → cursor-paginated-table/CursorPaginatedTable.vue.d.ts} +1 -7
  57. package/dist/components/cursor-paginated-table/use-row-action.d.ts +17 -0
  58. package/dist/{date2-D1euElV4.js → date2-CMYcYkVI.js} +1 -1
  59. package/dist/{dayjs.min-C14dwZ5_.js → dayjs.min-Crreg1xX.js} +1 -1
  60. package/dist/{decimal-BhzHnadq.js → decimal-DhFDmEjW.js} +2 -2
  61. package/dist/{defineDeepModel-BRniNmUQ.js → defineDeepModel-DSzyuBIx.js} +1 -1
  62. package/dist/dinero-DMLEtkS9.js +1260 -0
  63. package/dist/{duplicate-template-DNwRcoB-.js → duplicate-template-qbIou3kX.js} +1 -1
  64. package/dist/{feature-C9bdMyve.js → feature-Do5dZj8x.js} +2 -2
  65. package/dist/{format-time-from-id-DjO6nUaI.js → format-time-from-id-BbguyEMG.js} +1 -1
  66. package/dist/{format-unit-display-67dNsqKT.js → format-unit-display-C-RAKWPU.js} +12 -12
  67. package/dist/{import-export.helper-C5QtbnUR.js → import-export.helper-Duq-vfeY.js} +6 -6
  68. package/dist/{index-Bq73qJFm.js → index-75GfRz2O.js} +1 -1
  69. package/dist/{index-Bn_DQIVp.js → index-Ctrxj7cE.js} +3 -3
  70. package/dist/{index-DMhBwQd-.js → index-D73SJ6zk.js} +3807 -5062
  71. package/dist/{inventory-core-dart.default-Gz3ee802.js → inventory-core-dart.default-toC4Oswn.js} +1 -1
  72. package/dist/{jszip.min-BzjLymtX.js → jszip.min-DCDx15Lo.js} +251 -251
  73. package/dist/{lz-string-CjhnNLYc.js → lz-string-DIrw_osP.js} +1 -1
  74. package/dist/{netsuite-DW3IhO3I.js → netsuite-BCPPfv5q.js} +2 -2
  75. package/dist/{number-BrwP6iqk.js → number-Dj-zUn93.js} +3 -3
  76. package/dist/{predefined-templates-Bk-nk_IK.js → predefined-templates-CkZwybVN.js} +1 -1
  77. package/dist/{purchase-order-template-BPvikJSt.js → purchase-order-template-B96No_lH.js} +1 -1
  78. package/dist/{recalculationUtils-HzuYq5sD.js → recalculationUtils-lkExVizR.js} +1 -1
  79. package/dist/{rules-BNMXXxMw.js → rules-DjI-FPha.js} +2 -2
  80. package/dist/{stock-DT7nS5Wm.js → stock-BLL3aLEQ.js} +3 -3
  81. package/dist/{stock-DuTUPZKR.js → stock-KNrrUQF1.js} +1 -1
  82. package/dist/stores/location.d.ts +1 -0
  83. package/dist/{supplier-BbuEKATu.js → supplier-CosSdx6_.js} +2 -2
  84. package/dist/{surcharge-CxpxSfQv.js → surcharge-DFnSG3ka.js} +1 -1
  85. package/dist/tsconfig.app.tsbuildinfo +1 -1
  86. package/dist/{uom-rules-D53-NJ5c.js → uom-rules-MbRvuo5s.js} +1 -1
  87. package/dist/{use-ingredient-select-dialog-BisdDtfW.js → use-ingredient-select-dialog-HqatzFkQ.js} +2 -2
  88. package/dist/{use-inventory-binding-dialog-C8I7yg1u.js → use-inventory-binding-dialog-CHIrX4O3.js} +2 -2
  89. package/dist/use-row-action-Cvq6VO38.js +31 -0
  90. package/dist/{use-template-enabled-locations-BsUl8reh.js → use-template-enabled-locations-CZDQcsEJ.js} +2 -2
  91. package/dist/{use-transfer-locations-UzmJ88HG.js → use-transfer-locations-BRCrX_-r.js} +2 -2
  92. package/dist/{useHrmPermission-CH_0q0_n.js → useHrmPermission-B9vfKTf-.js} +1 -1
  93. package/dist/{useNavigationMenu-W_kB1aPz.js → useNavigationMenu-DPD_pWDz.js} +2 -2
  94. package/dist/{useSseClient-DISfAXd2.js → useSseClient-CuljyleL.js} +1 -1
  95. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +7 -7
  96. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +1 -1
  97. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +46 -8
  98. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +504 -529
  99. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +33 -2
  100. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.spec.d.ts +1 -0
  101. package/dist/views/receive-request-bulk/helpers/resolve-po-print-context.d.ts +21 -0
  102. package/dist/{vue-i18n-C6b55Yi1.js → vue-i18n-CyoeLXfI.js} +169 -169
  103. package/dist/{xlsx.util-DFJo76nw.js → xlsx.util-C6g7kacG.js} +2 -2
  104. package/package.json +4 -4
  105. package/dist/BulkReceiveRequestView-mIEWyGGl.js +0 -2011
  106. package/dist/CursorPaginatedTable.vue_vue_type_script_setup_true_lang-4KT9rH9e.js +0 -152
  107. package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-DW9b94yQ.js +0 -178
  108. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-_iQ7N8EL.js +0 -4682
@@ -1,5 +1,5 @@
1
1
  import { computed as o } from "vue";
2
- import { u } from "./netsuite-DW3IhO3I.js";
2
+ import { u } from "./netsuite-BCPPfv5q.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-Jn5lGJlj.js";
3
- import { a as A } from "./FmMultiselectDialog-DLtLmVL3.js";
2
+ import { a as b } from "./app-CPHh8dJ8.js";
3
+ import { a as A } from "./FmMultiselectDialog-Bq_Na17d.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-DLtLmVL3.js";
2
- import { a as P } from "./app-Jn5lGJlj.js";
1
+ import { a as g } from "./FmMultiselectDialog-Bq_Na17d.js";
2
+ import { a as P } from "./app-CPHh8dJ8.js";
3
3
  import { useDialog as E } from "@feedmepos/ui-library";
4
4
  function A() {
5
5
  const u = P(), _ = E();
@@ -0,0 +1,31 @@
1
+ import { ref as u } from "vue";
2
+ import { useSnackbar as f } from "@feedmepos/ui-library";
3
+ import { useI18n as m } from "@feedmepos/mf-common";
4
+ function p() {
5
+ const a = f(), { t: r } = m(), e = u(!1);
6
+ let n;
7
+ async function i(c) {
8
+ n == null || n.abort();
9
+ const o = new AbortController();
10
+ n = o, e.value = !0;
11
+ try {
12
+ return await c(o.signal);
13
+ } catch (t) {
14
+ o.signal.aborted || (console.error("Row action failed:", t), a.open({
15
+ title: r("inventory.common.somethingWentWrong"),
16
+ message: (t == null ? void 0 : t.message) || r("inventory.common.tryAgain"),
17
+ type: "error"
18
+ }));
19
+ return;
20
+ } finally {
21
+ n === o && (n = void 0, e.value = !1);
22
+ }
23
+ }
24
+ function s() {
25
+ n == null || n.abort(), n = void 0, e.value = !1;
26
+ }
27
+ return { pending: e, run: i, cancel: s };
28
+ }
29
+ export {
30
+ p as u
31
+ };
@@ -1,5 +1,5 @@
1
- import { a as A } from "./FmMultiselectDialog-DLtLmVL3.js";
2
- import { u as S } from "./app-Jn5lGJlj.js";
1
+ import { a as A } from "./FmMultiselectDialog-Bq_Na17d.js";
2
+ import { u as S } from "./app-CPHh8dJ8.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-Jn5lGJlj.js";
2
- import { u as E } from "./supplier-BbuEKATu.js";
1
+ import { u as g, r as l, W as w, Z as R } from "./app-CPHh8dJ8.js";
2
+ import { u as E } from "./supplier-CosSdx6_.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 { a4 as n } from "./app-Jn5lGJlj.js";
2
+ import { a5 as n } from "./app-CPHh8dJ8.js";
3
3
  import { useCoreStore as c } from "@feedmepos/mf-common";
4
4
  function g(t, i = "all") {
5
5
  const m = c();
@@ -1,7 +1,7 @@
1
1
  import { computed as T } from "vue";
2
- import { b as v, R as e, a5 as b, a6 as O, a4 as A } from "./app-Jn5lGJlj.js";
2
+ import { b as v, R as e, a6 as b, a7 as O, a5 as A } from "./app-CPHh8dJ8.js";
3
3
  import { useCoreStore as C, useI18n as U } from "@feedmepos/mf-common";
4
- import { u as _ } from "./feature-C9bdMyve.js";
4
+ import { u as _ } from "./feature-Do5dZj8x.js";
5
5
  const L = O.reduce(
6
6
  (o, r) => {
7
7
  var i;
@@ -1,4 +1,4 @@
1
- import { m as se } from "./app-Jn5lGJlj.js";
1
+ import { m as se } from "./app-CPHh8dJ8.js";
2
2
  import { useCoreStore as ne } from "@feedmepos/mf-common";
3
3
  const re = se((e, t) => ({
4
4
  getSubscribeUrl(s, r, a) {
@@ -1,5 +1,5 @@
1
1
  import { type ColumnDef } from '@feedmepos/ui-library';
2
- import type { CursorPageRequest, CursorPageResponse } from '@/components/CursorPaginatedTable.vue';
2
+ import type { CursorPageRequest, CursorPageResponse } from '@/components/cursor-paginated-table/CursorPaginatedTable.vue';
3
3
  import { type RevisionIdMeta } from '@feedmepos/inventory-core';
4
4
  type DraftWithDisplay = FdtoClosingDraftListItem & RevisionIdMeta & {
5
5
  closingIdDisplay: string | null;
@@ -34,6 +34,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
34
34
  name: string;
35
35
  id: string;
36
36
  };
37
+ itemCount: number;
37
38
  groups: {
38
39
  updatedAt?: string | null | undefined;
39
40
  updatedBy?: string | null | undefined;
@@ -166,7 +167,6 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
166
167
  _id: string;
167
168
  name: string;
168
169
  }[];
169
- itemCount: number;
170
170
  previewItemNames: string[];
171
171
  negativeStockItemCount: number;
172
172
  closingIdDisplay: string | null;
@@ -198,6 +198,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
198
198
  name: string;
199
199
  id: string;
200
200
  };
201
+ itemCount: number;
201
202
  groups: {
202
203
  updatedAt?: string | null | undefined;
203
204
  updatedBy?: string | null | undefined;
@@ -330,7 +331,6 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
330
331
  _id: string;
331
332
  name: string;
332
333
  }[];
333
- itemCount: number;
334
334
  previewItemNames: string[];
335
335
  negativeStockItemCount: number;
336
336
  closingIdDisplay: string | null;
@@ -392,6 +392,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
392
392
  name: string;
393
393
  id: string;
394
394
  };
395
+ itemCount: number;
395
396
  groups: {
396
397
  updatedAt?: string | null | undefined;
397
398
  updatedBy?: string | null | undefined;
@@ -524,7 +525,6 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
524
525
  _id: string;
525
526
  name: string;
526
527
  }[];
527
- itemCount: number;
528
528
  previewItemNames: string[];
529
529
  negativeStockItemCount: number;
530
530
  closingIdDisplay: string | null;
@@ -556,6 +556,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
556
556
  name: string;
557
557
  id: string;
558
558
  };
559
+ itemCount: number;
559
560
  groups: {
560
561
  updatedAt?: string | null | undefined;
561
562
  updatedBy?: string | null | undefined;
@@ -688,7 +689,6 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
688
689
  _id: string;
689
690
  name: string;
690
691
  }[];
691
- itemCount: number;
692
692
  previewItemNames: string[];
693
693
  negativeStockItemCount: number;
694
694
  closingIdDisplay: string | null;
@@ -750,6 +750,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
750
750
  name: string;
751
751
  id: string;
752
752
  };
753
+ itemCount: number;
753
754
  groups: {
754
755
  updatedAt?: string | null | undefined;
755
756
  updatedBy?: string | null | undefined;
@@ -882,7 +883,6 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
882
883
  _id: string;
883
884
  name: string;
884
885
  }[];
885
- itemCount: number;
886
886
  previewItemNames: string[];
887
887
  negativeStockItemCount: number;
888
888
  closingIdDisplay: string | null;
@@ -914,6 +914,7 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
914
914
  name: string;
915
915
  id: string;
916
916
  };
917
+ itemCount: number;
917
918
  groups: {
918
919
  updatedAt?: string | null | undefined;
919
920
  updatedBy?: string | null | undefined;
@@ -1046,7 +1047,6 @@ export declare const useClosingDraftTable: import("pinia").StoreDefinition<"clos
1046
1047
  _id: string;
1047
1048
  name: string;
1048
1049
  }[];
1049
- itemCount: number;
1050
1050
  previewItemNames: string[];
1051
1051
  negativeStockItemCount: number;
1052
1052
  closingIdDisplay: string | null;
@@ -1,7 +1,7 @@
1
1
  import { type ColumnDef } from '@feedmepos/ui-library';
2
2
  import { type RecentPublish } from '@/api/closing-template';
3
3
  import type { RevisionIdMeta } from '@feedmepos/inventory-core';
4
- import type { CursorPageRequest, CursorPageResponse } from '@/components/CursorPaginatedTable.vue';
4
+ import type { CursorPageRequest, CursorPageResponse } from '@/components/cursor-paginated-table/CursorPaginatedTable.vue';
5
5
  export declare const useClosingTemplateTable: import("pinia").StoreDefinition<"closingTemplateTable", import("pinia")._UnwrapAll<Pick<{
6
6
  columnDefs: ColumnDef<{
7
7
  _rev?: string | null | undefined;
@@ -1,8 +1,36 @@
1
1
  import { type Ref } from 'vue';
2
+ import { RowActionEnum } from '@/components/row-action.enum';
3
+ import { type InventoryLocation } from '@/stores/location';
2
4
  import type { PO_SCOPE, ReceiveRequestFormComposable } from './use-receive-request-form';
3
5
  import type { WithToInventoryLocation } from '@/api/purchase-order';
4
6
  import type { RevisionIdMeta } from '@feedmepos/inventory-core';
5
- export declare function useReceiveRequestTable(scope: PO_SCOPE, receiveRequestFormComposable: ReceiveRequestFormComposable, shipments: Ref<FdoInventoryShipment[]>): {
7
+ export interface ReceiveRequestTableOptions {
8
+ /**
9
+ * Fetch the full PO document for a summary row (bulk view rows have no
10
+ * items/deliveryOrder). Print actions call this when `items` is absent;
11
+ * returning null aborts the print.
12
+ */
13
+ fetchFullPo?: (po: FdoPurchaseOrder) => Promise<FdoPurchaseOrder | null>;
14
+ /**
15
+ * Override location resolution for print actions.
16
+ * Used by the bulk view to resolve the per-PO location from _locationDbName
17
+ * instead of falling back to the global locationStore.currentLocation.
18
+ */
19
+ resolveLocation?: (po: FdoPurchaseOrder) => InventoryLocation | null;
20
+ /**
21
+ * Override purchase-request resolution for print actions.
22
+ * Used by the bulk view to pass the correct POR so the template type
23
+ * (purchaseOrder vs goodsReceivedNote vs transferOrder) is determined correctly.
24
+ */
25
+ resolvePurchaseRequest?: (po: FdoPurchaseOrder) => FdoPurchaseOrderRequest | undefined;
26
+ /**
27
+ * Row actions to hide from the context menu. The bulk view excludes the
28
+ * legacy Print — the multi-outlet listing offers only Print (Beta), whose
29
+ * per-row location/template resolution is correct there.
30
+ */
31
+ excludeRowActions?: RowActionEnum[];
32
+ }
33
+ export declare function useReceiveRequestTable(scope: PO_SCOPE, receiveRequestFormComposable: ReceiveRequestFormComposable, shipments: Ref<FdoInventoryShipment[]>, options?: ReceiveRequestTableOptions): {
6
34
  columnDefs: import("vue").ComputedRef<({
7
35
  accessorKey: "seqNumber";
8
36
  header: () => string;
@@ -10,8 +38,9 @@ export declare function useReceiveRequestTable(scope: PO_SCOPE, receiveRequestFo
10
38
  size: number;
11
39
  sortUndefined: "last";
12
40
  cell?: undefined;
13
- meta?: undefined;
14
41
  id?: undefined;
42
+ accessorFn?: undefined;
43
+ meta?: undefined;
15
44
  } | {
16
45
  accessorKey: "_id";
17
46
  header: () => string;
@@ -792,8 +821,9 @@ export declare function useReceiveRequestTable(scope: PO_SCOPE, receiveRequestFo
792
821
  enableSorting: true;
793
822
  size?: undefined;
794
823
  sortUndefined?: undefined;
795
- meta?: undefined;
796
824
  id?: undefined;
825
+ accessorFn?: undefined;
826
+ meta?: undefined;
797
827
  } | {
798
828
  accessorKey: "supplier.name";
799
829
  header: () => string;
@@ -801,10 +831,14 @@ export declare function useReceiveRequestTable(scope: PO_SCOPE, receiveRequestFo
801
831
  size: number;
802
832
  sortUndefined?: undefined;
803
833
  cell?: undefined;
804
- meta?: undefined;
805
834
  id?: undefined;
835
+ accessorFn?: undefined;
836
+ meta?: undefined;
806
837
  } | {
807
- accessorKey: "items.length";
838
+ id: string;
839
+ accessorFn: (row: FdoPurchaseOrder & {
840
+ itemCount?: number;
841
+ }) => number;
808
842
  header: () => string;
809
843
  cell: (props: import("@tanstack/vue-table").CellContext<{
810
844
  _rev?: string | null | undefined;
@@ -1588,9 +1622,9 @@ export declare function useReceiveRequestTable(scope: PO_SCOPE, receiveRequestFo
1588
1622
  cellClass?: undefined;
1589
1623
  headerClass?: undefined;
1590
1624
  };
1625
+ accessorKey?: undefined;
1591
1626
  size?: undefined;
1592
1627
  sortUndefined?: undefined;
1593
- id?: undefined;
1594
1628
  } | {
1595
1629
  accessorKey: "ref";
1596
1630
  header: () => string;
@@ -1598,8 +1632,9 @@ export declare function useReceiveRequestTable(scope: PO_SCOPE, receiveRequestFo
1598
1632
  size: any;
1599
1633
  sortUndefined?: undefined;
1600
1634
  cell?: undefined;
1601
- meta?: undefined;
1602
1635
  id?: undefined;
1636
+ accessorFn?: undefined;
1637
+ meta?: undefined;
1603
1638
  } | {
1604
1639
  id: string;
1605
1640
  header: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -1610,6 +1645,7 @@ export declare function useReceiveRequestTable(scope: PO_SCOPE, receiveRequestFo
1610
1645
  size: number;
1611
1646
  accessorKey?: undefined;
1612
1647
  sortUndefined?: undefined;
1648
+ accessorFn?: undefined;
1613
1649
  meta?: undefined;
1614
1650
  } | {
1615
1651
  accessorKey: "status";
@@ -2393,8 +2429,9 @@ export declare function useReceiveRequestTable(scope: PO_SCOPE, receiveRequestFo
2393
2429
  enableSorting: true;
2394
2430
  size: number;
2395
2431
  sortUndefined?: undefined;
2396
- meta?: undefined;
2397
2432
  id?: undefined;
2433
+ accessorFn?: undefined;
2434
+ meta?: undefined;
2398
2435
  } | {
2399
2436
  id: string;
2400
2437
  cell(props: import("@tanstack/vue-table").CellContext<{
@@ -3183,6 +3220,7 @@ export declare function useReceiveRequestTable(scope: PO_SCOPE, receiveRequestFo
3183
3220
  accessorKey?: undefined;
3184
3221
  header?: undefined;
3185
3222
  sortUndefined?: undefined;
3223
+ accessorFn?: undefined;
3186
3224
  })[] | ({
3187
3225
  accessorKey: "purchaseOrder.seqNumber";
3188
3226
  header: () => string;