@feedmepos/mf-inventory-portal 1.1.1 → 1.1.2-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-Cdul4DVH.js → App-BP1j0Wfm.js} +1 -1
  2. package/dist/ApprovalView-DHpMEMs9.js +219 -0
  3. package/dist/{BindingsDialog-D21RTqyc.js → BindingsDialog-DsJ4ULCX.js} +4 -4
  4. package/dist/{BindingsPicker-DNelhJZI.js → BindingsPicker-C8VsQIVc.js} +1 -1
  5. package/dist/{BindingsTable-DOVO7zti.js → BindingsTable-Dv7ovYaR.js} +4 -4
  6. package/dist/ClosingDraftView-m5qcjTQQ.js +1676 -0
  7. package/dist/{ClosingTemplateView-kYmzbqGQ.js → ClosingTemplateView-3RWSh9GP.js} +2 -2
  8. package/dist/{DeliveryOrderPrintPreview-DQE2p5cf.js → DeliveryOrderPrintPreview-BH060kC1.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CbhGb3u9.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CdeaTsc8.js} +3 -3
  10. package/dist/{FmMultiselectDialog-BNZzjBkO.js → FmMultiselectDialog-C-9RO1fp.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-gdS4WDCc.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C57WQ2iL.js} +1 -1
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BO3zT3yM.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CpWvuh5U.js} +1 -1
  13. package/dist/{IngredientGroupView-CiRnpbb7.js → IngredientGroupView-BnPGvMNK.js} +2 -2
  14. package/dist/{IngredientsView-D7DaqK-z.js → IngredientsView-e_HgWPoP.js} +4 -4
  15. package/dist/{IntegrationView-CyCzud6O.js → IntegrationView-DYkTeLDC.js} +1170 -1141
  16. package/dist/{InventoryBindingForm-6LVF_YRG.js → InventoryBindingForm-CBYmaiJ-.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-UZCCBnE9.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DfNnosnL.js} +3 -3
  18. package/dist/{InventoryBindingSummary-I1ofIRa1.js → InventoryBindingSummary-DGjY9q0H.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-tzuv_aP5.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cy0r8-gD.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-B7-CDkiN.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CO4-uU7s.js} +1 -1
  21. package/dist/{PublishView-DU37vabv.js → PublishView-CtPChk5P.js} +18 -18
  22. package/dist/{PurchaseOrderPrintPreview-BLRZbyXM.js → PurchaseOrderPrintPreview-DzivX4_W.js} +1 -1
  23. package/dist/{ReceiveRequestView-D9_TU21k.js → ReceiveRequestView-QCbdf08n.js} +697 -694
  24. package/dist/{RecipeView-42pBGFq6.js → RecipeView-D1NTlI0L.js} +3 -3
  25. package/dist/{StockView-B33PDZbn.js → StockView-CdfztIA6.js} +6 -6
  26. package/dist/{SupplierView-DSaP09tb.js → SupplierView-CCqxkiW7.js} +3 -3
  27. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CKZam-tm.js +2275 -0
  28. package/dist/{TransferTemplateView-ClR645Mx.js → TransferTemplateView-AWGyqDnj.js} +6 -6
  29. package/dist/{UnitView-BATZXvwN.js → UnitView-D49BzCAv.js} +3 -3
  30. package/dist/{WarehouseView-DP1G8r0u.js → WarehouseView-C5H3zy02.js} +1 -1
  31. package/dist/api/netsuite.d.ts +1 -0
  32. package/dist/{app-wxXGNdrT.js → app-F90HTHJ6.js} +17271 -17124
  33. package/dist/app.d.ts +9 -0
  34. package/dist/app.js +5 -5
  35. package/dist/{decimal-CFkRAfzu.js → decimal-DMDoO7Rc.js} +1 -1
  36. package/dist/{format-unit-display-BzH_TIx1.js → format-unit-display-CyqyV_Q1.js} +2 -2
  37. package/dist/{index-BWk7t1iy.js → index-Bq6I3lAV.js} +2686 -2650
  38. package/dist/{index-Dx5ZMDqy.js → index-DGNRUhaL.js} +1 -1
  39. package/dist/{stock-X4tOH6_l.js → stock-D53H7SeD.js} +1 -1
  40. package/dist/style.css +1 -1
  41. package/dist/{supplier-CqCnb-17.js → supplier-CyLpu1Jk.js} +1 -1
  42. package/dist/tsconfig.app.tsbuildinfo +1 -1
  43. package/dist/{use-ingredient-select-dialog-DZdF6HnJ.js → use-ingredient-select-dialog-Cp9Z0ZMi.js} +1 -1
  44. package/dist/{use-inventory-binding-dialog-CHRv8N6x.js → use-inventory-binding-dialog-DlFMZOnP.js} +1 -1
  45. package/dist/views/closing-draft/components/closing-draft-action/RefreshBalanceAction.vue.d.ts +19 -0
  46. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
  47. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +8 -0
  48. package/dist/views/receive-request/composables/fn.d.ts +8 -0
  49. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +626 -0
  50. package/dist/{vue-i18n-D6FTdp1d.js → vue-i18n-CH21Ql15.js} +592 -592
  51. package/package.json +4 -4
  52. package/dist/ApprovalView-Cy3Hw1MP.js +0 -213
  53. package/dist/ClosingDraftView-CvggTaoN.js +0 -1520
  54. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DC3CKvil.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-wxXGNdrT.js";
2
+ import { a as S, a2 as b } from "./app-F90HTHJ6.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-wxXGNdrT.js";
1
+ import { a as P, a2 as g } from "./app-F90HTHJ6.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,8 @@
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
+ };