@feedmepos/mf-inventory-portal 0.0.19-dev.4 → 0.0.19-dev.5
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-CT8w22Ga.js → ApprovalView-DY_a4R25.js} +16 -15
- package/dist/{BindingsDialog-CrB5aA3X.js → BindingsDialog-GITQp9DQ.js} +1 -1
- package/dist/{BindingsPicker-jBTfZ4vJ.js → BindingsPicker-CmS01WWD.js} +5 -5
- package/dist/{BindingsTable-DaZ3Vxpn.js → BindingsTable-CsMAutCO.js} +1 -1
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BWFoHqPU.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BstbCK2r.js} +1 -1
- package/dist/{IngredientsView-DOoXPJop.js → IngredientsView-BM218iE0.js} +26 -25
- package/dist/{IntegrationView-BX1nvP-k.js → IntegrationView-DrPzZ7YF.js} +2 -2
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CFConGe4.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BtY633D-.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-DBPQovO2.js +88 -0
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js +29 -0
- package/dist/{PurchaseOrderPrintPreview-DSXXSlof.js → PurchaseOrderPrintPreview-s_pZiI6a.js} +11 -11
- package/dist/ReceiveRequestView-De2UMTFi.js +208 -0
- package/dist/{RecipeView-DtoX2e_9.js → RecipeView-CXH_9Jbb.js} +117 -116
- package/dist/{StockView-DTnY8LfO.js → StockView-Cld0Ss_r.js} +17 -16
- package/dist/{SupplierView-CzWM2tH4.js → SupplierView-DtaCFERj.js} +6 -6
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-kgcXwT9t.js +745 -0
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-C1YU60Mq.js +1269 -0
- package/dist/TransferTemplateView-BSmhw7Vl.js +1130 -0
- package/dist/{UnitView-Bk-OLoW2.js → UnitView-BS9sJznU.js} +33 -33
- package/dist/{WarehouseView-C3F_YWO-.js → WarehouseView-D0xCjihu.js} +4 -4
- package/dist/api/purchase-order-template.d.ts +7 -0
- package/dist/{app-YOcJA0qj.js → app-Bq5a4Oca.js} +6097 -5889
- package/dist/app.d.ts +38 -0
- package/dist/app.js +5 -4
- package/dist/components/FmUnitInputProps.d.ts +2 -0
- package/dist/components/FmUnitInputRules.d.ts +1 -0
- package/dist/components/row-action.enum.d.ts +2 -0
- package/dist/composable/defineDeepModel.d.ts +2 -0
- package/dist/{decimal-Cr-8e35u.js → decimal-Bk4WDsfO.js} +1 -1
- package/dist/helper/country.d.ts +2 -0
- package/dist/id-to-date-DOITPfk-.js +30 -0
- package/dist/layout-Dkdyeqv8.js +147 -0
- package/dist/purchase-order-transaction-type-std52lFO.js +295 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/row-action.enum-7jVyol1k.js +36 -0
- package/dist/stores/supplier.d.ts +90 -7
- package/dist/style.css +1 -1
- package/dist/supplier-B1qyquXV.js +54 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +2 -0
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingSummary.vue.d.ts +26 -0
- package/dist/views/ingredients/helper/calculate-default-cost.d.ts +9 -0
- package/dist/views/receive-request/components/transfer-dialog/TransferDialogProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +2 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +3 -1
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +6 -0
- package/dist/views/transfer-template/TransferTemplateView.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +22 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialogProps.d.ts +10 -0
- package/dist/views/transfer-template/components/transfer-template-form/TransferTemplateForm.vue.d.ts +16 -0
- package/dist/views/transfer-template/components/transfer-template-form/TransferTemplateFormProps.d.ts +7 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItem.vue.d.ts +18 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +116 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +112 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +470 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +289 -0
- package/dist/{xlsx-CUjMCYbh.js → xlsx-Bx1vSwYW.js} +1 -1
- package/dist/{xlsx.util-ByRzckFP.js → xlsx.util-DsOslDqG.js} +2 -2
- package/package.json +4 -4
- package/dist/PreviewBadge.vue_vue_type_script_setup_true_lang-BvadeWUz.js +0 -35
- package/dist/ReceiveRequestView-5nXXoRL_.js +0 -1394
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DIc2G2jF.js +0 -1031
- package/dist/id-to-date-9OvJMyEX.js +0 -121
- package/dist/layout-DCDPTIlR.js +0 -151
- package/dist/row-action.enum-BwQbURNh.js +0 -28
- package/dist/supplier-Bos9ifGc.js +0 -65
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { ValidationResult } from '@feedmepos/ui-library';
|
|
1
2
|
export interface InventoryBindingFormProps {
|
|
2
3
|
id?: string;
|
|
3
4
|
modelValue?: FdoInventoryBinding[];
|
|
4
5
|
excludeBindingId?: string;
|
|
6
|
+
rules?: (ValidationResult | ((bindings: FdoInventoryBinding[]) => ValidationResult))[];
|
|
5
7
|
iframeMode?: boolean;
|
|
6
8
|
disabled?: boolean;
|
|
7
9
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface InventoryBindingSummaryRow {
|
|
2
|
+
_id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
binding: FdoInventoryBinding[];
|
|
5
|
+
}
|
|
6
|
+
export interface InventoryBindingSummaryProps {
|
|
7
|
+
rowData: InventoryBindingSummaryRow[];
|
|
8
|
+
}
|
|
9
|
+
export interface InventoryBindingSummaryEvents {
|
|
10
|
+
(event: 'row-click', row: InventoryBindingSummaryRow): void;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<InventoryBindingSummaryProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"row-click": (row: InventoryBindingSummaryRow) => void;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<InventoryBindingSummaryProps>>> & {
|
|
15
|
+
"onRow-click"?: ((row: InventoryBindingSummaryRow) => any) | undefined;
|
|
16
|
+
}, {}, {}>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
19
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
20
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
21
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
22
|
+
} : {
|
|
23
|
+
type: import('vue').PropType<T[K]>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { FdoDecimal, FdoDinero } from '@feedmepos/core/entity';
|
|
2
|
+
export declare function calculateDefaultCost(item: FdoInventorySku, amount: FdoDecimal, measurement?: FdoUnitMeasurement | null, overrides?: {
|
|
3
|
+
supplier?: Pick<FdoSupplier, 'supplyItems'> | null;
|
|
4
|
+
manualTotalCost?: FdoDinero | null;
|
|
5
|
+
} | null): {
|
|
6
|
+
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";
|
|
7
|
+
amount: number;
|
|
8
|
+
precision: number;
|
|
9
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
2
|
modelValue: import("vue").PropType<Omit<{
|
|
3
3
|
_rev?: string | null | undefined;
|
|
4
|
+
template?: string | null | undefined;
|
|
4
5
|
request?: {
|
|
5
6
|
id: string;
|
|
6
7
|
adjustmentIds: string[];
|
|
@@ -292,6 +293,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
292
293
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
293
294
|
modelValue: import("vue").PropType<Omit<{
|
|
294
295
|
_rev?: string | null | undefined;
|
|
296
|
+
template?: string | null | undefined;
|
|
295
297
|
request?: {
|
|
296
298
|
id: string;
|
|
297
299
|
adjustmentIds: string[];
|
|
@@ -7,6 +7,7 @@ export declare function useReceiveRequestForm(scope: 'receive/request' | 'approv
|
|
|
7
7
|
remark?: string | null | undefined;
|
|
8
8
|
_rev?: string | null | undefined;
|
|
9
9
|
ref?: string | null | undefined;
|
|
10
|
+
template?: string | null | undefined;
|
|
10
11
|
request?: {
|
|
11
12
|
id: string;
|
|
12
13
|
adjustmentIds: string[];
|
|
@@ -237,6 +238,7 @@ export declare function useReceiveRequestForm(scope: 'receive/request' | 'approv
|
|
|
237
238
|
remark?: string | null | undefined;
|
|
238
239
|
_rev?: string | null | undefined;
|
|
239
240
|
ref?: string | null | undefined;
|
|
241
|
+
template?: string | null | undefined;
|
|
240
242
|
request?: {
|
|
241
243
|
id: string;
|
|
242
244
|
adjustmentIds: string[];
|
|
@@ -480,7 +482,7 @@ export declare function useReceiveRequestForm(scope: 'receive/request' | 'approv
|
|
|
480
482
|
fetchData: () => Promise<void>;
|
|
481
483
|
loading: import("vue").Ref<boolean>;
|
|
482
484
|
transferDialogProps: import("vue").Ref<TransferDialogProps | undefined>;
|
|
483
|
-
promptCreateTransferDialog: () => void;
|
|
485
|
+
promptCreateTransferDialog: (init?: Partial<FdoPurchaseOrder>) => void;
|
|
484
486
|
promptUpdateTransferDialog: (po: FdoPurchaseOrder) => void;
|
|
485
487
|
transferDetailsProps: import("vue").Ref<TransferDetailsProps | undefined>;
|
|
486
488
|
promptShowTransferDetails: (purchaseOrder: FdoPurchaseOrder, poRequest?: FdoPurchaseOrderRequest) => Promise<void>;
|
|
@@ -16,6 +16,7 @@ export declare function useReceiveRequestTable(scope: 'receive/request' | 'appro
|
|
|
16
16
|
remark?: string | null | undefined;
|
|
17
17
|
_rev?: string | null | undefined;
|
|
18
18
|
ref?: string | null | undefined;
|
|
19
|
+
template?: string | null | undefined;
|
|
19
20
|
request?: {
|
|
20
21
|
id: string;
|
|
21
22
|
adjustmentIds: string[];
|
|
@@ -284,6 +285,7 @@ export declare function useReceiveRequestTable(scope: 'receive/request' | 'appro
|
|
|
284
285
|
remark?: string | null | undefined;
|
|
285
286
|
_rev?: string | null | undefined;
|
|
286
287
|
ref?: string | null | undefined;
|
|
288
|
+
template?: string | null | undefined;
|
|
287
289
|
request?: {
|
|
288
290
|
id: string;
|
|
289
291
|
adjustmentIds: string[];
|
|
@@ -522,6 +524,7 @@ export declare function useReceiveRequestTable(scope: 'receive/request' | 'appro
|
|
|
522
524
|
remark?: string | null | undefined;
|
|
523
525
|
_rev?: string | null | undefined;
|
|
524
526
|
ref?: string | null | undefined;
|
|
527
|
+
template?: string | null | undefined;
|
|
525
528
|
request?: {
|
|
526
529
|
id: string;
|
|
527
530
|
adjustmentIds: string[];
|
|
@@ -776,6 +779,7 @@ export declare function useReceiveRequestTable(scope: 'receive/request' | 'appro
|
|
|
776
779
|
remark?: string | null | undefined;
|
|
777
780
|
_rev?: string | null | undefined;
|
|
778
781
|
ref?: string | null | undefined;
|
|
782
|
+
template?: string | null | undefined;
|
|
779
783
|
request?: {
|
|
780
784
|
id: string;
|
|
781
785
|
adjustmentIds: string[];
|
|
@@ -1055,6 +1059,7 @@ export declare function useReceiveRequestTable(scope: 'receive/request' | 'appro
|
|
|
1055
1059
|
remark?: string | null | undefined;
|
|
1056
1060
|
_rev?: string | null | undefined;
|
|
1057
1061
|
ref?: string | null | undefined;
|
|
1062
|
+
template?: string | null | undefined;
|
|
1058
1063
|
request?: {
|
|
1059
1064
|
id: string;
|
|
1060
1065
|
adjustmentIds: string[];
|
|
@@ -1308,6 +1313,7 @@ export declare function useReceiveRequestTable(scope: 'receive/request' | 'appro
|
|
|
1308
1313
|
remark?: string | null | undefined;
|
|
1309
1314
|
_rev?: string | null | undefined;
|
|
1310
1315
|
ref?: string | null | undefined;
|
|
1316
|
+
template?: string | null | undefined;
|
|
1311
1317
|
request?: {
|
|
1312
1318
|
id: string;
|
|
1313
1319
|
adjustmentIds: string[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { TransferTemplateDialogProps } from './TransferTemplateDialogProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<TransferTemplateDialogProps>, {
|
|
3
|
+
validateInputs: () => void;
|
|
4
|
+
resetInputsValidation: () => void;
|
|
5
|
+
resetInputs: () => void;
|
|
6
|
+
}, unknown, {}, {}, 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<TransferTemplateDialogProps>>> & {
|
|
10
|
+
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
11
|
+
onSubmitted?: (() => any) | undefined;
|
|
12
|
+
}, {}, {}>;
|
|
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,10 @@
|
|
|
1
|
+
import type { FormMode } from '@/components/form/form-mode.enum';
|
|
2
|
+
export interface TransferTemplateDialogProps {
|
|
3
|
+
mode?: FormMode;
|
|
4
|
+
modelValue?: FdoPurchaseOrderTemplate;
|
|
5
|
+
show?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface TransferTemplateDialogEvents {
|
|
8
|
+
(event: 'update:show', show: boolean): void;
|
|
9
|
+
(event: 'submitted'): void;
|
|
10
|
+
}
|
package/dist/views/transfer-template/components/transfer-template-form/TransferTemplateForm.vue.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { TransferTemplateFormProps } from './TransferTemplateFormProps';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<TransferTemplateFormProps>, {
|
|
3
|
+
validateInputs: () => void;
|
|
4
|
+
resetInputsValidation: () => void;
|
|
5
|
+
resetInputs: () => void;
|
|
6
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<TransferTemplateFormProps>>>, {}, {}>;
|
|
7
|
+
export default _default;
|
|
8
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
9
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
10
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
11
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
12
|
+
} : {
|
|
13
|
+
type: import('vue').PropType<T[K]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type Cell, type Row } from '@tanstack/vue-table';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
cellByColId: Record<string, Cell<any, any>>;
|
|
4
|
+
row: Row<unknown>;
|
|
5
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
cellByColId: Record<string, Cell<any, any>>;
|
|
7
|
+
row: Row<unknown>;
|
|
8
|
+
}>>>, {}, {}>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import type { ISelectItem } from '@feedmepos/ui-library';
|
|
2
|
+
export declare function useTransferLocations(modelGetter: () => Pick<FdoPurchaseOrder, 'supplier'>, modelSetter: (model: Partial<FdoPurchaseOrder>) => void): {
|
|
3
|
+
transferLocationModel: import("vue").WritableComputedRef<string>;
|
|
4
|
+
transferLocationOptions: import("vue").ComputedRef<ISelectItem[]>;
|
|
5
|
+
locationOptionsTypePurchase: import("vue").ComputedRef<{
|
|
6
|
+
_rev?: string | null | undefined;
|
|
7
|
+
email?: string | null | undefined;
|
|
8
|
+
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
9
|
+
contactName?: string | null | undefined;
|
|
10
|
+
phoneNumber?: string | null | undefined;
|
|
11
|
+
registrationNumber?: string | undefined;
|
|
12
|
+
supplyItems?: {
|
|
13
|
+
defaultCost: {
|
|
14
|
+
measurement?: {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
abbrev: string;
|
|
18
|
+
conversion: {
|
|
19
|
+
amount: number;
|
|
20
|
+
precision: number;
|
|
21
|
+
};
|
|
22
|
+
} | null | undefined;
|
|
23
|
+
costPerUnit: {
|
|
24
|
+
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";
|
|
25
|
+
amount: number;
|
|
26
|
+
precision: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
skuId: string;
|
|
30
|
+
}[] | null | undefined;
|
|
31
|
+
_id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
address: {
|
|
34
|
+
line2?: string | null | undefined;
|
|
35
|
+
line1: string;
|
|
36
|
+
state: string;
|
|
37
|
+
city: string;
|
|
38
|
+
postcode: string;
|
|
39
|
+
country: string;
|
|
40
|
+
};
|
|
41
|
+
}[]>;
|
|
42
|
+
locationOptionsTypeTransfer: import("vue").ComputedRef<{
|
|
43
|
+
_rev?: string | null | undefined;
|
|
44
|
+
email?: string | null | undefined;
|
|
45
|
+
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
46
|
+
contactName?: string | null | undefined;
|
|
47
|
+
phoneNumber?: string | null | undefined;
|
|
48
|
+
registrationNumber?: string | undefined;
|
|
49
|
+
supplyItems?: {
|
|
50
|
+
defaultCost: {
|
|
51
|
+
measurement?: {
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
abbrev: string;
|
|
55
|
+
conversion: {
|
|
56
|
+
amount: number;
|
|
57
|
+
precision: number;
|
|
58
|
+
};
|
|
59
|
+
} | null | undefined;
|
|
60
|
+
costPerUnit: {
|
|
61
|
+
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";
|
|
62
|
+
amount: number;
|
|
63
|
+
precision: number;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
skuId: string;
|
|
67
|
+
}[] | null | undefined;
|
|
68
|
+
_id: string;
|
|
69
|
+
name: string;
|
|
70
|
+
address: {
|
|
71
|
+
line2?: string | null | undefined;
|
|
72
|
+
line1: string;
|
|
73
|
+
state: string;
|
|
74
|
+
city: string;
|
|
75
|
+
postcode: string;
|
|
76
|
+
country: string;
|
|
77
|
+
};
|
|
78
|
+
}[]>;
|
|
79
|
+
selectedLocation: import("vue").ComputedRef<{
|
|
80
|
+
_rev?: string | null | undefined;
|
|
81
|
+
email?: string | null | undefined;
|
|
82
|
+
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
83
|
+
contactName?: string | null | undefined;
|
|
84
|
+
phoneNumber?: string | null | undefined;
|
|
85
|
+
registrationNumber?: string | undefined;
|
|
86
|
+
supplyItems?: {
|
|
87
|
+
defaultCost: {
|
|
88
|
+
measurement?: {
|
|
89
|
+
id: string;
|
|
90
|
+
name: string;
|
|
91
|
+
abbrev: string;
|
|
92
|
+
conversion: {
|
|
93
|
+
amount: number;
|
|
94
|
+
precision: number;
|
|
95
|
+
};
|
|
96
|
+
} | null | undefined;
|
|
97
|
+
costPerUnit: {
|
|
98
|
+
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";
|
|
99
|
+
amount: number;
|
|
100
|
+
precision: number;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
skuId: string;
|
|
104
|
+
}[] | null | undefined;
|
|
105
|
+
_id: string;
|
|
106
|
+
name: string;
|
|
107
|
+
address: {
|
|
108
|
+
line2?: string | null | undefined;
|
|
109
|
+
line1: string;
|
|
110
|
+
state: string;
|
|
111
|
+
city: string;
|
|
112
|
+
postcode: string;
|
|
113
|
+
country: string;
|
|
114
|
+
};
|
|
115
|
+
} | null>;
|
|
116
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { PurchaseOrderTransactionType } from '@/views/receive-request/constants/purchase-order-transaction-type';
|
|
2
|
+
import { type ColumnDef } from '@feedmepos/ui-library';
|
|
3
|
+
export declare enum ItemColumn {
|
|
4
|
+
Code = "Code",
|
|
5
|
+
Name = "Name",
|
|
6
|
+
Amount = "Amount",
|
|
7
|
+
MinimumAmount = "MinimumAmount",
|
|
8
|
+
Step = "Step",
|
|
9
|
+
Cost = "Cost",
|
|
10
|
+
Delete = "Delete"
|
|
11
|
+
}
|
|
12
|
+
export declare function useTransferTemplateItems(controller: {
|
|
13
|
+
get items(): FdoPurchaseOrderItem[];
|
|
14
|
+
get supplier(): FdoPurchaseOrderSupplier;
|
|
15
|
+
get transferType(): PurchaseOrderTransactionType;
|
|
16
|
+
updateItem: (item: FdoPurchaseOrderTemplateItem) => void;
|
|
17
|
+
deleteItem: (item: FdoPurchaseOrderTemplateItem) => void;
|
|
18
|
+
}): {
|
|
19
|
+
columnDefs: import("vue").ComputedRef<ColumnDef<{
|
|
20
|
+
measurement?: {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
abbrev: string;
|
|
24
|
+
conversion: {
|
|
25
|
+
amount: number;
|
|
26
|
+
precision: number;
|
|
27
|
+
};
|
|
28
|
+
} | null | undefined;
|
|
29
|
+
totalCost?: {
|
|
30
|
+
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";
|
|
31
|
+
amount: number;
|
|
32
|
+
precision: number;
|
|
33
|
+
} | null | undefined;
|
|
34
|
+
quantityStep?: {
|
|
35
|
+
amount: number;
|
|
36
|
+
precision: number;
|
|
37
|
+
} | null | undefined;
|
|
38
|
+
minimumQuantity?: {
|
|
39
|
+
amount: number;
|
|
40
|
+
precision: number;
|
|
41
|
+
} | null | undefined;
|
|
42
|
+
sku: {
|
|
43
|
+
trackingMeasurement?: string | null | undefined;
|
|
44
|
+
convert?: {
|
|
45
|
+
measurement?: string | null | undefined;
|
|
46
|
+
inventoryBindings?: {
|
|
47
|
+
measurement?: {
|
|
48
|
+
id: string;
|
|
49
|
+
name: string;
|
|
50
|
+
abbrev: string;
|
|
51
|
+
conversion: {
|
|
52
|
+
amount: number;
|
|
53
|
+
precision: number;
|
|
54
|
+
};
|
|
55
|
+
} | null | undefined;
|
|
56
|
+
type: "RECIPE" | "SKU";
|
|
57
|
+
amount: {
|
|
58
|
+
amount: number;
|
|
59
|
+
precision: number;
|
|
60
|
+
};
|
|
61
|
+
id: string;
|
|
62
|
+
}[] | null | undefined;
|
|
63
|
+
} | null | undefined;
|
|
64
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
65
|
+
defaultCost?: {
|
|
66
|
+
measurement?: {
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
abbrev: string;
|
|
70
|
+
conversion: {
|
|
71
|
+
amount: number;
|
|
72
|
+
precision: number;
|
|
73
|
+
};
|
|
74
|
+
} | null | undefined;
|
|
75
|
+
costPerUnit: {
|
|
76
|
+
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";
|
|
77
|
+
amount: number;
|
|
78
|
+
precision: number;
|
|
79
|
+
};
|
|
80
|
+
} | null | undefined;
|
|
81
|
+
thresholds?: {
|
|
82
|
+
low: number;
|
|
83
|
+
mid: number;
|
|
84
|
+
} | null | undefined;
|
|
85
|
+
operationalGroup?: string | null | undefined;
|
|
86
|
+
unit: {
|
|
87
|
+
_id: string;
|
|
88
|
+
name: string;
|
|
89
|
+
abbrev: string;
|
|
90
|
+
precision: number;
|
|
91
|
+
measurements: {
|
|
92
|
+
id: string;
|
|
93
|
+
name: string;
|
|
94
|
+
abbrev: string;
|
|
95
|
+
conversion: {
|
|
96
|
+
amount: number;
|
|
97
|
+
precision: number;
|
|
98
|
+
};
|
|
99
|
+
}[];
|
|
100
|
+
};
|
|
101
|
+
code: string;
|
|
102
|
+
_id: string;
|
|
103
|
+
name: string;
|
|
104
|
+
};
|
|
105
|
+
code: string;
|
|
106
|
+
name: string;
|
|
107
|
+
quantity: {
|
|
108
|
+
amount: number;
|
|
109
|
+
precision: number;
|
|
110
|
+
};
|
|
111
|
+
}>[]>;
|
|
112
|
+
};
|