@feedmepos/mf-inventory-portal 1.1.2 → 1.1.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 (55) hide show
  1. package/dist/{App-BhEtjLqO.js → App-cNDvnIR8.js} +1 -1
  2. package/dist/ApprovalView-DCZBiIEO.js +219 -0
  3. package/dist/{BindingsDialog-CX3Hu_r6.js → BindingsDialog-D76F8fvx.js} +4 -4
  4. package/dist/{BindingsPicker-BbinQ8Hl.js → BindingsPicker-CdpKkspS.js} +1 -1
  5. package/dist/{BindingsTable-DxlSz6Ev.js → BindingsTable-YQvN_pYF.js} +4 -4
  6. package/dist/ClosingDraftView-CCb0FAzW.js +1676 -0
  7. package/dist/{ClosingTemplateView-CB9_JOl4.js → ClosingTemplateView-9UUUma7y.js} +487 -473
  8. package/dist/{DeliveryOrderPrintPreview-BlE3fIAT.js → DeliveryOrderPrintPreview-kIAwU5VW.js} +1 -1
  9. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DxKFFyWs.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DR-pjb50.js} +3 -3
  10. package/dist/{FmMultiselectDialog-DcviKwNR.js → FmMultiselectDialog-C3i332De.js} +1 -1
  11. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CepHeClt.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C4wdN-If.js} +1 -1
  12. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Dg8VdQzg.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-B5d73yc2.js} +1 -1
  13. package/dist/{IngredientGroupView-EE8lN8JL.js → IngredientGroupView-BvDH-C9a.js} +2 -2
  14. package/dist/{IngredientsView-BkDpHVvn.js → IngredientsView-CC4_GIOh.js} +4 -4
  15. package/dist/{IntegrationView-Bj7sb1gO.js → IntegrationView-3W5NZOEc.js} +1170 -1141
  16. package/dist/{InventoryBindingForm-BkazprFH.js → InventoryBindingForm-kKVvfrW2.js} +1 -1
  17. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BbQqYyzL.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BxiQ_Bol.js} +3 -3
  18. package/dist/{InventoryBindingSummary-D0XiOdR4.js → InventoryBindingSummary-TwWRus0N.js} +1 -1
  19. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Pf8BPDZw.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C0CFfJnS.js} +1 -1
  20. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-D2Tx3xSj.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DlCQdwHY.js} +1 -1
  21. package/dist/{PublishView-BUIcrw8m.js → PublishView-cRnx8uFn.js} +18 -18
  22. package/dist/{PurchaseOrderPrintPreview-lO7Bilm5.js → PurchaseOrderPrintPreview-DeKzCEvp.js} +1 -1
  23. package/dist/{ReceiveRequestView-BZV-8Ib3.js → ReceiveRequestView-DtaA_-ux.js} +697 -694
  24. package/dist/{RecipeView-2Tm12Zuk.js → RecipeView-CJpKAuD-.js} +3 -3
  25. package/dist/{StockView-DaWS_HQl.js → StockView-ddbQuRf-.js} +6 -6
  26. package/dist/{SupplierView-nfxqynuY.js → SupplierView-CUU8z105.js} +648 -646
  27. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-D5_7PNKj.js +2275 -0
  28. package/dist/{TransferTemplateView-CGjfCELA.js → TransferTemplateView-B43Gg1Aj.js} +6 -6
  29. package/dist/{UnitView-Cm5WuuEN.js → UnitView-DQLfzNGX.js} +3 -3
  30. package/dist/{WarehouseView-BSLX0g3B.js → WarehouseView-CoNcLEuO.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-BQG51ddI.js} +23771 -23461
  34. package/dist/app.d.ts +9 -0
  35. package/dist/app.js +5 -5
  36. package/dist/{decimal-DmezA5YT.js → decimal-B6rJ9w4Z.js} +1 -1
  37. package/dist/{format-unit-display-Bcq6wldv.js → format-unit-display-CfRJYIG_.js} +216 -202
  38. package/dist/{index-C476dvi7.js → index-B6hmI-pG.js} +2686 -2650
  39. package/dist/{index-R97nRHsF.js → index-CqybPlVV.js} +1 -1
  40. package/dist/{stock-Dd0YSjSF.js → stock-B9dC-FDe.js} +1 -1
  41. package/dist/style.css +1 -1
  42. package/dist/{supplier-C4s3SHui.js → supplier-C-gaLIFh.js} +1 -1
  43. package/dist/tsconfig.app.tsbuildinfo +1 -1
  44. package/dist/{use-ingredient-select-dialog-DaXBOLhz.js → use-ingredient-select-dialog-DV9ryvA0.js} +1 -1
  45. package/dist/{use-inventory-binding-dialog-CsFwoUbg.js → use-inventory-binding-dialog-BSQQ21da.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 +8 -0
  50. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +626 -0
  51. package/dist/{vue-i18n-CdkMdZ30.js → vue-i18n-h2uQnw9N.js} +278 -278
  52. package/package.json +4 -4
  53. package/dist/ApprovalView-BHIVSsbz.js +0 -213
  54. package/dist/ClosingDraftView-B5gQ2k-T.js +0 -1520
  55. 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-BQG51ddI.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-BQG51ddI.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
+ };