@feedmepos/mf-inventory-portal 0.0.22-dev.5 → 0.0.22-dev.50
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.
- package/dist/ApprovalView-CyIOcyG5.js +140 -0
- package/dist/{BindingsDialog-DQJhC3Mo.js → BindingsDialog-BXePN5iL.js} +10 -10
- package/dist/{BindingsPicker-YfbPb_dG.js → BindingsPicker-Bd_qb0aO.js} +15 -15
- package/dist/{BindingsTable-D3MVcHXZ.js → BindingsTable-BV-nP9HU.js} +4 -4
- package/dist/ClosingTemplateView-CSvWLccZ.js +1829 -0
- package/dist/FmDroppableField-DwZ6ujPh.js +154 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DpCoW_-F.js +266 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BpzreBHD.js +435 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-C8k7pSPT.js +51 -0
- package/dist/IngredientGroupView-C0hPeD41.js +608 -0
- package/dist/IngredientsView-CpwVIGXd.js +1608 -0
- package/dist/IntegrationView-Bt8pGAHS.js +1225 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-wsBLYBpB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-yA-qJUUz.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BqcqoKyN.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-BcAmgmD8.js → PurchaseOrderPrintPreview-D3ugzCW_.js} +7 -7
- package/dist/ReceiveRequestView-D14YTEEe.js +4073 -0
- package/dist/RecipeView-D0WsMfKm.js +594 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-sxI0L6MP.js +7770 -0
- package/dist/SupplierView-clAkARuW.js +1468 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9NU1m6S.js +1150 -0
- package/dist/TransferTemplateView-DpI6kVqX.js +1258 -0
- package/dist/{UnitView-B95q8Xrj.js → UnitView-CneJsDum.js} +18 -18
- package/dist/{WarehouseView-CHGXvyeS.js → WarehouseView-DYbFWTlh.js} +176 -177
- package/dist/api/bill.d.ts +84 -238
- package/dist/api/closing-template.d.ts +6 -4
- package/dist/api/inventory.d.ts +282 -91
- package/dist/api/netsuite.d.ts +71 -0
- package/dist/api/purchase-order-template.d.ts +4 -6
- package/dist/api/supplier.d.ts +1 -0
- package/dist/{app-CfXF4jdF.js → app-B4pi48sM.js} +26414 -24985
- package/dist/app.d.ts +88 -3
- package/dist/app.js +3 -3
- package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
- package/dist/components/FmMinMaxInputRules.d.ts +2 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +3 -9
- package/dist/components/FmMultiselectDialogProps.d.ts +0 -2
- package/dist/components/FmUnitInputRules.d.ts +2 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
- package/dist/components/map/GoogleMap.vue.d.ts +4 -4
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +2 -2
- package/dist/{decimal-BZ7tX47r.js → decimal-C8O2p3Sg.js} +1 -1
- package/dist/defineDeepModel-BXP1vLGf.js +13 -0
- package/dist/extensions/array.d.ts +1 -0
- package/dist/format-time-from-id-DgW7OJL_.js +15 -0
- package/dist/format-unit-display-BP4O0Pym.js +1195 -0
- package/dist/helper/rules.d.ts +7 -0
- package/dist/helper/rules.spec.d.ts +1 -0
- package/dist/helper/xlsx.util.d.ts +7 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/stores/api.d.ts +1 -0
- package/dist/stores/feature.d.ts +0 -1
- package/dist/stores/helper/core-store-proxy.d.ts +3 -0
- package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
- package/dist/stores/integration/foodmarkethub.d.ts +391 -0
- package/dist/stores/integration/index.d.ts +7 -0
- package/dist/stores/integration/netsuite.d.ts +102 -0
- package/dist/stores/inventory.d.ts +294 -9
- package/dist/stores/location.d.ts +508 -503
- package/dist/stores/supplier.d.ts +124 -4
- package/dist/style.css +1 -1
- package/dist/supplier-D-8XhuF_.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-template-enabled-locations-2-C2E4j3k-.js +85 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts +2 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +877 -1038
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1049
- package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
- package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +215 -0
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
- package/dist/views/integration/FoodMarketHub.vue.d.ts +2 -0
- package/dist/views/integration/NetSuite.vue.d.ts +2 -0
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +7 -7
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +7 -7
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +49 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1961 -87
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2377 -292
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2329 -244
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
- package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +42 -119
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +32 -2
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
- package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
- package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -85
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +39 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1277 -1478
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1697 -906
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
- package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -247
- package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
- package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
- package/dist/{xlsx-BtP1Qjj6.js → xlsx-Dsy-fxZw.js} +1525 -1525
- package/dist/xlsx.util-CxGmvsp9.js +78 -0
- package/package.json +10 -7
- package/dist/ApprovalView-BdaNwUBc.js +0 -129
- package/dist/ClosingTemplateView-BpErgepi.js +0 -1030
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D3B7kOlU.js +0 -372
- package/dist/IngredientsView-GqrkpCm5.js +0 -1758
- package/dist/IntegrationView-7c3MpUzS.js +0 -1141
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BIwdObb1.js +0 -88
- package/dist/ReceiveRequestView-BAuXvzQW.js +0 -215
- package/dist/RecipeView-C6tZPQ-K.js +0 -581
- package/dist/StockView-4uXHYz4E.js +0 -1892
- package/dist/SupplierView-CuWvKCWY.js +0 -827
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CTQ9HIqf.js +0 -740
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang--6JoXOLD.js +0 -1409
- package/dist/TransferTemplateView-D1Lfi3aW.js +0 -1230
- package/dist/defineDeepModel-BKAs9qN6.js +0 -13
- package/dist/format-time-from-id-B7ZE4sdX.js +0 -15
- package/dist/id-to-date-D1lOqIir.js +0 -30
- package/dist/purchase-order-transaction-type-tZ7cj1dz.js +0 -702
- package/dist/supplier-BIDBk5S6.js +0 -69
- package/dist/use-template-enabled-locations-DlMnS9WJ.js +0 -57
- package/dist/xlsx.util-BKFiH-ig.js +0 -109
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { WorkBook, WorkSheet } from 'xlsx';
|
|
2
|
+
import type { RevisionIdMeta } from '@feedmepos/inventory-core';
|
|
3
|
+
export declare enum ReservedSheetNames {
|
|
4
|
+
Ingredients = "Ingredients"
|
|
5
|
+
}
|
|
6
|
+
export interface ClosingItemRow {
|
|
7
|
+
code?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
/** abbrev for base unit or measurement unit */
|
|
10
|
+
unit: string;
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface TemplateInfo {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
reference: string;
|
|
17
|
+
locations: string[];
|
|
18
|
+
}
|
|
19
|
+
export interface ImportCreateResult {
|
|
20
|
+
type: 'create';
|
|
21
|
+
template: Omit<FdoClosingTemplate, '_id'>;
|
|
22
|
+
excelSheetName: string;
|
|
23
|
+
errors: string[];
|
|
24
|
+
}
|
|
25
|
+
export interface ImportUpdateResult {
|
|
26
|
+
type: 'update';
|
|
27
|
+
original: FdoClosingTemplate;
|
|
28
|
+
template: FdoClosingTemplate & RevisionIdMeta;
|
|
29
|
+
excelSheetName: string;
|
|
30
|
+
errors: string[];
|
|
31
|
+
}
|
|
32
|
+
export type ImportResult = {
|
|
33
|
+
invalidExcel: boolean;
|
|
34
|
+
invalidExcelMessage?: string;
|
|
35
|
+
importCreateResult: ImportCreateResult[];
|
|
36
|
+
importUpdateResult: ImportUpdateResult[];
|
|
37
|
+
};
|
|
38
|
+
export type ObjectWithIndex<T> = {
|
|
39
|
+
index: number;
|
|
40
|
+
data: T;
|
|
41
|
+
};
|
|
42
|
+
export declare const FakeUnit: FdoInventoryUnit;
|
|
43
|
+
export declare function templateItemToExcelRow(item: FdoClosingTemplateItem): ClosingItemRow[];
|
|
44
|
+
export type ColIdHeader<T> = {
|
|
45
|
+
id: keyof T;
|
|
46
|
+
name: string;
|
|
47
|
+
};
|
|
48
|
+
export declare function getExcelHeaders(): ColIdHeader<ClosingItemRow>[];
|
|
49
|
+
export declare function exportTemplates(templates: FdoClosingTemplate[]): string;
|
|
50
|
+
export declare function exportImportTemplate(): string;
|
|
51
|
+
/** @returns empty array if for all locations */
|
|
52
|
+
export declare function extractLocations(locationRow: string[]): {
|
|
53
|
+
location?: FdoInventoryLocation;
|
|
54
|
+
errors: string[];
|
|
55
|
+
}[];
|
|
56
|
+
export declare function worksheetToTemplateMeta(sheet: WorkSheet): TemplateInfo;
|
|
57
|
+
export declare function worksheetToSkuRow(sheet: WorkSheet): ObjectWithIndex<ClosingItemRow>[];
|
|
58
|
+
export declare function getSkuToCreateUpdate(workbook: WorkBook): ImportResult;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '@/extensions/array';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { IngredientGroupDialogProps } from './IngredientGroupDialogProps';
|
|
2
|
+
import { FormMode } from '@/components/form/form-mode.enum';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IngredientGroupDialogProps>, {
|
|
4
|
+
mode: FormMode;
|
|
5
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
"update:show": (show: boolean) => void;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IngredientGroupDialogProps>, {
|
|
8
|
+
mode: FormMode;
|
|
9
|
+
}>>> & Readonly<{
|
|
10
|
+
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
mode: FormMode;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
17
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
+
} : {
|
|
20
|
+
type: import('vue').PropType<T[K]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
type __VLS_WithDefaults<P, D> = {
|
|
25
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
26
|
+
default: D[K];
|
|
27
|
+
}> : P[K];
|
|
28
|
+
};
|
|
29
|
+
type __VLS_Prettify<T> = {
|
|
30
|
+
[K in keyof T]: T[K];
|
|
31
|
+
} & {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FormMode } from '@/components/form/form-mode.enum';
|
|
2
|
+
import type { _DeepPartial } from 'pinia';
|
|
3
|
+
export interface IngredientGroupDialogModelValue extends _DeepPartial<FdoInventorySkuGroup> {
|
|
4
|
+
}
|
|
5
|
+
export interface IngredientGroupDialogProps {
|
|
6
|
+
show?: boolean;
|
|
7
|
+
mode?: FormMode;
|
|
8
|
+
modelValue?: IngredientGroupDialogModelValue;
|
|
9
|
+
}
|
|
10
|
+
export interface IngredientGroupDialogEvents {
|
|
11
|
+
(event: 'update:show', show: boolean): void;
|
|
12
|
+
}
|
package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { IngredientGroupFormProps } from './IngredientGroupFormProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IngredientGroupFormProps>>, {
|
|
3
|
+
validateInputs: () => void;
|
|
4
|
+
resetInputsValidation: () => void;
|
|
5
|
+
resetInputs: () => void;
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"validation-success": () => void;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IngredientGroupFormProps>>> & Readonly<{
|
|
9
|
+
"onValidation-success"?: (() => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
export default _default;
|
|
12
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
+
} : {
|
|
17
|
+
type: import('vue').PropType<T[K]>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
};
|
package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FormMode } from '@/components/form/form-mode.enum';
|
|
2
|
+
import type { _DeepPartial } from 'pinia';
|
|
3
|
+
export interface IngredientGroupFormProps {
|
|
4
|
+
mode?: FormMode;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
modelValue?: IngredientGroupFormModelValue;
|
|
7
|
+
}
|
|
8
|
+
export interface IngredientGroupFormModelValue extends _DeepPartial<FdoInventorySkuGroup> {
|
|
9
|
+
}
|
|
10
|
+
export interface IngredientGroupFormEvents {
|
|
11
|
+
(event: 'validation-success'): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
import type { IngredientGroupDialogProps } from '../components/ingredient-group-dialog/IngredientGroupDialogProps';
|
|
3
|
+
export declare const useIngredientGroupActions: import("pinia").StoreDefinition<"ingredientGroupactions", import("pinia")._UnwrapAll<Pick<{
|
|
4
|
+
createIngredientGroup: () => void;
|
|
5
|
+
updateIngredientGroup: (data: FdoInventorySkuGroup) => Promise<void>;
|
|
6
|
+
deleteIngredientGroup: (group: FdoInventorySkuGroup, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
|
|
7
|
+
importIngredientGroups: () => void;
|
|
8
|
+
exportIngredientGroups: () => void;
|
|
9
|
+
ingredientGroupDialogProps: Ref<IngredientGroupDialogProps | undefined, IngredientGroupDialogProps | undefined>;
|
|
10
|
+
}, "ingredientGroupDialogProps">>, Pick<{
|
|
11
|
+
createIngredientGroup: () => void;
|
|
12
|
+
updateIngredientGroup: (data: FdoInventorySkuGroup) => Promise<void>;
|
|
13
|
+
deleteIngredientGroup: (group: FdoInventorySkuGroup, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
|
|
14
|
+
importIngredientGroups: () => void;
|
|
15
|
+
exportIngredientGroups: () => void;
|
|
16
|
+
ingredientGroupDialogProps: Ref<IngredientGroupDialogProps | undefined, IngredientGroupDialogProps | undefined>;
|
|
17
|
+
}, never>, Pick<{
|
|
18
|
+
createIngredientGroup: () => void;
|
|
19
|
+
updateIngredientGroup: (data: FdoInventorySkuGroup) => Promise<void>;
|
|
20
|
+
deleteIngredientGroup: (group: FdoInventorySkuGroup, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
|
|
21
|
+
importIngredientGroups: () => void;
|
|
22
|
+
exportIngredientGroups: () => void;
|
|
23
|
+
ingredientGroupDialogProps: Ref<IngredientGroupDialogProps | undefined, IngredientGroupDialogProps | undefined>;
|
|
24
|
+
}, "createIngredientGroup" | "updateIngredientGroup" | "deleteIngredientGroup" | "importIngredientGroups" | "exportIngredientGroups">>;
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { type ColumnDef } from '@feedmepos/ui-library';
|
|
2
|
+
export declare const useIngredientGroupTable: import("pinia").StoreDefinition<"ingredientGroupTable", import("pinia")._UnwrapAll<Pick<{
|
|
3
|
+
fetchIngredientGroups: () => Promise<void>;
|
|
4
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
5
|
+
columnDefs: import("vue").ComputedRef<ColumnDef<{
|
|
6
|
+
ref?: string | null | undefined;
|
|
7
|
+
unit: {
|
|
8
|
+
_id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
abbrev: string;
|
|
11
|
+
precision: number;
|
|
12
|
+
measurements: {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
abbrev: string;
|
|
16
|
+
conversion: {
|
|
17
|
+
amount: number;
|
|
18
|
+
precision: number;
|
|
19
|
+
};
|
|
20
|
+
}[];
|
|
21
|
+
};
|
|
22
|
+
_id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
skus: {
|
|
25
|
+
trackingMeasurement?: string | null | undefined;
|
|
26
|
+
convert?: {
|
|
27
|
+
measurement?: string | null | undefined;
|
|
28
|
+
inventoryBindings?: {
|
|
29
|
+
measurement?: {
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
abbrev: string;
|
|
33
|
+
conversion: {
|
|
34
|
+
amount: number;
|
|
35
|
+
precision: number;
|
|
36
|
+
};
|
|
37
|
+
} | null | undefined;
|
|
38
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
39
|
+
amount: {
|
|
40
|
+
amount: number;
|
|
41
|
+
precision: number;
|
|
42
|
+
};
|
|
43
|
+
id: string;
|
|
44
|
+
}[] | null | undefined;
|
|
45
|
+
} | null | undefined;
|
|
46
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
47
|
+
defaultCost?: {
|
|
48
|
+
measurement?: {
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
abbrev: string;
|
|
52
|
+
conversion: {
|
|
53
|
+
amount: number;
|
|
54
|
+
precision: number;
|
|
55
|
+
};
|
|
56
|
+
} | null | undefined;
|
|
57
|
+
costPerUnit: {
|
|
58
|
+
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";
|
|
59
|
+
amount: number;
|
|
60
|
+
precision: number;
|
|
61
|
+
};
|
|
62
|
+
} | null | undefined;
|
|
63
|
+
thresholds?: {
|
|
64
|
+
low: number;
|
|
65
|
+
mid: number;
|
|
66
|
+
} | null | undefined;
|
|
67
|
+
operationalGroup?: string | null | undefined;
|
|
68
|
+
code: string;
|
|
69
|
+
_id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
}[];
|
|
72
|
+
}>[]>;
|
|
73
|
+
}, "loading">>, Pick<{
|
|
74
|
+
fetchIngredientGroups: () => Promise<void>;
|
|
75
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
76
|
+
columnDefs: import("vue").ComputedRef<ColumnDef<{
|
|
77
|
+
ref?: string | null | undefined;
|
|
78
|
+
unit: {
|
|
79
|
+
_id: string;
|
|
80
|
+
name: string;
|
|
81
|
+
abbrev: string;
|
|
82
|
+
precision: number;
|
|
83
|
+
measurements: {
|
|
84
|
+
id: string;
|
|
85
|
+
name: string;
|
|
86
|
+
abbrev: string;
|
|
87
|
+
conversion: {
|
|
88
|
+
amount: number;
|
|
89
|
+
precision: number;
|
|
90
|
+
};
|
|
91
|
+
}[];
|
|
92
|
+
};
|
|
93
|
+
_id: string;
|
|
94
|
+
name: string;
|
|
95
|
+
skus: {
|
|
96
|
+
trackingMeasurement?: string | null | undefined;
|
|
97
|
+
convert?: {
|
|
98
|
+
measurement?: string | null | undefined;
|
|
99
|
+
inventoryBindings?: {
|
|
100
|
+
measurement?: {
|
|
101
|
+
id: string;
|
|
102
|
+
name: string;
|
|
103
|
+
abbrev: string;
|
|
104
|
+
conversion: {
|
|
105
|
+
amount: number;
|
|
106
|
+
precision: number;
|
|
107
|
+
};
|
|
108
|
+
} | null | undefined;
|
|
109
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
110
|
+
amount: {
|
|
111
|
+
amount: number;
|
|
112
|
+
precision: number;
|
|
113
|
+
};
|
|
114
|
+
id: string;
|
|
115
|
+
}[] | null | undefined;
|
|
116
|
+
} | null | undefined;
|
|
117
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
118
|
+
defaultCost?: {
|
|
119
|
+
measurement?: {
|
|
120
|
+
id: string;
|
|
121
|
+
name: string;
|
|
122
|
+
abbrev: string;
|
|
123
|
+
conversion: {
|
|
124
|
+
amount: number;
|
|
125
|
+
precision: number;
|
|
126
|
+
};
|
|
127
|
+
} | null | undefined;
|
|
128
|
+
costPerUnit: {
|
|
129
|
+
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";
|
|
130
|
+
amount: number;
|
|
131
|
+
precision: number;
|
|
132
|
+
};
|
|
133
|
+
} | null | undefined;
|
|
134
|
+
thresholds?: {
|
|
135
|
+
low: number;
|
|
136
|
+
mid: number;
|
|
137
|
+
} | null | undefined;
|
|
138
|
+
operationalGroup?: string | null | undefined;
|
|
139
|
+
code: string;
|
|
140
|
+
_id: string;
|
|
141
|
+
name: string;
|
|
142
|
+
}[];
|
|
143
|
+
}>[]>;
|
|
144
|
+
}, "columnDefs">, Pick<{
|
|
145
|
+
fetchIngredientGroups: () => Promise<void>;
|
|
146
|
+
loading: import("vue").Ref<boolean, boolean>;
|
|
147
|
+
columnDefs: import("vue").ComputedRef<ColumnDef<{
|
|
148
|
+
ref?: string | null | undefined;
|
|
149
|
+
unit: {
|
|
150
|
+
_id: string;
|
|
151
|
+
name: string;
|
|
152
|
+
abbrev: string;
|
|
153
|
+
precision: number;
|
|
154
|
+
measurements: {
|
|
155
|
+
id: string;
|
|
156
|
+
name: string;
|
|
157
|
+
abbrev: string;
|
|
158
|
+
conversion: {
|
|
159
|
+
amount: number;
|
|
160
|
+
precision: number;
|
|
161
|
+
};
|
|
162
|
+
}[];
|
|
163
|
+
};
|
|
164
|
+
_id: string;
|
|
165
|
+
name: string;
|
|
166
|
+
skus: {
|
|
167
|
+
trackingMeasurement?: string | null | undefined;
|
|
168
|
+
convert?: {
|
|
169
|
+
measurement?: string | null | undefined;
|
|
170
|
+
inventoryBindings?: {
|
|
171
|
+
measurement?: {
|
|
172
|
+
id: string;
|
|
173
|
+
name: string;
|
|
174
|
+
abbrev: string;
|
|
175
|
+
conversion: {
|
|
176
|
+
amount: number;
|
|
177
|
+
precision: number;
|
|
178
|
+
};
|
|
179
|
+
} | null | undefined;
|
|
180
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
181
|
+
amount: {
|
|
182
|
+
amount: number;
|
|
183
|
+
precision: number;
|
|
184
|
+
};
|
|
185
|
+
id: string;
|
|
186
|
+
}[] | null | undefined;
|
|
187
|
+
} | null | undefined;
|
|
188
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
189
|
+
defaultCost?: {
|
|
190
|
+
measurement?: {
|
|
191
|
+
id: string;
|
|
192
|
+
name: string;
|
|
193
|
+
abbrev: string;
|
|
194
|
+
conversion: {
|
|
195
|
+
amount: number;
|
|
196
|
+
precision: number;
|
|
197
|
+
};
|
|
198
|
+
} | null | undefined;
|
|
199
|
+
costPerUnit: {
|
|
200
|
+
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";
|
|
201
|
+
amount: number;
|
|
202
|
+
precision: number;
|
|
203
|
+
};
|
|
204
|
+
} | null | undefined;
|
|
205
|
+
thresholds?: {
|
|
206
|
+
low: number;
|
|
207
|
+
mid: number;
|
|
208
|
+
} | null | undefined;
|
|
209
|
+
operationalGroup?: string | null | undefined;
|
|
210
|
+
code: string;
|
|
211
|
+
_id: string;
|
|
212
|
+
name: string;
|
|
213
|
+
}[];
|
|
214
|
+
}>[]>;
|
|
215
|
+
}, "fetchIngredientGroups">>;
|
|
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
12
12
|
precision: number;
|
|
13
13
|
};
|
|
14
14
|
} | null | undefined;
|
|
15
|
-
type: "RECIPE" | "SKU";
|
|
15
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
16
16
|
amount: {
|
|
17
17
|
amount: number;
|
|
18
18
|
precision: number;
|
|
@@ -33,7 +33,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
33
33
|
precision: number;
|
|
34
34
|
};
|
|
35
35
|
} | null | undefined;
|
|
36
|
-
type: "RECIPE" | "SKU";
|
|
36
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
37
37
|
amount: {
|
|
38
38
|
amount: number;
|
|
39
39
|
precision: number;
|
|
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
18
18
|
precision: number;
|
|
19
19
|
};
|
|
20
20
|
} | null | undefined;
|
|
21
|
-
type: "RECIPE" | "SKU";
|
|
21
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
22
22
|
amount: {
|
|
23
23
|
amount: number;
|
|
24
24
|
precision: number;
|
|
@@ -83,7 +83,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
83
83
|
precision: number;
|
|
84
84
|
};
|
|
85
85
|
} | null | undefined;
|
|
86
|
-
type: "RECIPE" | "SKU";
|
|
86
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
87
87
|
amount: {
|
|
88
88
|
amount: number;
|
|
89
89
|
precision: number;
|
|
@@ -21,14 +21,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
21
21
|
precision: number;
|
|
22
22
|
};
|
|
23
23
|
} | null | undefined;
|
|
24
|
-
type: "RECIPE" | "SKU";
|
|
24
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
25
25
|
amount: {
|
|
26
26
|
amount: number;
|
|
27
27
|
precision: number;
|
|
28
28
|
};
|
|
29
29
|
id: string;
|
|
30
30
|
}[]) => void;
|
|
31
|
-
"click:pick-inventory-bindings": (type: "RECIPE" | "SKU") => void;
|
|
31
|
+
"click:pick-inventory-bindings": (type: "RECIPE" | "SKU" | "SKU_GROUP") => void;
|
|
32
32
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InventoryBindingFormProps>, {
|
|
33
33
|
modelValue: () => never[];
|
|
34
34
|
errors: () => never[];
|
|
@@ -43,14 +43,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
43
43
|
precision: number;
|
|
44
44
|
};
|
|
45
45
|
} | null | undefined;
|
|
46
|
-
type: "RECIPE" | "SKU";
|
|
46
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
47
47
|
amount: {
|
|
48
48
|
amount: number;
|
|
49
49
|
precision: number;
|
|
50
50
|
};
|
|
51
51
|
id: string;
|
|
52
52
|
}[]) => any) | undefined;
|
|
53
|
-
"onClick:pick-inventory-bindings"?: ((type: "RECIPE" | "SKU") => any) | undefined;
|
|
53
|
+
"onClick:pick-inventory-bindings"?: ((type: "RECIPE" | "SKU" | "SKU_GROUP") => any) | undefined;
|
|
54
54
|
}>, {
|
|
55
55
|
modelValue: {
|
|
56
56
|
measurement?: {
|
|
@@ -62,7 +62,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
62
62
|
precision: number;
|
|
63
63
|
};
|
|
64
64
|
} | null | undefined;
|
|
65
|
-
type: "RECIPE" | "SKU";
|
|
65
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
66
66
|
amount: {
|
|
67
67
|
amount: number;
|
|
68
68
|
precision: number;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { IngredientDialogProps } from '../components/ingredient-dialog/IngredientDialogProps';
|
|
2
|
-
export declare const useIngredientForm: import("pinia").StoreDefinition<"ingredientForm", Pick<{
|
|
2
|
+
export declare const useIngredientForm: import("pinia").StoreDefinition<"ingredientForm", import("pinia")._UnwrapAll<Pick<{
|
|
3
3
|
createIngredient: () => void;
|
|
4
4
|
updateIngredient: (ingredientToUpdate: FdoInventorySku) => Promise<void>;
|
|
5
5
|
deleteIngredient: (ingredient: FdoInventorySku) => void;
|
|
6
6
|
ingredientDialogProps: import("vue").Ref<IngredientDialogProps | undefined, IngredientDialogProps | undefined>;
|
|
7
7
|
ingredientViewLoading: import("vue").Ref<boolean, boolean>;
|
|
8
|
-
}, "ingredientDialogProps" | "ingredientViewLoading"
|
|
8
|
+
}, "ingredientDialogProps" | "ingredientViewLoading">>, Pick<{
|
|
9
9
|
createIngredient: () => void;
|
|
10
10
|
updateIngredient: (ingredientToUpdate: FdoInventorySku) => Promise<void>;
|
|
11
11
|
deleteIngredient: (ingredient: FdoInventorySku) => void;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -131,13 +131,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
131
131
|
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
132
132
|
stackable: boolean;
|
|
133
133
|
}[];
|
|
134
|
-
categories: (Omit<{
|
|
135
|
-
_id: string;
|
|
136
|
-
name: string;
|
|
137
|
-
position: number;
|
|
138
|
-
}, "_id"> & {
|
|
139
|
-
_id: string | null;
|
|
140
|
-
})[];
|
|
141
134
|
variants: {
|
|
142
135
|
options: {
|
|
143
136
|
_id: string;
|
|
@@ -146,6 +139,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
146
139
|
_id: string;
|
|
147
140
|
name: string;
|
|
148
141
|
}[];
|
|
142
|
+
categories: (Omit<{
|
|
143
|
+
_id: string;
|
|
144
|
+
name: string;
|
|
145
|
+
position: number;
|
|
146
|
+
}, "_id"> & {
|
|
147
|
+
_id: string | null;
|
|
148
|
+
})[];
|
|
149
149
|
menus: {
|
|
150
150
|
description?: string | null | undefined;
|
|
151
151
|
costing?: {
|
|
@@ -131,13 +131,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
131
131
|
orderFrom: "ALL" | "POS_ONLY" | "NONE";
|
|
132
132
|
stackable: boolean;
|
|
133
133
|
}[];
|
|
134
|
-
categories: (Omit<{
|
|
135
|
-
_id: string;
|
|
136
|
-
name: string;
|
|
137
|
-
position: number;
|
|
138
|
-
}, "_id"> & {
|
|
139
|
-
_id: string | null;
|
|
140
|
-
})[];
|
|
141
134
|
variants: {
|
|
142
135
|
options: {
|
|
143
136
|
_id: string;
|
|
@@ -146,6 +139,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
146
139
|
_id: string;
|
|
147
140
|
name: string;
|
|
148
141
|
}[];
|
|
142
|
+
categories: (Omit<{
|
|
143
|
+
_id: string;
|
|
144
|
+
name: string;
|
|
145
|
+
position: number;
|
|
146
|
+
}, "_id"> & {
|
|
147
|
+
_id: string | null;
|
|
148
|
+
})[];
|
|
149
149
|
menus: {
|
|
150
150
|
description?: string | null | undefined;
|
|
151
151
|
costing?: {
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
interface NetSuiteFieldProps {
|
|
2
|
+
disabled?: boolean;
|
|
3
|
+
supplier: FdoPurchaseOrderSupplier;
|
|
4
|
+
setting?: FdoPurchaseOrderNetSuiteSetting | null;
|
|
5
|
+
items: FdoPurchaseOrderItem[];
|
|
6
|
+
onChange: (items: FdoPurchaseOrderItem[], setting?: FdoPurchaseOrderNetSuiteSetting) => void;
|
|
7
|
+
}
|
|
8
|
+
export type NetSuiteReadyEvent = {
|
|
9
|
+
(e: 'netsuite:ready', setting: FdoPurchaseOrderNetSuiteSetting): void;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<NetSuiteFieldProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"netsuite:ready": (setting: {
|
|
13
|
+
refNo?: string | null | undefined;
|
|
14
|
+
sync?: boolean | null | undefined;
|
|
15
|
+
subsidiary?: {
|
|
16
|
+
name?: string | null | undefined;
|
|
17
|
+
id: string;
|
|
18
|
+
} | null | undefined;
|
|
19
|
+
errors?: {
|
|
20
|
+
message: string;
|
|
21
|
+
createdAt: string;
|
|
22
|
+
}[] | null | undefined;
|
|
23
|
+
id: string;
|
|
24
|
+
}) => void;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<NetSuiteFieldProps>>> & Readonly<{
|
|
26
|
+
"onNetsuite:ready"?: ((setting: {
|
|
27
|
+
refNo?: string | null | undefined;
|
|
28
|
+
sync?: boolean | null | undefined;
|
|
29
|
+
subsidiary?: {
|
|
30
|
+
name?: string | null | undefined;
|
|
31
|
+
id: string;
|
|
32
|
+
} | null | undefined;
|
|
33
|
+
errors?: {
|
|
34
|
+
message: string;
|
|
35
|
+
createdAt: string;
|
|
36
|
+
}[] | null | undefined;
|
|
37
|
+
id: string;
|
|
38
|
+
}) => any) | undefined;
|
|
39
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
|
+
export default _default;
|
|
41
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
42
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
43
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
44
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
45
|
+
} : {
|
|
46
|
+
type: import('vue').PropType<T[K]>;
|
|
47
|
+
required: true;
|
|
48
|
+
};
|
|
49
|
+
};
|