@feedmepos/mf-inventory-portal 1.1.2 → 1.1.3-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 (54) hide show
  1. package/dist/{App-BhEtjLqO.js → App-Y70p19Gp.js} +1 -1
  2. package/dist/ApprovalView-BVyt_mNb.js +219 -0
  3. package/dist/{BindingsDialog-CX3Hu_r6.js → BindingsDialog-BULs3OTl.js} +4 -4
  4. package/dist/{BindingsPicker-BbinQ8Hl.js → BindingsPicker-DpAk5M6U.js} +1 -1
  5. package/dist/{BindingsTable-DxlSz6Ev.js → BindingsTable-DzQzbNFw.js} +4 -4
  6. package/dist/ClosingDraftView-BpRIs-2B.js +1676 -0
  7. package/dist/{ClosingTemplateView-CB9_JOl4.js → ClosingTemplateView-B-kRLpTZ.js} +487 -473
  8. package/dist/{DeliveryOrderPrintPreview-BlE3fIAT.js → DeliveryOrderPrintPreview-CSZndykZ.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DxKFFyWs.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CDvzOUsD.js} +3 -3
  10. package/dist/{FmMultiselectDialog-DcviKwNR.js → FmMultiselectDialog-DSJ2MFmR.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CepHeClt.js → FmUnitInput.vue_vue_type_script_setup_true_lang-XUPKPUMs.js} +1 -1
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Dg8VdQzg.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-c0_HwN-t.js} +1 -1
  13. package/dist/{IngredientGroupView-EE8lN8JL.js → IngredientGroupView-DQ-EBjd-.js} +2 -2
  14. package/dist/{IngredientsView-BkDpHVvn.js → IngredientsView-CQgltl5_.js} +4 -4
  15. package/dist/{IntegrationView-Bj7sb1gO.js → IntegrationView-CNcVeIFO.js} +1170 -1141
  16. package/dist/{InventoryBindingForm-BkazprFH.js → InventoryBindingForm-BuKXc_Sa.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BbQqYyzL.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DQaufX7H.js} +3 -3
  18. package/dist/{InventoryBindingSummary-D0XiOdR4.js → InventoryBindingSummary-D68_zXou.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Pf8BPDZw.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-d2nPZ3lt.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D2Tx3xSj.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DkRWn5u5.js} +1 -1
  21. package/dist/{PublishView-BUIcrw8m.js → PublishView-CpQ71JIU.js} +18 -18
  22. package/dist/{PurchaseOrderPrintPreview-lO7Bilm5.js → PurchaseOrderPrintPreview-DZo7aY7C.js} +1 -1
  23. package/dist/{ReceiveRequestView-BZV-8Ib3.js → ReceiveRequestView-C4546P-_.js} +697 -694
  24. package/dist/{RecipeView-2Tm12Zuk.js → RecipeView-BRwqCYV9.js} +3 -3
  25. package/dist/{StockView-DaWS_HQl.js → StockView-cvnJr_oX.js} +6 -6
  26. package/dist/{SupplierView-nfxqynuY.js → SupplierView-DwS-SiXQ.js} +648 -646
  27. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-B2NLmIxb.js +2280 -0
  28. package/dist/{TransferTemplateView-CGjfCELA.js → TransferTemplateView-CGKjXln1.js} +6 -6
  29. package/dist/{UnitView-Cm5WuuEN.js → UnitView-BabatKhp.js} +3 -3
  30. package/dist/{WarehouseView-BSLX0g3B.js → WarehouseView-BtEuG-Iw.js} +1 -1
  31. package/dist/api/duplicate-template.d.ts +3 -3
  32. package/dist/api/netsuite.d.ts +1 -0
  33. package/dist/{app-CnDLBWW7.js → app-cN81pzZd.js} +23769 -23459
  34. package/dist/app.d.ts +9 -0
  35. package/dist/app.js +5 -5
  36. package/dist/{decimal-DmezA5YT.js → decimal-CC3JyA3f.js} +1 -1
  37. package/dist/{format-unit-display-Bcq6wldv.js → format-unit-display-B7SHcLn9.js} +216 -202
  38. package/dist/{index-C476dvi7.js → index-D-5LSVee.js} +2686 -2650
  39. package/dist/{index-R97nRHsF.js → index-DldWujwI.js} +1 -1
  40. package/dist/{stock-Dd0YSjSF.js → stock-DBkA5bTB.js} +1 -1
  41. package/dist/style.css +1 -1
  42. package/dist/{supplier-C4s3SHui.js → supplier-C_xP9tgW.js} +1 -1
  43. package/dist/tsconfig.app.tsbuildinfo +1 -1
  44. package/dist/{use-ingredient-select-dialog-DaXBOLhz.js → use-ingredient-select-dialog-mXti22kH.js} +1 -1
  45. package/dist/{use-inventory-binding-dialog-CsFwoUbg.js → use-inventory-binding-dialog-0b-ngROc.js} +1 -1
  46. package/dist/views/closing-draft/components/closing-draft-action/RefreshBalanceAction.vue.d.ts +19 -0
  47. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
  48. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +8 -0
  49. package/dist/views/receive-request/composables/fn.d.ts +32 -0
  50. package/dist/{vue-i18n-CdkMdZ30.js → vue-i18n-DB3u4gQS.js} +492 -492
  51. package/package.json +4 -4
  52. package/dist/ApprovalView-BHIVSsbz.js +0 -213
  53. package/dist/ClosingDraftView-B5gQ2k-T.js +0 -1520
  54. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-g74nRiM0.js +0 -2213
@@ -1,5 +1,5 @@
1
1
  import { defineStore as y } from "pinia";
2
- import { a as S, a2 as b } from "./app-CnDLBWW7.js";
2
+ import { a as S, a2 as b } from "./app-cN81pzZd.js";
3
3
  import { useDialog as A } from "@feedmepos/ui-library";
4
4
  import { useI18n as I } from "@feedmepos/mf-common";
5
5
  const h = y(
@@ -1,4 +1,4 @@
1
- import { a as P, a2 as g } from "./app-CnDLBWW7.js";
1
+ import { a as P, a2 as g } from "./app-cN81pzZd.js";
2
2
  import { useDialog as E } from "@feedmepos/ui-library";
3
3
  function B() {
4
4
  const u = P(), _ = E();
@@ -0,0 +1,19 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ draft: FdoClosingDraft;
3
+ onCancel: () => void;
4
+ onFinished: (date: string) => void;
5
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ draft: FdoClosingDraft;
7
+ onCancel: () => void;
8
+ onFinished: (date: string) => void;
9
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
10
+ export default _default;
11
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
+ type __VLS_TypePropsToRuntimeProps<T> = {
13
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
14
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
+ } : {
16
+ type: import('vue').PropType<T[K]>;
17
+ required: true;
18
+ };
19
+ };
@@ -6,6 +6,7 @@ export declare const useClosingDraftActions: import("pinia").StoreDefinition<"cl
6
6
  markAsFailed: (draft: FdoClosingDraft, onFinished?: Function) => void;
7
7
  syncDraft: (draft: FdoClosingDraft, onFinished?: Function) => Promise<void>;
8
8
  exportDraft: (draft: FdoClosingDraft, skuBalances?: FdoSkuBalance[]) => Promise<void>;
9
+ refreshBalance: (draft: FdoClosingDraft, onCancel?: Function, onFinished?: Function) => Promise<void>;
9
10
  viewClosingDraftShow: import("vue").Ref<boolean, boolean>;
10
11
  viewClosingDraftProps: import("vue").Ref<any, any>;
11
12
  }, "viewClosingDraftShow" | "viewClosingDraftProps">>, Pick<{
@@ -16,6 +17,7 @@ export declare const useClosingDraftActions: import("pinia").StoreDefinition<"cl
16
17
  markAsFailed: (draft: FdoClosingDraft, onFinished?: Function) => void;
17
18
  syncDraft: (draft: FdoClosingDraft, onFinished?: Function) => Promise<void>;
18
19
  exportDraft: (draft: FdoClosingDraft, skuBalances?: FdoSkuBalance[]) => Promise<void>;
20
+ refreshBalance: (draft: FdoClosingDraft, onCancel?: Function, onFinished?: Function) => Promise<void>;
19
21
  viewClosingDraftShow: import("vue").Ref<boolean, boolean>;
20
22
  viewClosingDraftProps: import("vue").Ref<any, any>;
21
23
  }, never>, Pick<{
@@ -26,6 +28,7 @@ export declare const useClosingDraftActions: import("pinia").StoreDefinition<"cl
26
28
  markAsFailed: (draft: FdoClosingDraft, onFinished?: Function) => void;
27
29
  syncDraft: (draft: FdoClosingDraft, onFinished?: Function) => Promise<void>;
28
30
  exportDraft: (draft: FdoClosingDraft, skuBalances?: FdoSkuBalance[]) => Promise<void>;
31
+ refreshBalance: (draft: FdoClosingDraft, onCancel?: Function, onFinished?: Function) => Promise<void>;
29
32
  viewClosingDraftShow: import("vue").Ref<boolean, boolean>;
30
33
  viewClosingDraftProps: import("vue").Ref<any, any>;
31
- }, "approveDraft" | "rejectDraft" | "markAsFailed" | "viewDraft" | "closeDraftDialog" | "syncDraft" | "exportDraft">>;
34
+ }, "approveDraft" | "rejectDraft" | "markAsFailed" | "viewDraft" | "closeDraftDialog" | "syncDraft" | "exportDraft" | "refreshBalance">>;
@@ -1,5 +1,12 @@
1
1
  import type { RevisionIdMeta } from '@feedmepos/inventory-core';
2
2
  import type { PO_SCOPE } from '../../composables/use-receive-request-form';
3
+ import type { FdoDecimal } from '@feedmepos/core/entity';
4
+ export interface ReceivedDto {
5
+ key: string;
6
+ received: FdoDecimal;
7
+ total: FdoDecimal;
8
+ remaining: FdoDecimal;
9
+ }
3
10
  export interface TransferDetailsProps {
4
11
  poRequest?: FdoPurchaseOrderRequest;
5
12
  purchaseOrder?: FdoPurchaseOrder & RevisionIdMeta;
@@ -9,6 +16,7 @@ export interface TransferDetailsProps {
9
16
  canResubmit?: boolean;
10
17
  canApprove?: boolean;
11
18
  scope: PO_SCOPE;
19
+ receivedMap: Record<string, ReceivedDto>;
12
20
  }
13
21
  export interface TransferDetailsEvents {
14
22
  (event: 'update:show', show: boolean): void;
@@ -0,0 +1,32 @@
1
+ import type { ReceivedDto } from '../components/transfer-details/TransferDetailsProps';
2
+ export declare function generatedPOReceivedMap(po: FdoPurchaseOrder): Record<string, ReceivedDto>;
3
+ export declare function validateReceivedStatus(dto: ReceivedDto): {
4
+ isPartialReceive?: boolean;
5
+ isFullReceive?: boolean;
6
+ isNoReceive?: boolean;
7
+ isOverReceive?: boolean;
8
+ };
9
+ /**
10
+ * Combination of order statuses based on partial/over-receive flags:
11
+ *
12
+ * Processing:
13
+ * - Partial: Partial fulfilled
14
+ * - Over: Processing
15
+ * - Partial + Over: Partial fulfilled
16
+ *
17
+ * Receiving:
18
+ * - Partial: Partial received
19
+ * - Over: Receiving
20
+ * - Partial + Over: Partial received
21
+ *
22
+ * Completed:
23
+ * - Partial: Completed
24
+ * - Over: Completed
25
+ * - Partial + Over: Completed
26
+ *
27
+ * Closed:
28
+ * - Partial: Closed
29
+ * - Over: Closed
30
+ * - Partial + Over: Closed
31
+ */
32
+ export declare function orderStatusCombination(status: string, isPOPartialReceive: boolean, isPOOverReceive: boolean): string;