@feedmepos/mf-inventory-portal 0.0.25-dev.4 → 0.0.25-dev.42

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 (112) hide show
  1. package/dist/{App-DavuRdR4.js → App-BgLyTa3Z.js} +35 -34
  2. package/dist/ApprovalView-UC31qsPD.js +143 -0
  3. package/dist/{BindingsDialog-Ckbhr9x3.js → BindingsDialog-h9el4EvX.js} +6 -6
  4. package/dist/{BindingsPicker-B63gIPVJ.js → BindingsPicker-Cw5AT6xO.js} +8 -8
  5. package/dist/{BindingsTable-5w7_8JzF.js → BindingsTable-Boj3hZup.js} +6 -6
  6. package/dist/ClosingDraftView-DOH7FmkH.js +1348 -0
  7. package/dist/ClosingTemplateView-CG7qArA8.js +1859 -0
  8. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js +34 -0
  9. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-k1J8dWcK.js +211 -0
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-M5pWGm8D.js → FmUnitInput.vue_vue_type_script_setup_true_lang-C5qp_p1A.js} +52 -52
  11. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-DBYsiV9t.js +51 -0
  12. package/dist/{IngredientGroupView-D_1gJl4X.js → IngredientGroupView-CWEw3I3i.js} +14 -14
  13. package/dist/{IngredientsView-Xzt0_AP8.js → IngredientsView-B6EDjPTe.js} +577 -551
  14. package/dist/{IntegrationView-BcF7Qhvw.js → IntegrationView-DiSoM1K8.js} +660 -623
  15. package/dist/{InventoryBindingForm-Cm49VDtA.js → InventoryBindingForm-nKWx-EUW.js} +1 -1
  16. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-EJ0U2gdF.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-BMMD4hwX.js} +96 -96
  17. package/dist/{InventoryBindingSummary-D821YZ-3.js → InventoryBindingSummary-CQnCjIY4.js} +1 -1
  18. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D6jGlkOx.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Cr8DwdOC.js} +1 -1
  19. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-TMYgOcbh.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DnZI3Gfj.js} +15 -15
  20. package/dist/PublishView-DvHW27pI.js +222 -0
  21. package/dist/{PurchaseOrderPrintPreview-DiCTMEY4.js → PurchaseOrderPrintPreview-DSTbRKyh.js} +1 -1
  22. package/dist/ReceiveRequestView-BKRHqSU-.js +2577 -0
  23. package/dist/{RecipeView-k5yiAPop.js → RecipeView-CFTrf0YF.js} +47 -46
  24. package/dist/{index-DhAsCP14.js → StockView-CAPLd29m.js} +3564 -1764
  25. package/dist/{SupplierView-De4_YCtR.js → SupplierView-C_CrS9FM.js} +446 -457
  26. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BWuWB95v.js +1564 -0
  27. package/dist/TransferTemplateView-BaJaiaO9.js +1526 -0
  28. package/dist/{UnitView-DouWNXFf.js → UnitView-DY9nZs1y.js} +14 -14
  29. package/dist/{WarehouseView-RQN-XBeO.js → WarehouseView-CAFxl8K4.js} +332 -314
  30. package/dist/api/closing-draft.d.ts +1 -0
  31. package/dist/api/inventory.d.ts +9 -6
  32. package/dist/api/netsuite.d.ts +21 -4
  33. package/dist/api/purchase-order.d.ts +6 -1
  34. package/dist/api/stock.d.ts +1 -0
  35. package/dist/{app-Bmmin1VX.js → app-Jh5wwLsF.js} +28968 -28906
  36. package/dist/app.js +1 -1
  37. package/dist/components/FmAutocompleteTextField.vue.d.ts +31 -0
  38. package/dist/components/FmCustomAttribute.vue.d.ts +3 -8
  39. package/dist/components/FmLockableField.vue.d.ts +3 -0
  40. package/dist/components/FmMultiselectDialog.d.ts +23 -0
  41. package/dist/components/FmMultiselectDialog.vue.d.ts +20 -3
  42. package/dist/components/FmMultiselectDialogProps.d.ts +2 -0
  43. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
  44. package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
  45. package/dist/{decimal-CZhBTty7.js → decimal-0_acpDRy.js} +1 -1
  46. package/dist/feature-CqX_LtOl.js +1007 -0
  47. package/dist/{format-unit-display-CijRcRSo.js → format-unit-display-CYPC8_oX.js} +335 -328
  48. package/dist/helper/country.d.ts +1 -0
  49. package/dist/helper/fuzzy.d.ts +10 -0
  50. package/dist/index-QcOk4LDU.js +35546 -0
  51. package/dist/{stock-D5lxPBQG.js → stock-BpWEKDoQ.js} +29 -25
  52. package/dist/stores/feature.d.ts +4 -5
  53. package/dist/stores/helper/generate-backend-urls.d.ts +0 -1
  54. package/dist/stores/integration/netsuite.d.ts +21 -4
  55. package/dist/stores/inventory.d.ts +135 -8
  56. package/dist/stores/location.d.ts +100 -0
  57. package/dist/stores/warehouse.d.ts +1 -0
  58. package/dist/style.css +1 -1
  59. package/dist/{supplier-BU1WhNTR.js → supplier-By3gzRHW.js} +1 -1
  60. package/dist/tsconfig.app.tsbuildinfo +1 -1
  61. package/dist/use-ingredient-select-dialog-hkbfGnB9.js +51 -0
  62. package/dist/{use-inventory-binding-dialog-ZneYylve.js → use-inventory-binding-dialog-BFG04MUx.js} +1 -1
  63. package/dist/views/adjustment-template/wastage-template/actions.d.ts +24 -0
  64. package/dist/views/adjustment-template/wastage-template/table.d.ts +24 -0
  65. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
  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 +48 -24
  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 +36 -12
  71. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -12
  72. package/dist/views/dev/components/AutocompleteTextField.vue.d.ts +2 -0
  73. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +3 -3
  74. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  75. package/dist/views/ingredients/composables/use-ingredient-select-dialog.d.ts +16 -0
  76. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  77. package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +2 -0
  78. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +4 -1
  79. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +411 -17
  80. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +6 -2
  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 +6 -3
  83. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +822 -29
  84. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +650 -48
  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 +12 -0
  89. package/dist/views/receive-request/import/props.d.ts +7 -0
  90. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +4 -2
  91. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +220 -0
  92. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +8 -0
  93. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +1 -0
  94. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +9 -4
  95. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +60 -12
  96. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +60 -12
  97. package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +305 -0
  98. package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -0
  99. package/dist/{vue-i18n-BQNx5sCM.js → vue-i18n-D57Xfcpf.js} +226 -226
  100. package/package.json +3 -3
  101. package/dist/ApprovalView-DjDzZmVI.js +0 -138
  102. package/dist/ClosingDraftView-BwV3uiYC.js +0 -1225
  103. package/dist/ClosingTemplateView-vaAj0Y-0.js +0 -1819
  104. package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-Dy1BXu1R.js +0 -142
  105. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DZ_Q-3lU.js +0 -286
  106. package/dist/PublishView-CYdu5jl4.js +0 -192
  107. package/dist/ReceiveRequestView-DGqs1rpr.js +0 -1876
  108. package/dist/StockView-DX0RjayP.js +0 -1817
  109. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DhdMwHAA.js +0 -1327
  110. package/dist/TransferTemplateView-DEwJaqYB.js +0 -1284
  111. package/dist/components/FmCustomAttribute2.vue.d.ts +0 -18
  112. package/dist/index-DbE8p73U.js +0 -29202
@@ -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,12 @@
1
+ import type { WorkBook, WorkSheet } from 'xlsx';
2
+ import type { XilnexImportResult } from './XilnexImportForm.vue';
3
+ interface XilnexItemRow {
4
+ item_code: string;
5
+ quantity: string;
6
+ }
7
+ export declare function worksheetToItemRow(sheet: WorkSheet): Array<{
8
+ index: number;
9
+ data: XilnexItemRow;
10
+ }>;
11
+ export declare function getItemToCreate(workbook: WorkBook): XilnexImportResult;
12
+ 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
+ }
@@ -2,6 +2,7 @@ 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
4
  remark?: string | null | undefined;
5
+ ref?: string | null | undefined;
5
6
  measurement?: {
6
7
  id: string;
7
8
  name: string;
@@ -47,6 +48,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
47
48
  };
48
49
  id: string;
49
50
  doc: {
51
+ customAttributes?: Record<string, any> | null | undefined;
50
52
  trackingMeasurement?: string | null | undefined;
51
53
  convert?: {
52
54
  measurement?: string | null | undefined;
@@ -90,7 +92,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
90
92
  low: number;
91
93
  mid: number;
92
94
  } | null | undefined;
93
- customAttributes?: Record<string, any> | null | undefined;
94
95
  unit: {
95
96
  _id: string;
96
97
  name: string;
@@ -115,6 +116,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
115
116
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<AdjustedItemFormProps>>> & Readonly<{
116
117
  "onUpdate:modelValue"?: ((mv: {
117
118
  remark?: string | null | undefined;
119
+ ref?: string | null | undefined;
118
120
  measurement?: {
119
121
  id: string;
120
122
  name: string;
@@ -160,6 +162,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
160
162
  };
161
163
  id: string;
162
164
  doc: {
165
+ customAttributes?: Record<string, any> | null | undefined;
163
166
  trackingMeasurement?: string | null | undefined;
164
167
  convert?: {
165
168
  measurement?: string | null | undefined;
@@ -203,7 +206,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
203
206
  low: number;
204
207
  mid: number;
205
208
  } | null | undefined;
206
- 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
+ id?: string | null | undefined;
8
+ measurement?: {
9
+ id: string;
10
+ name: string;
11
+ abbrev: string;
12
+ conversion: {
13
+ amount: number;
14
+ precision: number;
15
+ };
16
+ } | 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
+ customAttributes?: Record<string, any> | null | undefined;
33
+ trackingMeasurement?: string | null | undefined;
34
+ convert?: {
35
+ measurement?: string | null | undefined;
36
+ inventoryBindings?: {
37
+ measurement?: {
38
+ id: string;
39
+ name: string;
40
+ abbrev: string;
41
+ conversion: {
42
+ amount: number;
43
+ precision: number;
44
+ };
45
+ } | null | undefined;
46
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
47
+ amount: {
48
+ amount: number;
49
+ precision: number;
50
+ };
51
+ id: string;
52
+ }[] | null | undefined;
53
+ } | null | undefined;
54
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
55
+ defaultCost?: {
56
+ measurement?: {
57
+ id: string;
58
+ name: string;
59
+ abbrev: string;
60
+ conversion: {
61
+ amount: number;
62
+ precision: number;
63
+ };
64
+ } | null | undefined;
65
+ costPerUnit: {
66
+ 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";
67
+ amount: number;
68
+ precision: number;
69
+ };
70
+ } | null | undefined;
71
+ operationalGroup?: string | null | undefined;
72
+ thresholds?: {
73
+ low: number;
74
+ mid: number;
75
+ } | 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
+ name: string;
97
+ quantity: {
98
+ amount: number;
99
+ precision: number;
100
+ };
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
+ id?: string | null | undefined;
112
+ measurement?: {
113
+ id: string;
114
+ name: string;
115
+ abbrev: string;
116
+ conversion: {
117
+ amount: number;
118
+ precision: number;
119
+ };
120
+ } | 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
+ customAttributes?: Record<string, any> | null | undefined;
137
+ trackingMeasurement?: string | null | undefined;
138
+ convert?: {
139
+ measurement?: string | null | undefined;
140
+ inventoryBindings?: {
141
+ measurement?: {
142
+ id: string;
143
+ name: string;
144
+ abbrev: string;
145
+ conversion: {
146
+ amount: number;
147
+ precision: number;
148
+ };
149
+ } | null | undefined;
150
+ type: "RECIPE" | "SKU" | "SKU_GROUP";
151
+ amount: {
152
+ amount: number;
153
+ precision: number;
154
+ };
155
+ id: string;
156
+ }[] | null | undefined;
157
+ } | null | undefined;
158
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
159
+ defaultCost?: {
160
+ measurement?: {
161
+ id: string;
162
+ name: string;
163
+ abbrev: string;
164
+ conversion: {
165
+ amount: number;
166
+ precision: number;
167
+ };
168
+ } | null | undefined;
169
+ costPerUnit: {
170
+ 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";
171
+ amount: number;
172
+ precision: number;
173
+ };
174
+ } | null | undefined;
175
+ operationalGroup?: string | null | undefined;
176
+ thresholds?: {
177
+ low: number;
178
+ mid: number;
179
+ } | 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
+ name: string;
201
+ quantity: {
202
+ amount: number;
203
+ precision: number;
204
+ };
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,8 +6,16 @@ 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;
9
11
  }): {
10
12
  promptSelectLocations: () => void;
11
13
  columnDefs: ColumnDef<ActiveLocationsCount>[];
12
14
  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>;
13
21
  };
@@ -12,6 +12,7 @@ export declare function useTemplateEnabledLocations(controller: {
12
12
  acceptRequest: boolean;
13
13
  dbName: string;
14
14
  doc: {
15
+ customAttributes?: Record<string, any> | null | undefined;
15
16
  _id: string;
16
17
  businessId: string;
17
18
  profile: {
@@ -5,8 +5,8 @@ export declare enum ItemColumn {
5
5
  Name = "Name",
6
6
  DefaultAmount = "DefaultAmount",
7
7
  Limit = "Limit",
8
- MinimumAmount = "MinimumAmount",
9
8
  Step = "Step",
9
+ /** @deprecated to be removed? */
10
10
  Cost = "Cost",
11
11
  Delete = "Delete"
12
12
  }
@@ -14,11 +14,15 @@ export declare function useTransferTemplateItems(controller: {
14
14
  get items(): FdoPurchaseOrderItem[];
15
15
  get supplier(): FdoPurchaseOrderSupplier | undefined | null;
16
16
  get transferType(): PurchaseOrderTransactionType;
17
+ duplicateItem: (item: Omit<FdoPurchaseOrderTemplateItem, 'id'> & {
18
+ id: string;
19
+ }) => void;
17
20
  updateItem: (item: FdoPurchaseOrderTemplateItem) => void;
18
21
  deleteItem: (item: FdoPurchaseOrderTemplateItem) => void;
19
22
  get disabled(): boolean;
20
23
  }): {
21
- columnDefs: import("vue").ComputedRef<ColumnDef<{
24
+ columnDefs: ColumnDef<{
25
+ id?: string | null | undefined;
22
26
  measurement?: {
23
27
  id: string;
24
28
  name: string;
@@ -28,6 +32,7 @@ export declare function useTransferTemplateItems(controller: {
28
32
  precision: number;
29
33
  };
30
34
  } | null | undefined;
35
+ externalId?: string | null | undefined;
31
36
  totalCost?: {
32
37
  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";
33
38
  amount: number;
@@ -42,6 +47,7 @@ export declare function useTransferTemplateItems(controller: {
42
47
  precision: number;
43
48
  } | null | undefined;
44
49
  sku: {
50
+ customAttributes?: Record<string, any> | null | undefined;
45
51
  trackingMeasurement?: string | null | undefined;
46
52
  convert?: {
47
53
  measurement?: string | null | undefined;
@@ -85,7 +91,6 @@ export declare function useTransferTemplateItems(controller: {
85
91
  low: number;
86
92
  mid: number;
87
93
  } | null | undefined;
88
- customAttributes?: Record<string, any> | null | undefined;
89
94
  unit: {
90
95
  _id: string;
91
96
  name: string;
@@ -115,5 +120,5 @@ export declare function useTransferTemplateItems(controller: {
115
120
  amount: number;
116
121
  precision: number;
117
122
  };
118
- }>[]>;
123
+ }>[];
119
124
  };