@feedmepos/mf-inventory-portal 0.0.22-dev.9 → 0.0.23-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App-Y3Ez8Rjf.js +255 -0
- package/dist/ApprovalView-BUU1G4Q2.js +141 -0
- package/dist/{BindingsDialog-GzX9Bo2g.js → BindingsDialog-8wc4Q0JQ.js} +13 -12
- package/dist/{BindingsPicker-SbOetc0-.js → BindingsPicker-DGWN1LQc.js} +19 -18
- package/dist/{BindingsTable-CAcE5y8U.js → BindingsTable-7NJP2jT6.js} +20 -16
- package/dist/ClosingTemplateView-9s7vmwaT.js +1833 -0
- package/dist/FmDroppableField-8RzKjEdL.js +154 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B4DDh9-a.js +267 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-5DINn0ZB.js +436 -0
- package/dist/FmMultiselectDialog-7hok9sJP.js +411 -0
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-CxR1FCft.js +326 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-FQ0HjuL3.js +51 -0
- package/dist/IngredientGroupView-C3maHTCg.js +610 -0
- package/dist/IngredientsView-DCR3IBkR.js +1613 -0
- package/dist/IntegrationView-gO4h89Wj.js +1227 -0
- package/dist/InventoryBindingForm-dh3GeyG-.js +4 -0
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CJuo3i7W.js +278 -0
- package/dist/InventoryBindingSummary-BPoPcEoe.js +75 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-1FCwvO8A.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-olm8sZKt.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BezTV43V.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-5HIWHR_f.js → PurchaseOrderPrintPreview-Dix_fIoo.js} +14 -13
- package/dist/ReceiveRequestView-DdPiYb2P.js +4082 -0
- package/dist/RecipeView-C4-a4IEW.js +597 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-Du2txrIP.js +7778 -0
- package/dist/SupplierView-D_09FbQh.js +1474 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9MOos--.js +1144 -0
- package/dist/TransferTemplateView-j3CRy6Lc.js +1262 -0
- package/dist/{UnitView-BpU0Yk7X.js → UnitView-BXw2Vwq1.js} +30 -29
- package/dist/{WarehouseView-DqxWgogc.js → WarehouseView-CKamiETC.js} +205 -202
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/api/bill.d.ts +86 -240
- package/dist/api/closing-template.d.ts +6 -4
- package/dist/api/inventory.d.ts +281 -88
- package/dist/api/netsuite.d.ts +32 -1
- package/dist/api/purchase-order-template.d.ts +4 -2
- package/dist/api/supplier.d.ts +1 -0
- package/dist/app-GUbzqEtW.js +33456 -0
- package/dist/app.d.ts +259 -6
- package/dist/app.js +8 -7
- package/dist/array-hChJVZLE.js +43 -0
- 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/date2-CLE9fB2R.js +117 -0
- package/dist/dayjs.min-CY1d38w7.js +282 -0
- package/dist/{decimal-DWbwRn_v.js → decimal-SIjO6Mjw.js} +1 -1
- package/dist/defineDeepModel-l40rX7kr.js +13 -0
- package/dist/extensions/array.d.ts +1 -0
- package/dist/feature-BXruKUhX.js +78 -0
- package/dist/{format-time-from-id-BnmaRuab.js → format-time-from-id-CcFsBXmk.js} +1 -1
- package/dist/format-unit-display-DEKg8cJm.js +1198 -0
- package/dist/fuzzy-CVOV9zJc.js +41 -0
- package/dist/googlemap-Dm8ERVai.js +97 -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/index-BX5KZXhI.js +22279 -0
- package/dist/index-CVsyOEb1.js +10545 -0
- package/dist/index-m9e9nYfl.js +45 -0
- package/dist/netsuite-DAKRv7zr.js +146 -0
- package/dist/normalizeArguments-DP7Hrren.js +1552 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/rules-DlnN8IP3.js +198 -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 +295 -9
- package/dist/stores/location.d.ts +508 -485
- package/dist/stores/supplier.d.ts +124 -4
- package/dist/stores/warehouse.d.ts +7 -4
- package/dist/style.css +1 -1
- package/dist/supplier-B21WlSAM.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-inventory-binding-dialog-D3x6xj2O.js +95 -0
- package/dist/{use-template-enabled-locations-2-ClBq9FjN.js → use-template-enabled-locations-2-z-b-UXef.js} +9 -8
- package/dist/useTabStorage-BkIVScW_.js +25 -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 -1002
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1013
- 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 +1913 -53
- 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 +2370 -327
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2304 -261
- 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 +43 -120
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +34 -4
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.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.d.ts +71 -82
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +38 -1
- 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 +1279 -1528
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +2207 -446
- 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 -251
- 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/views/warehouse/components/WarehouseForm.vue.d.ts +14 -8
- package/dist/{xlsx-DiOKvJ6l.js → xlsx-6mM1eNiL.js} +1525 -1525
- package/dist/xlsx.util-BLftcF4q.js +78 -0
- package/package.json +7 -4
- package/dist/ApprovalView-BPsScR5_.js +0 -129
- package/dist/ClosingTemplateView-DECwEnlK.js +0 -1066
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DnogYrRE.js +0 -372
- package/dist/IngredientsView-8fT1Ljd5.js +0 -1758
- package/dist/IntegrationView-CjGLRM78.js +0 -1141
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-DlhNc8Vk.js +0 -88
- package/dist/ReceiveRequestView-CXZv8g5U.js +0 -215
- package/dist/RecipeView-sB0Lgmob.js +0 -581
- package/dist/StockView-CY2kNohB.js +0 -1892
- package/dist/SupplierView-DTqeZPts.js +0 -827
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BBby29tW.js +0 -762
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-ByNQap9n.js +0 -1498
- package/dist/TransferTemplateView-DkRVfAox.js +0 -1277
- package/dist/app-BuyAj4kw.js +0 -69068
- package/dist/defineDeepModel-DuVmbMwq.js +0 -13
- package/dist/id-to-date-CI5Vv0Ji.js +0 -30
- package/dist/purchase-order-transaction-type-DrFJFvtK.js +0 -676
- package/dist/stores/netsuite.d.ts +0 -49
- package/dist/supplier-BQyK2eSZ.js +0 -69
- package/dist/xlsx.util-CZ7zYxdP.js +0 -109
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { WorkBook, WorkSheet } from 'xlsx';
|
|
2
|
+
import { PurchaseOrderTransactionType } from '@/views/receive-request/constants/purchase-order-transaction-type';
|
|
3
|
+
import type { RevisionIdMeta } from '@feedmepos/inventory-core';
|
|
4
|
+
export declare enum ReservedSheetNames {
|
|
5
|
+
Source = "Source",
|
|
6
|
+
Destination = "Destination",
|
|
7
|
+
Ingredient = "Ingredient"
|
|
8
|
+
}
|
|
9
|
+
export interface TemplateItemRow {
|
|
10
|
+
code: string;
|
|
11
|
+
name: string;
|
|
12
|
+
/** abbrev for base unit or measurement unit */
|
|
13
|
+
unit: string;
|
|
14
|
+
defaultQuantity: number;
|
|
15
|
+
minimumQuantity: number;
|
|
16
|
+
maximumQuantity: number;
|
|
17
|
+
quantityStep: number;
|
|
18
|
+
}
|
|
19
|
+
export interface TemplateInfo {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
type: PurchaseOrderTransactionType;
|
|
23
|
+
transferFrom: string;
|
|
24
|
+
reference: string;
|
|
25
|
+
remark: string;
|
|
26
|
+
locations: string[];
|
|
27
|
+
}
|
|
28
|
+
export interface ImportCreateResult {
|
|
29
|
+
type: 'create';
|
|
30
|
+
template: Omit<FdoPurchaseOrderTemplate, '_id'>;
|
|
31
|
+
excelSheetName: string;
|
|
32
|
+
errors: string[];
|
|
33
|
+
}
|
|
34
|
+
export interface ImportUpdateResult {
|
|
35
|
+
type: 'update';
|
|
36
|
+
original: FdoPurchaseOrderTemplate;
|
|
37
|
+
template: FdoPurchaseOrderTemplate & RevisionIdMeta;
|
|
38
|
+
excelSheetName: string;
|
|
39
|
+
errors: string[];
|
|
40
|
+
}
|
|
41
|
+
export type ImportResult = {
|
|
42
|
+
invalidExcel: boolean;
|
|
43
|
+
invalidExcelMessage?: string;
|
|
44
|
+
importCreateResult: ImportCreateResult[];
|
|
45
|
+
importUpdateResult: ImportUpdateResult[];
|
|
46
|
+
};
|
|
47
|
+
export type ObjectWithIndex<T> = {
|
|
48
|
+
index: number;
|
|
49
|
+
data: T;
|
|
50
|
+
};
|
|
51
|
+
export declare const FakeUnit: FdoInventoryUnit;
|
|
52
|
+
export declare function templateItemToExcelRow(item: FdoPurchaseOrderTemplateItem): TemplateItemRow;
|
|
53
|
+
export type ColIdHeader<T> = {
|
|
54
|
+
id: keyof T;
|
|
55
|
+
name: string;
|
|
56
|
+
};
|
|
57
|
+
export declare function getExcelHeaders(): ColIdHeader<TemplateItemRow>[];
|
|
58
|
+
export declare function exportTemplates(templates: FdoPurchaseOrderTemplate[]): string;
|
|
59
|
+
export declare function exportImportTemplate(): string;
|
|
60
|
+
export declare function extractTransferFrom(transferFrom: string, transferType: PurchaseOrderTransactionType): {
|
|
61
|
+
from?: FdoPurchaseOrderSupplier;
|
|
62
|
+
errors: string[];
|
|
63
|
+
};
|
|
64
|
+
/** @returns empty array if for all locations */
|
|
65
|
+
export declare function extractLocations(locationRow: string[]): {
|
|
66
|
+
location?: FdoInventoryLocation;
|
|
67
|
+
errors: string[];
|
|
68
|
+
}[];
|
|
69
|
+
export declare function worksheetToTemplateMeta(sheet: WorkSheet): TemplateInfo;
|
|
70
|
+
export declare function worksheetToSkuRow(sheet: WorkSheet): ObjectWithIndex<TemplateItemRow>[];
|
|
71
|
+
export declare function excelTemplateItemToTemplateItem(row: TemplateItemRow, index: number, parsedContent: ObjectWithIndex<TemplateItemRow>[]): {
|
|
72
|
+
index: number;
|
|
73
|
+
errors: string[];
|
|
74
|
+
templateItem?: FdoPurchaseOrderTemplateItem;
|
|
75
|
+
};
|
|
76
|
+
export declare function getSkuToCreateUpdate(workbook: WorkBook): ImportResult;
|
|
@@ -1,251 +1 @@
|
|
|
1
|
-
export declare function removeDeletedSkus(template:
|
|
2
|
-
_rev?: string | null | undefined;
|
|
3
|
-
locations?: ({
|
|
4
|
-
doc?: any;
|
|
5
|
-
type: "restaurant";
|
|
6
|
-
name: string;
|
|
7
|
-
acceptRequest: boolean;
|
|
8
|
-
dbName: string;
|
|
9
|
-
} | {
|
|
10
|
-
type: "warehouse";
|
|
11
|
-
name: string;
|
|
12
|
-
acceptRequest: boolean;
|
|
13
|
-
dbName: string;
|
|
14
|
-
doc: {
|
|
15
|
-
pf_business?: {
|
|
16
|
-
internal?: boolean | null | undefined;
|
|
17
|
-
url?: string | null | undefined;
|
|
18
|
-
expiredAt?: string | null | undefined;
|
|
19
|
-
agentId?: string | null | undefined;
|
|
20
|
-
attributeSettings?: {
|
|
21
|
-
type: "string" | "number" | "boolean" | "date";
|
|
22
|
-
key: string;
|
|
23
|
-
entity: "restaurant" | "item";
|
|
24
|
-
}[] | null | undefined;
|
|
25
|
-
pf_agent?: {
|
|
26
|
-
clickupId?: string | null | undefined;
|
|
27
|
-
members?: {
|
|
28
|
-
pf_user?: {
|
|
29
|
-
email?: string | null | undefined;
|
|
30
|
-
phoneNumber?: string | null | undefined;
|
|
31
|
-
birthday?: string | null | undefined;
|
|
32
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
|
33
|
-
addresses?: {
|
|
34
|
-
name: string;
|
|
35
|
-
address: string;
|
|
36
|
-
coordinates: number[];
|
|
37
|
-
}[] | null | undefined;
|
|
38
|
-
photoURL?: string | null | undefined;
|
|
39
|
-
displayName?: string | null | undefined;
|
|
40
|
-
imported?: {
|
|
41
|
-
raw: Record<string, any>;
|
|
42
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
43
|
-
} | null | undefined;
|
|
44
|
-
_id: string;
|
|
45
|
-
} | null | undefined;
|
|
46
|
-
role: "ADMIN";
|
|
47
|
-
userId: string;
|
|
48
|
-
}[] | null | undefined;
|
|
49
|
-
code: string;
|
|
50
|
-
name: string;
|
|
51
|
-
_id: string;
|
|
52
|
-
isReseller: boolean;
|
|
53
|
-
} | null | undefined;
|
|
54
|
-
thumbnail?: string | null | undefined;
|
|
55
|
-
billingInfos?: {
|
|
56
|
-
_id?: string | null | undefined;
|
|
57
|
-
name: string;
|
|
58
|
-
address: {
|
|
59
|
-
coordinates?: number[] | null | undefined;
|
|
60
|
-
line2?: string | null | undefined;
|
|
61
|
-
state: string;
|
|
62
|
-
country: string;
|
|
63
|
-
line1: string;
|
|
64
|
-
city: string;
|
|
65
|
-
postcode: string;
|
|
66
|
-
};
|
|
67
|
-
email: string;
|
|
68
|
-
companyName: string;
|
|
69
|
-
contact: string;
|
|
70
|
-
}[] | null | undefined;
|
|
71
|
-
customerDisplayImages?: {
|
|
72
|
-
url: string;
|
|
73
|
-
restaurantIds: string[];
|
|
74
|
-
}[] | null | undefined;
|
|
75
|
-
name: string;
|
|
76
|
-
_id: string;
|
|
77
|
-
ownerId: string;
|
|
78
|
-
restaurantQuota: number;
|
|
79
|
-
warehouseQuota: number;
|
|
80
|
-
menuVersion: string;
|
|
81
|
-
} | null | undefined;
|
|
82
|
-
_id: string;
|
|
83
|
-
businessId: string;
|
|
84
|
-
profile: {
|
|
85
|
-
email?: string | null | undefined;
|
|
86
|
-
phoneNo?: string | null | undefined;
|
|
87
|
-
name: string;
|
|
88
|
-
address: {
|
|
89
|
-
coordinates?: number[] | null | undefined;
|
|
90
|
-
line2?: string | null | undefined;
|
|
91
|
-
state: string;
|
|
92
|
-
country: string;
|
|
93
|
-
line1: string;
|
|
94
|
-
city: string;
|
|
95
|
-
postcode: string;
|
|
96
|
-
};
|
|
97
|
-
regNo: string;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
})[] | null | undefined;
|
|
101
|
-
_id: string;
|
|
102
|
-
name: string;
|
|
103
|
-
purchaseOrder: {
|
|
104
|
-
remark?: string | null | undefined;
|
|
105
|
-
ref?: string | null | undefined;
|
|
106
|
-
supplier?: {
|
|
107
|
-
phoneNumber?: string | null | undefined;
|
|
108
|
-
email?: string | null | undefined;
|
|
109
|
-
_rev?: string | null | undefined;
|
|
110
|
-
internal?: "restaurant" | "warehouse" | null | undefined;
|
|
111
|
-
contactName?: string | null | undefined;
|
|
112
|
-
registrationNumber?: string | undefined;
|
|
113
|
-
supplyItems?: {
|
|
114
|
-
defaultCost: {
|
|
115
|
-
measurement?: {
|
|
116
|
-
id: string;
|
|
117
|
-
name: string;
|
|
118
|
-
abbrev: string;
|
|
119
|
-
conversion: {
|
|
120
|
-
amount: number;
|
|
121
|
-
precision: number;
|
|
122
|
-
};
|
|
123
|
-
} | null | undefined;
|
|
124
|
-
costPerUnit: {
|
|
125
|
-
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";
|
|
126
|
-
amount: number;
|
|
127
|
-
precision: number;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
skuId: string;
|
|
131
|
-
}[] | null | undefined;
|
|
132
|
-
_id: string;
|
|
133
|
-
name: string;
|
|
134
|
-
address: {
|
|
135
|
-
line2?: string | null | undefined;
|
|
136
|
-
line1: string;
|
|
137
|
-
state: string;
|
|
138
|
-
city: string;
|
|
139
|
-
postcode: string;
|
|
140
|
-
country: string;
|
|
141
|
-
};
|
|
142
|
-
} | undefined;
|
|
143
|
-
template?: string | null | undefined;
|
|
144
|
-
stockSnapshotId?: string | null | undefined;
|
|
145
|
-
effectiveAt?: string | null | undefined;
|
|
146
|
-
netSuite?: {
|
|
147
|
-
id?: string | null | undefined;
|
|
148
|
-
subsidiary: {
|
|
149
|
-
id?: string | null | undefined;
|
|
150
|
-
name?: string | null | undefined;
|
|
151
|
-
};
|
|
152
|
-
} | null | undefined;
|
|
153
|
-
items: {
|
|
154
|
-
measurement?: {
|
|
155
|
-
id: string;
|
|
156
|
-
name: string;
|
|
157
|
-
abbrev: string;
|
|
158
|
-
conversion: {
|
|
159
|
-
amount: number;
|
|
160
|
-
precision: number;
|
|
161
|
-
};
|
|
162
|
-
} | null | undefined;
|
|
163
|
-
totalCost?: {
|
|
164
|
-
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";
|
|
165
|
-
amount: number;
|
|
166
|
-
precision: number;
|
|
167
|
-
} | null | undefined;
|
|
168
|
-
sku: {
|
|
169
|
-
trackingMeasurement?: string | null | undefined;
|
|
170
|
-
convert?: {
|
|
171
|
-
measurement?: string | null | undefined;
|
|
172
|
-
inventoryBindings?: {
|
|
173
|
-
measurement?: {
|
|
174
|
-
id: string;
|
|
175
|
-
name: string;
|
|
176
|
-
abbrev: string;
|
|
177
|
-
conversion: {
|
|
178
|
-
amount: number;
|
|
179
|
-
precision: number;
|
|
180
|
-
};
|
|
181
|
-
} | null | undefined;
|
|
182
|
-
type: "RECIPE" | "SKU";
|
|
183
|
-
amount: {
|
|
184
|
-
amount: number;
|
|
185
|
-
precision: number;
|
|
186
|
-
};
|
|
187
|
-
id: string;
|
|
188
|
-
}[] | null | undefined;
|
|
189
|
-
} | null | undefined;
|
|
190
|
-
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
191
|
-
defaultCost?: {
|
|
192
|
-
measurement?: {
|
|
193
|
-
id: string;
|
|
194
|
-
name: string;
|
|
195
|
-
abbrev: string;
|
|
196
|
-
conversion: {
|
|
197
|
-
amount: number;
|
|
198
|
-
precision: number;
|
|
199
|
-
};
|
|
200
|
-
} | null | undefined;
|
|
201
|
-
costPerUnit: {
|
|
202
|
-
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";
|
|
203
|
-
amount: number;
|
|
204
|
-
precision: number;
|
|
205
|
-
};
|
|
206
|
-
} | null | undefined;
|
|
207
|
-
thresholds?: {
|
|
208
|
-
low: number;
|
|
209
|
-
mid: number;
|
|
210
|
-
} | null | undefined;
|
|
211
|
-
operationalGroup?: string | null | undefined;
|
|
212
|
-
unit: {
|
|
213
|
-
_id: string;
|
|
214
|
-
name: string;
|
|
215
|
-
abbrev: string;
|
|
216
|
-
precision: number;
|
|
217
|
-
measurements: {
|
|
218
|
-
id: string;
|
|
219
|
-
name: string;
|
|
220
|
-
abbrev: string;
|
|
221
|
-
conversion: {
|
|
222
|
-
amount: number;
|
|
223
|
-
precision: number;
|
|
224
|
-
};
|
|
225
|
-
}[];
|
|
226
|
-
};
|
|
227
|
-
code: string;
|
|
228
|
-
_id: string;
|
|
229
|
-
name: string;
|
|
230
|
-
};
|
|
231
|
-
code: string;
|
|
232
|
-
name: string;
|
|
233
|
-
quantity: {
|
|
234
|
-
amount: number;
|
|
235
|
-
precision: number;
|
|
236
|
-
};
|
|
237
|
-
quantityStep: {
|
|
238
|
-
amount: number;
|
|
239
|
-
precision: number;
|
|
240
|
-
};
|
|
241
|
-
minimumQuantity: {
|
|
242
|
-
amount: number;
|
|
243
|
-
precision: number;
|
|
244
|
-
};
|
|
245
|
-
maximumQuantity: {
|
|
246
|
-
amount: number;
|
|
247
|
-
precision: number;
|
|
248
|
-
};
|
|
249
|
-
}[];
|
|
250
|
-
};
|
|
251
|
-
};
|
|
1
|
+
export declare function removeDeletedSkus<T extends FdoPurchaseOrderTemplate>(template: T): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function templateItemError(item: FdoPurchaseOrderTemplateItem): boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { UnitDialogProps } from '../components/unit-dialog/UnitDialogProps';
|
|
2
|
-
export declare const useUnitForm: import("pinia").StoreDefinition<"unitForm", Pick<{
|
|
2
|
+
export declare const useUnitForm: import("pinia").StoreDefinition<"unitForm", import("pinia")._UnwrapAll<Pick<{
|
|
3
3
|
createUnit: () => void;
|
|
4
4
|
updateUnit: (unitToUpdate: FdoInventoryUnit) => Promise<void>;
|
|
5
5
|
deleteUnit: (unit: FdoInventoryUnit) => void;
|
|
6
6
|
unitDialogProps: import("vue").Ref<UnitDialogProps | undefined, UnitDialogProps | undefined>;
|
|
7
7
|
unitViewLoading: import("vue").Ref<boolean, boolean>;
|
|
8
|
-
}, "unitDialogProps" | "unitViewLoading"
|
|
8
|
+
}, "unitDialogProps" | "unitViewLoading">>, Pick<{
|
|
9
9
|
createUnit: () => void;
|
|
10
10
|
updateUnit: (unitToUpdate: FdoInventoryUnit) => Promise<void>;
|
|
11
11
|
deleteUnit: (unit: FdoInventoryUnit) => void;
|
|
@@ -10,10 +10,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
10
10
|
url?: string | null | undefined;
|
|
11
11
|
expiredAt?: string | null | undefined;
|
|
12
12
|
agentId?: string | null | undefined;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
restaurantTagGroups?: {
|
|
14
|
+
name: string;
|
|
15
|
+
id: string;
|
|
16
|
+
tags: {
|
|
17
|
+
name: string;
|
|
18
|
+
id: string;
|
|
19
|
+
}[];
|
|
17
20
|
}[] | null | undefined;
|
|
18
21
|
pf_agent?: {
|
|
19
22
|
clickupId?: string | null | undefined;
|
|
@@ -98,10 +101,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
98
101
|
url?: string | null | undefined;
|
|
99
102
|
expiredAt?: string | null | undefined;
|
|
100
103
|
agentId?: string | null | undefined;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
restaurantTagGroups?: {
|
|
105
|
+
name: string;
|
|
106
|
+
id: string;
|
|
107
|
+
tags: {
|
|
108
|
+
name: string;
|
|
109
|
+
id: string;
|
|
110
|
+
}[];
|
|
105
111
|
}[] | null | undefined;
|
|
106
112
|
pf_agent?: {
|
|
107
113
|
clickupId?: string | null | undefined;
|