@feedmepos/mf-inventory-portal 0.0.25-dev.9 → 0.0.26-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 (116) hide show
  1. package/dist/{App-9zSE_swt.js → App-CipfIdtR.js} +71 -72
  2. package/dist/ApprovalView-IC33yBg7.js +143 -0
  3. package/dist/{BindingsDialog-eGbOIQkw.js → BindingsDialog-EN6Kbnu7.js} +2 -2
  4. package/dist/{BindingsPicker-CVXrd29s.js → BindingsPicker-DQ_LEoqq.js} +3 -3
  5. package/dist/BindingsTable-DGXpAyM4.js +120 -0
  6. package/dist/ClosingDraftView-DR9xsW9I.js +1348 -0
  7. package/dist/ClosingTemplateView-CC1T7ovX.js +1804 -0
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C9un0wCK.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CovzlB-s.js} +43 -43
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BRSABJnM.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BxEtsFXp.js} +29 -29
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DeRvrF7O.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-B8H6vFJ5.js} +1 -1
  11. package/dist/{IngredientGroupView-ZWCOAljO.js → IngredientGroupView-DRPbXH8d.js} +24 -24
  12. package/dist/IngredientsView-DSHcH30X.js +1731 -0
  13. package/dist/{IntegrationView-DO3Ambro.js → IntegrationView-BgACk-jP.js} +605 -669
  14. package/dist/{InventoryBindingForm-BjtFP29c.js → InventoryBindingForm-Fs-CHoT-.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CFMZ4VsK.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DVHQjAEC.js} +63 -63
  16. package/dist/{InventoryBindingSummary-C6DkVX-B.js → InventoryBindingSummary-CHWMtGtk.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-nb1t6u2V.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cu9V-8Cf.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BcMAXo4F.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CyVRCAqv.js} +12 -12
  19. package/dist/PublishView-CI7o5a0F.js +222 -0
  20. package/dist/{PurchaseOrderPrintPreview-_MCAsdw9.js → PurchaseOrderPrintPreview-CO4a811o.js} +1 -1
  21. package/dist/ReceiveRequestView-KH5wY5BA.js +2562 -0
  22. package/dist/{RecipeView-dmmjklwh.js → RecipeView-DxVbUxOG.js} +47 -47
  23. package/dist/StockView-CiHPAaYh.js +1840 -0
  24. package/dist/{SupplierView-CO5460uC.js → SupplierView-DPj87kld.js} +448 -461
  25. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CfPPCFh8.js +1566 -0
  26. package/dist/TransferTemplateView-3W29v8hd.js +1420 -0
  27. package/dist/{UnitView-DbYzxCXF.js → UnitView-WCtNQFf8.js} +23 -23
  28. package/dist/{WarehouseView-BII4SEVC.js → WarehouseView-tgFFbQY7.js} +40 -40
  29. package/dist/api/bill.d.ts +12 -2
  30. package/dist/api/closing-draft.d.ts +1 -0
  31. package/dist/api/inventory.d.ts +8 -7
  32. package/dist/api/netsuite.d.ts +22 -5
  33. package/dist/api/purchase-order.d.ts +6 -1
  34. package/dist/api/stock.d.ts +1 -0
  35. package/dist/{app-IM1yJnE8.js → app-Ba80HxT3.js} +38448 -34777
  36. package/dist/app.d.ts +965 -120
  37. package/dist/app.js +1 -1
  38. package/dist/components/FmDroppableField.vue.d.ts +1 -1
  39. package/dist/components/FmMultiselectDialog.d.ts +23 -0
  40. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
  41. package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
  42. package/dist/{decimal-DQUpCN-B.js → decimal-DFqusYHB.js} +1 -1
  43. package/dist/{format-unit-display-COuIZISg.js → format-unit-display-Bsod5Ra6.js} +232 -238
  44. package/dist/helper/country.d.ts +1 -0
  45. package/dist/helper/fuzzy.d.ts +1 -1
  46. package/dist/helper/number.d.ts +1 -1
  47. package/dist/index-0ekVGPtB.js +12197 -0
  48. package/dist/index-ZAEVHtfa.js +84 -0
  49. package/dist/{stock-BJUTiXXk.js → stock-Cn6EQvTz.js} +29 -25
  50. package/dist/stores/feature.d.ts +11 -6
  51. package/dist/stores/helper/generate-backend-urls.d.ts +0 -1
  52. package/dist/stores/integration/index.d.ts +2 -0
  53. package/dist/stores/integration/netsuite.d.ts +22 -5
  54. package/dist/stores/inventory.d.ts +141 -8
  55. package/dist/stores/location.d.ts +0 -9
  56. package/dist/stores/stock.d.ts +5 -0
  57. package/dist/stores/warehouse.d.ts +4 -7
  58. package/dist/style.css +1 -1
  59. package/dist/{supplier-CM-qQVyI.js → supplier-P1gi71dg.js} +4 -4
  60. package/dist/tsconfig.app.tsbuildinfo +1 -1
  61. package/dist/{use-ingredient-select-dialog-Cn79xFNg.js → use-ingredient-select-dialog-BW5imbB5.js} +1 -1
  62. package/dist/{use-inventory-binding-dialog-zwOG19YV.js → use-inventory-binding-dialog-BYxb8nXg.js} +1 -1
  63. package/dist/views/adjustment-template/wastage-template/actions.d.ts +0 -24
  64. package/dist/views/adjustment-template/wastage-template/table.d.ts +0 -24
  65. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +92 -8
  66. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
  67. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +552 -48
  68. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +1 -1
  69. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  70. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +12 -36
  71. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +12 -36
  72. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +3 -3
  73. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  74. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  75. package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +2 -0
  76. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +4 -1
  77. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +2 -0
  78. package/dist/views/receive-request/components/transfer-form/SparkIcon.vue.d.ts +1 -1
  79. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +529 -489
  80. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +8 -4
  81. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +382 -2
  82. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +5 -2
  83. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1238 -972
  84. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1080 -1003
  85. package/dist/views/receive-request/import/XilnexImportDialog.vue.d.ts +22 -0
  86. package/dist/views/receive-request/import/XilnexImportForm.vue.d.ts +17 -0
  87. package/dist/views/receive-request/import/XilnexResult.vue.d.ts +17 -0
  88. package/dist/views/receive-request/import/export.d.ts +14 -0
  89. package/dist/views/receive-request/import/props.d.ts +7 -0
  90. package/dist/views/stock/components/StockRecordCard.vue.d.ts +6 -1
  91. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +6 -4
  92. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +220 -0
  93. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +0 -8
  94. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +0 -1
  95. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +7 -2
  96. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +530 -530
  97. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +530 -530
  98. package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +305 -0
  99. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -14
  100. package/dist/vue-i18n-CjtRsQMl.js +2365 -0
  101. package/package.json +7 -7
  102. package/dist/ApprovalView-C2tg-wsm.js +0 -138
  103. package/dist/BindingsTable-CCsQEFnu.js +0 -145
  104. package/dist/ClosingDraftView-BI8b3CJ9.js +0 -1225
  105. package/dist/ClosingTemplateView-miJnC-ML.js +0 -1859
  106. package/dist/IngredientsView-5-pSX6y_.js +0 -1718
  107. package/dist/PublishView-DOMQdIJ7.js +0 -192
  108. package/dist/ReceiveRequestView-902hWGtz.js +0 -1877
  109. package/dist/StockView-C4lEYLXU.js +0 -7847
  110. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-D6sZDCEY.js +0 -1328
  111. package/dist/TransferTemplateView-C9UwNTnY.js +0 -1371
  112. package/dist/components/FmAutocompleteTextField.vue.d.ts +0 -31
  113. package/dist/feature-DMBVVBsQ.js +0 -1005
  114. package/dist/index-CIrsMt6f.js +0 -35546
  115. package/dist/views/dev/components/AutocompleteTextField.vue.d.ts +0 -2
  116. package/dist/vue-i18n-CzPFJ9JY.js +0 -2365
@@ -0,0 +1,22 @@
1
+ import type { XilnexImportDialogProps } from './props';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<XilnexImportDialogProps>>, {
3
+ validateInputs: () => void;
4
+ resetInputsValidation: () => void;
5
+ resetInputs: () => void;
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ "update:show": (show: boolean) => void;
8
+ submitted: () => void;
9
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<XilnexImportDialogProps>>> & Readonly<{
10
+ "onUpdate:show"?: ((show: boolean) => any) | undefined;
11
+ onSubmitted?: (() => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
13
+ export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
@@ -0,0 +1,17 @@
1
+ export interface XilnexImportCreateResult {
2
+ type: 'create';
3
+ poItems: FdoPurchaseOrderItem[];
4
+ excelSheetName: string;
5
+ errors: string[];
6
+ }
7
+ export type XilnexImportResult = {
8
+ invalidExcel: boolean;
9
+ invalidExcelMessage?: string;
10
+ importCreateResult: XilnexImportCreateResult[];
11
+ };
12
+ declare const _default: import("vue").DefineComponent<{}, {
13
+ validateInputs: () => void;
14
+ resetInputsValidation: () => void;
15
+ resetInputs: () => void;
16
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
17
+ export default _default;
@@ -0,0 +1,17 @@
1
+ export interface AdjustmentTemplateImportItemProps {
2
+ type: 'create' | 'update';
3
+ name: string;
4
+ items?: FdoPurchaseOrderItem[] | null | undefined;
5
+ errors: string[];
6
+ }
7
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<AdjustmentTemplateImportItemProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<AdjustmentTemplateImportItemProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
+ export default _default;
9
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
10
+ type __VLS_TypePropsToRuntimeProps<T> = {
11
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
12
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
13
+ } : {
14
+ type: import('vue').PropType<T[K]>;
15
+ required: true;
16
+ };
17
+ };
@@ -0,0 +1,14 @@
1
+ import type { WorkBook, WorkSheet } from 'xlsx';
2
+ import type { XilnexImportResult } from './XilnexImportForm.vue';
3
+ interface XilnexItemRow {
4
+ item_name: string;
5
+ 'transfer_quantity(uom)': string;
6
+ uom: string;
7
+ scanned_code: string;
8
+ }
9
+ export declare function worksheetToItemRow(sheet: WorkSheet): Array<{
10
+ index: number;
11
+ data: XilnexItemRow;
12
+ }>;
13
+ export declare function getItemToCreate(workbook: WorkBook): XilnexImportResult;
14
+ export {};
@@ -0,0 +1,7 @@
1
+ export interface XilnexImportDialogProps {
2
+ show?: boolean;
3
+ }
4
+ export interface XilnexImportDialogEvents {
5
+ (event: 'update:show', show: boolean): void;
6
+ (event: 'submitted'): void;
7
+ }
@@ -115,6 +115,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
115
115
  amount: number;
116
116
  precision: number;
117
117
  } | null | undefined;
118
+ canRefund?: boolean | null | undefined;
118
119
  name: string;
119
120
  key: string;
120
121
  slotPrefix: string;
@@ -218,6 +219,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
218
219
  } | null | undefined;
219
220
  membership?: {
220
221
  name?: string | null | undefined;
222
+ source?: string | null | undefined;
223
+ title?: string[] | null | undefined;
221
224
  level?: number | null | undefined;
222
225
  phoneNumber?: string | null | undefined;
223
226
  balance?: number | null | undefined;
@@ -272,6 +275,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
272
275
  };
273
276
  level: number;
274
277
  }> | null | undefined;
278
+ canRefund?: boolean | null | undefined;
275
279
  pickupPoint?: {
276
280
  name: string;
277
281
  address: string;
@@ -422,6 +426,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
422
426
  }> | null | undefined;
423
427
  productId?: string | null | undefined;
424
428
  servedAt?: string | null | undefined;
429
+ collectedAt?: string | null | undefined;
425
430
  variantSelected?: {
426
431
  name: string[];
427
432
  combinationKey: string;
@@ -730,7 +735,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
730
735
  } | null | undefined;
731
736
  paymentGateway?: {
732
737
  response?: Record<string, any> | null | undefined;
733
- key: "FEEDME" | "REVENUE_MONSTER" | "FEEDME_MEMBER_CREDIT" | "RAZER_MERCHANT_SERVICE" | "E_GHL" | "FEEDME_TERMINAL" | "MACAU_PASS" | "NETS";
738
+ key: "FEEDME" | "REVENUE_MONSTER" | "FEEDME_MEMBER_CREDIT" | "RAZER_MERCHANT_SERVICE" | "E_GHL" | "FEEDME_TERMINAL" | "MACAU_PASS" | "NETS" | "FEEDME_CARD";
734
739
  transactionId: string;
735
740
  } | null | undefined;
736
741
  reference?: string | null | undefined;
@@ -1,7 +1,6 @@
1
1
  import type { AdjustedItemFormProps } from './AdjustedItemFormProps';
2
2
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<AdjustedItemFormProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
3
  "update:modelValue": (mv: {
4
- remark?: string | null | undefined;
5
4
  measurement?: {
6
5
  id: string;
7
6
  name: string;
@@ -11,6 +10,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
11
10
  precision: number;
12
11
  };
13
12
  } | null | undefined;
13
+ remark?: string | null | undefined;
14
+ ref?: string | null | undefined;
14
15
  physicalAmounts?: {
15
16
  measurement?: {
16
17
  id: string;
@@ -47,7 +48,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
47
48
  };
48
49
  id: string;
49
50
  doc: {
50
- customAttributes?: Record<string, any> | null | undefined;
51
51
  trackingMeasurement?: string | null | undefined;
52
52
  convert?: {
53
53
  measurement?: string | null | undefined;
@@ -91,6 +91,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
91
91
  low: number;
92
92
  mid: number;
93
93
  } | null | undefined;
94
+ customAttributes?: Record<string, any> | null | undefined;
94
95
  unit: {
95
96
  _id: string;
96
97
  name: string;
@@ -114,7 +115,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
114
115
  "click:delete": () => void;
115
116
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<AdjustedItemFormProps>>> & Readonly<{
116
117
  "onUpdate:modelValue"?: ((mv: {
117
- remark?: string | null | undefined;
118
118
  measurement?: {
119
119
  id: string;
120
120
  name: string;
@@ -124,6 +124,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
124
124
  precision: number;
125
125
  };
126
126
  } | null | undefined;
127
+ remark?: string | null | undefined;
128
+ ref?: string | null | undefined;
127
129
  physicalAmounts?: {
128
130
  measurement?: {
129
131
  id: string;
@@ -160,7 +162,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
160
162
  };
161
163
  id: string;
162
164
  doc: {
163
- customAttributes?: Record<string, any> | null | undefined;
164
165
  trackingMeasurement?: string | null | undefined;
165
166
  convert?: {
166
167
  measurement?: string | null | undefined;
@@ -204,6 +205,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
204
205
  low: number;
205
206
  mid: number;
206
207
  } | null | undefined;
208
+ customAttributes?: Record<string, any> | null | undefined;
207
209
  unit: {
208
210
  _id: string;
209
211
  name: string;
@@ -0,0 +1,220 @@
1
+ import { type Row } from '@tanstack/vue-table';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
3
+ row: Row<unknown>;
4
+ disabled?: boolean | undefined;
5
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ "update:item": (item: {
7
+ measurement?: {
8
+ id: string;
9
+ name: string;
10
+ abbrev: string;
11
+ conversion: {
12
+ amount: number;
13
+ precision: number;
14
+ };
15
+ } | null | undefined;
16
+ id?: string | null | undefined;
17
+ externalId?: string | null | undefined;
18
+ totalCost?: {
19
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
20
+ amount: number;
21
+ precision: number;
22
+ } | null | undefined;
23
+ minimumQuantity?: {
24
+ amount: number;
25
+ precision: number;
26
+ } | null | undefined;
27
+ maximumQuantity?: {
28
+ amount: number;
29
+ precision: number;
30
+ } | null | undefined;
31
+ sku: {
32
+ trackingMeasurement?: string | null | undefined;
33
+ convert?: {
34
+ measurement?: string | null | undefined;
35
+ inventoryBindings?: {
36
+ measurement?: {
37
+ id: string;
38
+ name: string;
39
+ abbrev: string;
40
+ conversion: {
41
+ amount: number;
42
+ precision: number;
43
+ };
44
+ } | null | undefined;
45
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
46
+ amount: {
47
+ amount: number;
48
+ precision: number;
49
+ };
50
+ id: string;
51
+ }[] | null | undefined;
52
+ } | null | undefined;
53
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
54
+ defaultCost?: {
55
+ measurement?: {
56
+ id: string;
57
+ name: string;
58
+ abbrev: string;
59
+ conversion: {
60
+ amount: number;
61
+ precision: number;
62
+ };
63
+ } | null | undefined;
64
+ costPerUnit: {
65
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
66
+ amount: number;
67
+ precision: number;
68
+ };
69
+ } | null | undefined;
70
+ operationalGroup?: string | null | undefined;
71
+ thresholds?: {
72
+ low: number;
73
+ mid: number;
74
+ } | null | undefined;
75
+ customAttributes?: Record<string, any> | null | undefined;
76
+ unit: {
77
+ _id: string;
78
+ name: string;
79
+ abbrev: string;
80
+ precision: number;
81
+ measurements: {
82
+ id: string;
83
+ name: string;
84
+ abbrev: string;
85
+ conversion: {
86
+ amount: number;
87
+ precision: number;
88
+ };
89
+ }[];
90
+ };
91
+ code: string;
92
+ _id: string;
93
+ name: string;
94
+ };
95
+ code: string;
96
+ quantity: {
97
+ amount: number;
98
+ precision: number;
99
+ };
100
+ name: string;
101
+ quantityStep: {
102
+ amount: number;
103
+ precision: number;
104
+ };
105
+ }) => void;
106
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
107
+ row: Row<unknown>;
108
+ disabled?: boolean | undefined;
109
+ }>>> & Readonly<{
110
+ "onUpdate:item"?: ((item: {
111
+ measurement?: {
112
+ id: string;
113
+ name: string;
114
+ abbrev: string;
115
+ conversion: {
116
+ amount: number;
117
+ precision: number;
118
+ };
119
+ } | null | undefined;
120
+ id?: string | null | undefined;
121
+ externalId?: string | null | undefined;
122
+ totalCost?: {
123
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
124
+ amount: number;
125
+ precision: number;
126
+ } | null | undefined;
127
+ minimumQuantity?: {
128
+ amount: number;
129
+ precision: number;
130
+ } | null | undefined;
131
+ maximumQuantity?: {
132
+ amount: number;
133
+ precision: number;
134
+ } | null | undefined;
135
+ sku: {
136
+ trackingMeasurement?: string | null | undefined;
137
+ convert?: {
138
+ measurement?: string | null | undefined;
139
+ inventoryBindings?: {
140
+ measurement?: {
141
+ id: string;
142
+ name: string;
143
+ abbrev: string;
144
+ conversion: {
145
+ amount: number;
146
+ precision: number;
147
+ };
148
+ } | null | undefined;
149
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
150
+ amount: {
151
+ amount: number;
152
+ precision: number;
153
+ };
154
+ id: string;
155
+ }[] | null | undefined;
156
+ } | null | undefined;
157
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
158
+ defaultCost?: {
159
+ measurement?: {
160
+ id: string;
161
+ name: string;
162
+ abbrev: string;
163
+ conversion: {
164
+ amount: number;
165
+ precision: number;
166
+ };
167
+ } | null | undefined;
168
+ costPerUnit: {
169
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
170
+ amount: number;
171
+ precision: number;
172
+ };
173
+ } | null | undefined;
174
+ operationalGroup?: string | null | undefined;
175
+ thresholds?: {
176
+ low: number;
177
+ mid: number;
178
+ } | null | undefined;
179
+ customAttributes?: Record<string, any> | null | undefined;
180
+ unit: {
181
+ _id: string;
182
+ name: string;
183
+ abbrev: string;
184
+ precision: number;
185
+ measurements: {
186
+ id: string;
187
+ name: string;
188
+ abbrev: string;
189
+ conversion: {
190
+ amount: number;
191
+ precision: number;
192
+ };
193
+ }[];
194
+ };
195
+ code: string;
196
+ _id: string;
197
+ name: string;
198
+ };
199
+ code: string;
200
+ quantity: {
201
+ amount: number;
202
+ precision: number;
203
+ };
204
+ name: string;
205
+ quantityStep: {
206
+ amount: number;
207
+ precision: number;
208
+ };
209
+ }) => any) | undefined;
210
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
211
+ export default _default;
212
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
213
+ type __VLS_TypePropsToRuntimeProps<T> = {
214
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
215
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
216
+ } : {
217
+ type: import('vue').PropType<T[K]>;
218
+ required: true;
219
+ };
220
+ };
@@ -6,16 +6,8 @@ export type ActiveLocationsCount = {
6
6
  export declare function useTemplateEnabledLocations2(controller: {
7
7
  getLocations(): FdoInventoryLocation[] | undefined | null;
8
8
  setLocations(locations: FdoInventoryLocation[] | undefined | null): void;
9
- getLocationTags(): string[] | undefined | null;
10
- setLocationTags(tags: string[] | undefined | null): void;
11
9
  }): {
12
10
  promptSelectLocations: () => void;
13
11
  columnDefs: ColumnDef<ActiveLocationsCount>[];
14
12
  rowData: import("vue").ComputedRef<ActiveLocationsCount[]>;
15
- hasCustomTag: import("vue").ComputedRef<boolean>;
16
- locationTagModel: import("vue").Ref<string, string>;
17
- locationTagAutocomplete: import("vue").ComputedRef<string[]>;
18
- pushLocationTag: () => void;
19
- removeLocationTag: (tag: string) => void;
20
- locationTagError: import("vue").ComputedRef<string | null>;
21
13
  };
@@ -12,7 +12,6 @@ export declare function useTemplateEnabledLocations(controller: {
12
12
  acceptRequest: boolean;
13
13
  dbName: string;
14
14
  doc: {
15
- customAttributes?: Record<string, any> | null | undefined;
16
15
  _id: string;
17
16
  businessId: string;
18
17
  profile: {
@@ -13,6 +13,9 @@ export declare function useTransferTemplateItems(controller: {
13
13
  get items(): FdoPurchaseOrderItem[];
14
14
  get supplier(): FdoPurchaseOrderSupplier | undefined | null;
15
15
  get transferType(): PurchaseOrderTransactionType;
16
+ duplicateItem: (item: Omit<FdoPurchaseOrderTemplateItem, 'id'> & {
17
+ id: string;
18
+ }) => void;
16
19
  updateItem: (item: FdoPurchaseOrderTemplateItem) => void;
17
20
  deleteItem: (item: FdoPurchaseOrderTemplateItem) => void;
18
21
  get disabled(): boolean;
@@ -27,6 +30,8 @@ export declare function useTransferTemplateItems(controller: {
27
30
  precision: number;
28
31
  };
29
32
  } | null | undefined;
33
+ id?: string | null | undefined;
34
+ externalId?: string | null | undefined;
30
35
  totalCost?: {
31
36
  currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
32
37
  amount: number;
@@ -41,7 +46,6 @@ export declare function useTransferTemplateItems(controller: {
41
46
  precision: number;
42
47
  } | null | undefined;
43
48
  sku: {
44
- customAttributes?: Record<string, any> | null | undefined;
45
49
  trackingMeasurement?: string | null | undefined;
46
50
  convert?: {
47
51
  measurement?: string | null | undefined;
@@ -85,6 +89,7 @@ export declare function useTransferTemplateItems(controller: {
85
89
  low: number;
86
90
  mid: number;
87
91
  } | null | undefined;
92
+ customAttributes?: Record<string, any> | null | undefined;
88
93
  unit: {
89
94
  _id: string;
90
95
  name: string;
@@ -105,11 +110,11 @@ export declare function useTransferTemplateItems(controller: {
105
110
  name: string;
106
111
  };
107
112
  code: string;
108
- name: string;
109
113
  quantity: {
110
114
  amount: number;
111
115
  precision: number;
112
116
  };
117
+ name: string;
113
118
  quantityStep: {
114
119
  amount: number;
115
120
  precision: number;