@feedmepos/mf-inventory-portal 1.7.2 → 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.
- package/dist/{App-DohhNCXa.js → App-DK0-LWWu.js} +4 -4
- package/dist/{ApprovalView-To3lr_er.js → ApprovalView-BxV4_keX.js} +8 -8
- package/dist/{BindingsDialog-DUMIiVoC.js → BindingsDialog-DYVL00NY.js} +2 -2
- package/dist/{BindingsPicker-DQNUl07K.js → BindingsPicker-Bi1EcW62.js} +2 -2
- package/dist/{BindingsTable-DR6tP4Vq.js → BindingsTable-CvtOCAkc.js} +3 -3
- package/dist/BulkReceiveRequestView-Dgp3EWOn.js +2208 -0
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-B8d6WuAD.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DX3Ug_dN.js} +1 -1
- package/dist/{ClosingDraftView-0cVbpL_Y.js → ClosingDraftView-D2uvIKY5.js} +20 -20
- package/dist/{ClosingHistoryView-CgeySFOV.js → ClosingHistoryView-CIb7Ch4L.js} +6 -6
- package/dist/{ClosingTemplateView-0DND6wXY.js → ClosingTemplateView-XVSVYB2y.js} +17 -17
- package/dist/CursorPaginatedTable.vue_vue_type_script_setup_true_lang-BCUhtL_B.js +136 -0
- package/dist/{DefaultView-CJJPVYaP.js → DefaultView-BJets42n.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-BYGrbUM7.js → DeliveryOrderPrintPreview-DaQHEkqA.js} +2 -2
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-y-pJP1Jp.js → EmailDialog.vue_vue_type_script_setup_true_lang-CBL0xqFW.js} +1636 -1636
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DuCO2ruW.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DbQxJtrd.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-MttAbvza.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BgCS24jN.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-yAqRbXI7.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Dc6xTcD8.js} +2 -2
- package/dist/{FmMultiselectDialog-DFa8dpii.js → FmMultiselectDialog-Bq_Na17d.js} +2 -2
- package/dist/{FmMultiselectDialog-DYzEHEev.js → FmMultiselectDialog-CxsksooH.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-5xj-8OQS.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DkftHtJN.js} +5 -5
- package/dist/{ImportView-gcy9rku3.js → ImportView-BzNfHFEx.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-sx6-tRnK.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Hat27Ar4.js} +1 -1
- package/dist/{IngredientGroupView-BAC3mW8X.js → IngredientGroupView-ClG1OM4D.js} +5 -5
- package/dist/{IngredientsView-DUwPOngs.js → IngredientsView-BYE1xoOE.js} +15 -15
- package/dist/{IntegrationExplorerView-A-el5q_l.js → IntegrationExplorerView-DwvsbHfd.js} +4 -4
- package/dist/{IntegrationView-CZNWvTcS.js → IntegrationView-ikLaCdnl.js} +797 -750
- package/dist/{InventoryBindingForm-D2QosIsu.js → InventoryBindingForm-C6P0ZuXJ.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BITnywUj.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DzLxq3uM.js} +5 -5
- package/dist/{InventoryBindingSummary-D6HNweqs.js → InventoryBindingSummary-CMSSSTdo.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B6h1Gd2a.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-COXmn2a8.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DcypxqiE.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BvrpIpql.js} +1 -1
- package/dist/{ProductionView-lhMrHKJn.js → ProductionView-DI3JxiFg.js} +7 -7
- package/dist/{PublishView-CQsNNeNS.js → PublishView-BoyEuUAu.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-Cos7s-NS.js → PurchaseOrderPrintPreview-D60kdiQU.js} +2 -2
- package/dist/{ReceiveRequestView-kkBYw4JQ.js → ReceiveRequestView-DhpS9JLx.js} +13 -13
- package/dist/{RecipeView-CjaZPxYm.js → RecipeView-Cz-Q0aio.js} +17 -17
- package/dist/{SettingsView-BmQpMvRD.js → SettingsView-BNDr4ez-.js} +4 -4
- package/dist/{StockView-3LQX-iUo.js → StockView-bpRLYtw0.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BWc-rqnP.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B0wulwNM.js} +1 -1
- package/dist/{SupplierView-JIgEU67D.js → SupplierView-CDHpZdob.js} +13 -13
- package/dist/{SurchargeView-CLxruSjz.js → SurchargeView-BQ1O-fAr.js} +6 -6
- package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-DicFDlas.js +209 -0
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DGnnOvqu.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D0NGjAyr.js} +1 -1
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-SHMiHC5F.js +4709 -0
- package/dist/{TransferTemplateView-BopBFYQK.js → TransferTemplateView-BRYAJdlG.js} +20 -20
- package/dist/{UnitCostHistoryView-Dn_riEm2.js → UnitCostHistoryView-DLLPBU9n.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BY6MtjNI.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DTJBsfEj.js} +4 -4
- package/dist/{UnitView-C14LJdh1.js → UnitView-DwZMbt4A.js} +7 -7
- package/dist/{WarehouseView-DSofhuRJ.js → WarehouseView-DyKR9b4c.js} +5 -5
- package/dist/{WastageTemplateView-CVNs59Q3.js → WastageTemplateView-CZhQ7MKe.js} +14 -14
- package/dist/api/codemax.d.ts +1 -1
- package/dist/api/purchase-order.d.ts +39 -1
- package/dist/{app-D3Pk5TsF.js → app-CPHh8dJ8.js} +2540 -2506
- package/dist/app.js +1 -1
- package/dist/{closing-template-ChgHEg6X.js → closing-template-DV8hM9mR.js} +1 -1
- package/dist/components/{CursorPaginatedTable.vue.d.ts → cursor-paginated-table/CursorPaginatedTable.vue.d.ts} +1 -7
- package/dist/components/cursor-paginated-table/use-row-action.d.ts +17 -0
- package/dist/{date2-S8CzVzLb.js → date2-CMYcYkVI.js} +1 -1
- package/dist/{dayjs.min-BTkKTXC_.js → dayjs.min-Crreg1xX.js} +1 -1
- package/dist/{decimal-DbIrw0-W.js → decimal-DhFDmEjW.js} +2 -2
- package/dist/{defineDeepModel-VV8-dLQB.js → defineDeepModel-DSzyuBIx.js} +1 -1
- package/dist/dinero-DMLEtkS9.js +1260 -0
- package/dist/{duplicate-template-CU7i2OYd.js → duplicate-template-qbIou3kX.js} +1 -1
- package/dist/{feature-PxsJCXfx.js → feature-Do5dZj8x.js} +2 -2
- package/dist/{format-time-from-id-DzyQO052.js → format-time-from-id-BbguyEMG.js} +1 -1
- package/dist/{format-unit-display-Ce_ihiZh.js → format-unit-display-C-RAKWPU.js} +12 -12
- package/dist/{import-export.helper-BMjR_wjj.js → import-export.helper-Duq-vfeY.js} +6 -6
- package/dist/{index-DVld56cO.js → index-75GfRz2O.js} +1 -1
- package/dist/{index-CVnjxAU0.js → index-Ctrxj7cE.js} +3 -3
- package/dist/{index-ntOX0GTR.js → index-D73SJ6zk.js} +3807 -5062
- package/dist/{inventory-core-dart.default-Crk5o9NC.js → inventory-core-dart.default-toC4Oswn.js} +1 -1
- package/dist/{jszip.min-n1XNOZh7.js → jszip.min-DCDx15Lo.js} +523 -523
- package/dist/{lz-string-BOPYfMhM.js → lz-string-DIrw_osP.js} +1 -1
- package/dist/{netsuite-XygzV566.js → netsuite-BCPPfv5q.js} +2 -2
- package/dist/{number-C2ht-mjX.js → number-Dj-zUn93.js} +3 -3
- package/dist/{predefined-templates-BwKtONp8.js → predefined-templates-CkZwybVN.js} +1 -1
- package/dist/{purchase-order-template-B43-m0J3.js → purchase-order-template-B96No_lH.js} +1 -1
- package/dist/{recalculationUtils-DIVwhfP2.js → recalculationUtils-lkExVizR.js} +1 -1
- package/dist/{rules-D_NC8Wh3.js → rules-DjI-FPha.js} +2 -2
- package/dist/{stock-CnspYkq6.js → stock-BLL3aLEQ.js} +3 -3
- package/dist/{stock-yL5X9man.js → stock-KNrrUQF1.js} +1 -1
- package/dist/{supplier-W7lS_7Ga.js → supplier-CosSdx6_.js} +2 -2
- package/dist/{surcharge-BNENHWoz.js → surcharge-DFnSG3ka.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-C4weCQ1J.js → uom-rules-MbRvuo5s.js} +1 -1
- package/dist/{use-ingredient-select-dialog-CoMShpCA.js → use-ingredient-select-dialog-HqatzFkQ.js} +2 -2
- package/dist/{use-inventory-binding-dialog-DAiB6uuX.js → use-inventory-binding-dialog-CHIrX4O3.js} +2 -2
- package/dist/use-row-action-Cvq6VO38.js +31 -0
- package/dist/{use-template-enabled-locations-DAnSVWry.js → use-template-enabled-locations-CZDQcsEJ.js} +2 -2
- package/dist/{use-transfer-locations-Bunxkf8T.js → use-transfer-locations-BRCrX_-r.js} +2 -2
- package/dist/{useHrmPermission-8T4AE1Is.js → useHrmPermission-B9vfKTf-.js} +1 -1
- package/dist/{useNavigationMenu-BpMry1lp.js → useNavigationMenu-DPD_pWDz.js} +2 -2
- package/dist/{useSseClient-eneZ6wE5.js → useSseClient-CuljyleL.js} +1 -1
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +7 -7
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +1 -1
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +46 -8
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +504 -529
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +33 -2
- package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.spec.d.ts +1 -0
- package/dist/views/receive-request-bulk/helpers/resolve-po-print-context.d.ts +21 -0
- package/dist/{vue-i18n-L-ghmVMg.js → vue-i18n-CyoeLXfI.js} +396 -396
- package/dist/{xlsx.util-DjAJxws5.js → xlsx.util-C6g7kacG.js} +2 -2
- package/package.json +4 -4
- package/dist/BulkReceiveRequestView-Dz1lQS-u.js +0 -2011
- package/dist/CursorPaginatedTable.vue_vue_type_script_setup_true_lang-4KT9rH9e.js +0 -152
- package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-IXZTVQ42.js +0 -178
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-UStf5-hI.js +0 -4682
package/dist/{use-ingredient-select-dialog-CoMShpCA.js → use-ingredient-select-dialog-HqatzFkQ.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as S } from "pinia";
|
|
2
|
-
import { a as b } from "./app-
|
|
3
|
-
import { a as A } from "./FmMultiselectDialog-
|
|
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(
|
package/dist/{use-inventory-binding-dialog-DAiB6uuX.js → use-inventory-binding-dialog-CHIrX4O3.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as g } from "./FmMultiselectDialog-
|
|
2
|
-
import { a as P } from "./app-
|
|
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-
|
|
2
|
-
import { u as S } from "./app-
|
|
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-
|
|
2
|
-
import { u as E } from "./supplier-
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import { computed as T } from "vue";
|
|
2
|
-
import { b as v, R as e,
|
|
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-
|
|
4
|
+
import { u as _ } from "./feature-Do5dZj8x.js";
|
|
5
5
|
const L = O.reduce(
|
|
6
6
|
(o, r) => {
|
|
7
7
|
var i;
|
|
@@ -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
|
|
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
|
-
|
|
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;
|