@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,102 @@
|
|
|
1
|
+
export interface NetSuiteState {
|
|
2
|
+
setting: Omit<FdoNetSuiteSetting, 'realm' | 'accessToken'>;
|
|
3
|
+
}
|
|
4
|
+
export declare function useNetSuiteStore(): {
|
|
5
|
+
readonly isEnabled: boolean;
|
|
6
|
+
readonly isBusinessLocation: boolean;
|
|
7
|
+
readonly state: {
|
|
8
|
+
setting: {
|
|
9
|
+
_id: string;
|
|
10
|
+
enable: boolean;
|
|
11
|
+
items: {
|
|
12
|
+
pktCode?: string | null | undefined;
|
|
13
|
+
pktName?: string | null | undefined;
|
|
14
|
+
externalId?: string | null | undefined;
|
|
15
|
+
id: string;
|
|
16
|
+
netSuiteId: string;
|
|
17
|
+
unitTypeId: string;
|
|
18
|
+
unitOfMeasureId: string;
|
|
19
|
+
subsidiaryIds: string[];
|
|
20
|
+
}[];
|
|
21
|
+
locations: {
|
|
22
|
+
type: "restaurant" | "warehouse";
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
netSuiteId: string;
|
|
26
|
+
subsidiaryId: string;
|
|
27
|
+
}[];
|
|
28
|
+
syncedAt?: string | null | undefined;
|
|
29
|
+
restlet?: {
|
|
30
|
+
type: "createItemReceipt";
|
|
31
|
+
scriptId: string;
|
|
32
|
+
deploymentId: string;
|
|
33
|
+
}[] | null | undefined;
|
|
34
|
+
childItems: {
|
|
35
|
+
pktCode?: string | null | undefined;
|
|
36
|
+
pktName?: string | null | undefined;
|
|
37
|
+
externalId?: string | null | undefined;
|
|
38
|
+
netSuiteId: string;
|
|
39
|
+
parentNetSuiteId: string;
|
|
40
|
+
unitTypeId: string;
|
|
41
|
+
unitOfMeasureId: string;
|
|
42
|
+
}[];
|
|
43
|
+
units: {
|
|
44
|
+
id: string;
|
|
45
|
+
measurements: {
|
|
46
|
+
id: string;
|
|
47
|
+
netSuiteId: string;
|
|
48
|
+
}[];
|
|
49
|
+
netSuiteId: string;
|
|
50
|
+
}[];
|
|
51
|
+
subsidiaries: {
|
|
52
|
+
parentId?: string | undefined;
|
|
53
|
+
id: string;
|
|
54
|
+
name: string;
|
|
55
|
+
country: string;
|
|
56
|
+
currency: string;
|
|
57
|
+
}[];
|
|
58
|
+
vendors: {
|
|
59
|
+
custentity_financeapproval?: boolean | null | undefined;
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
netSuiteId: string;
|
|
63
|
+
subsidiaryId: string;
|
|
64
|
+
}[];
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
readonly netSuiteItemIdToSkuId: Map<unknown, [string, ...string[]]>;
|
|
68
|
+
readonly netSuiteMeasurementIdToMeasurementId: Map<unknown, [string, ...string[]]>;
|
|
69
|
+
getNetSuiteVendor(supplierId: string): FdoNetSuiteVendor | undefined;
|
|
70
|
+
getNetSuiteLocation(locationId: string): FdoNetSuiteLocation | undefined;
|
|
71
|
+
getLocationSubsidiary(netSuiteLocationId?: string | null): {
|
|
72
|
+
id: string | undefined;
|
|
73
|
+
name: string;
|
|
74
|
+
fullName: string;
|
|
75
|
+
};
|
|
76
|
+
currentLocationSubsidiary(): {
|
|
77
|
+
id?: string;
|
|
78
|
+
name: string;
|
|
79
|
+
fullName: string;
|
|
80
|
+
};
|
|
81
|
+
currentVendorSubsidiary(vendorId: string): {
|
|
82
|
+
id?: string;
|
|
83
|
+
name: string;
|
|
84
|
+
fullName: string;
|
|
85
|
+
};
|
|
86
|
+
readonly subsidiaryOptions: {
|
|
87
|
+
label: string;
|
|
88
|
+
value: FdoPurchaseOrderSubsidiaryNetSuiteSetting;
|
|
89
|
+
}[];
|
|
90
|
+
getAvailableItems(subsidiaryId?: string | null): string[];
|
|
91
|
+
readSetting(): Promise<void>;
|
|
92
|
+
};
|
|
93
|
+
export type FdoNetSuiteSubsidiaryWithChildren = FdoNetSuiteSubsidiary & {
|
|
94
|
+
fullName?: string;
|
|
95
|
+
depth: number;
|
|
96
|
+
children: FdoNetSuiteSubsidiaryWithChildren[];
|
|
97
|
+
};
|
|
98
|
+
export declare function buildSubsidiaryTree(data: FdoNetSuiteSubsidiary[], subsidiaryId?: string | null): {
|
|
99
|
+
tree: FdoNetSuiteSubsidiaryWithChildren[];
|
|
100
|
+
available: string[];
|
|
101
|
+
flat: FdoNetSuiteSubsidiaryWithChildren[];
|
|
102
|
+
};
|
|
@@ -62,7 +62,7 @@ export declare function useInventoryStore(): {
|
|
|
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;
|
|
@@ -124,7 +124,7 @@ export declare function useInventoryStore(): {
|
|
|
124
124
|
precision: number;
|
|
125
125
|
};
|
|
126
126
|
} | null | undefined;
|
|
127
|
-
type: "RECIPE" | "SKU";
|
|
127
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
128
128
|
amount: {
|
|
129
129
|
amount: number;
|
|
130
130
|
precision: number;
|
|
@@ -132,6 +132,74 @@ export declare function useInventoryStore(): {
|
|
|
132
132
|
id: string;
|
|
133
133
|
}[];
|
|
134
134
|
}[] | null | undefined;
|
|
135
|
+
skuGroup?: {
|
|
136
|
+
ref?: string | null | undefined;
|
|
137
|
+
unit: {
|
|
138
|
+
_id: string;
|
|
139
|
+
name: string;
|
|
140
|
+
abbrev: string;
|
|
141
|
+
precision: number;
|
|
142
|
+
measurements: {
|
|
143
|
+
id: string;
|
|
144
|
+
name: string;
|
|
145
|
+
abbrev: string;
|
|
146
|
+
conversion: {
|
|
147
|
+
amount: number;
|
|
148
|
+
precision: number;
|
|
149
|
+
};
|
|
150
|
+
}[];
|
|
151
|
+
};
|
|
152
|
+
_id: string;
|
|
153
|
+
name: string;
|
|
154
|
+
skus: {
|
|
155
|
+
trackingMeasurement?: string | null | undefined;
|
|
156
|
+
convert?: {
|
|
157
|
+
measurement?: string | null | undefined;
|
|
158
|
+
inventoryBindings?: {
|
|
159
|
+
measurement?: {
|
|
160
|
+
id: string;
|
|
161
|
+
name: string;
|
|
162
|
+
abbrev: string;
|
|
163
|
+
conversion: {
|
|
164
|
+
amount: number;
|
|
165
|
+
precision: number;
|
|
166
|
+
};
|
|
167
|
+
} | null | undefined;
|
|
168
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
169
|
+
amount: {
|
|
170
|
+
amount: number;
|
|
171
|
+
precision: number;
|
|
172
|
+
};
|
|
173
|
+
id: string;
|
|
174
|
+
}[] | null | undefined;
|
|
175
|
+
} | null | undefined;
|
|
176
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
177
|
+
defaultCost?: {
|
|
178
|
+
measurement?: {
|
|
179
|
+
id: string;
|
|
180
|
+
name: string;
|
|
181
|
+
abbrev: string;
|
|
182
|
+
conversion: {
|
|
183
|
+
amount: number;
|
|
184
|
+
precision: number;
|
|
185
|
+
};
|
|
186
|
+
} | null | undefined;
|
|
187
|
+
costPerUnit: {
|
|
188
|
+
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";
|
|
189
|
+
amount: number;
|
|
190
|
+
precision: number;
|
|
191
|
+
};
|
|
192
|
+
} | null | undefined;
|
|
193
|
+
thresholds?: {
|
|
194
|
+
low: number;
|
|
195
|
+
mid: number;
|
|
196
|
+
} | null | undefined;
|
|
197
|
+
operationalGroup?: string | null | undefined;
|
|
198
|
+
code: string;
|
|
199
|
+
_id: string;
|
|
200
|
+
name: string;
|
|
201
|
+
}[];
|
|
202
|
+
}[] | null | undefined;
|
|
135
203
|
updatedAt?: string | null | undefined;
|
|
136
204
|
_id: string;
|
|
137
205
|
} & {
|
|
@@ -767,7 +835,7 @@ export declare function useInventoryStore(): {
|
|
|
767
835
|
precision: number;
|
|
768
836
|
};
|
|
769
837
|
} | null | undefined;
|
|
770
|
-
type: "RECIPE" | "SKU";
|
|
838
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
771
839
|
amount: {
|
|
772
840
|
amount: number;
|
|
773
841
|
precision: number;
|
|
@@ -829,7 +897,7 @@ export declare function useInventoryStore(): {
|
|
|
829
897
|
precision: number;
|
|
830
898
|
};
|
|
831
899
|
} | null | undefined;
|
|
832
|
-
type: "RECIPE" | "SKU";
|
|
900
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
833
901
|
amount: {
|
|
834
902
|
amount: number;
|
|
835
903
|
precision: number;
|
|
@@ -837,6 +905,74 @@ export declare function useInventoryStore(): {
|
|
|
837
905
|
id: string;
|
|
838
906
|
}[];
|
|
839
907
|
}[] | null | undefined;
|
|
908
|
+
skuGroup?: {
|
|
909
|
+
ref?: string | null | undefined;
|
|
910
|
+
unit: {
|
|
911
|
+
_id: string;
|
|
912
|
+
name: string;
|
|
913
|
+
abbrev: string;
|
|
914
|
+
precision: number;
|
|
915
|
+
measurements: {
|
|
916
|
+
id: string;
|
|
917
|
+
name: string;
|
|
918
|
+
abbrev: string;
|
|
919
|
+
conversion: {
|
|
920
|
+
amount: number;
|
|
921
|
+
precision: number;
|
|
922
|
+
};
|
|
923
|
+
}[];
|
|
924
|
+
};
|
|
925
|
+
_id: string;
|
|
926
|
+
name: string;
|
|
927
|
+
skus: {
|
|
928
|
+
trackingMeasurement?: string | null | undefined;
|
|
929
|
+
convert?: {
|
|
930
|
+
measurement?: string | null | undefined;
|
|
931
|
+
inventoryBindings?: {
|
|
932
|
+
measurement?: {
|
|
933
|
+
id: string;
|
|
934
|
+
name: string;
|
|
935
|
+
abbrev: string;
|
|
936
|
+
conversion: {
|
|
937
|
+
amount: number;
|
|
938
|
+
precision: number;
|
|
939
|
+
};
|
|
940
|
+
} | null | undefined;
|
|
941
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
942
|
+
amount: {
|
|
943
|
+
amount: number;
|
|
944
|
+
precision: number;
|
|
945
|
+
};
|
|
946
|
+
id: string;
|
|
947
|
+
}[] | null | undefined;
|
|
948
|
+
} | null | undefined;
|
|
949
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
950
|
+
defaultCost?: {
|
|
951
|
+
measurement?: {
|
|
952
|
+
id: string;
|
|
953
|
+
name: string;
|
|
954
|
+
abbrev: string;
|
|
955
|
+
conversion: {
|
|
956
|
+
amount: number;
|
|
957
|
+
precision: number;
|
|
958
|
+
};
|
|
959
|
+
} | null | undefined;
|
|
960
|
+
costPerUnit: {
|
|
961
|
+
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";
|
|
962
|
+
amount: number;
|
|
963
|
+
precision: number;
|
|
964
|
+
};
|
|
965
|
+
} | null | undefined;
|
|
966
|
+
thresholds?: {
|
|
967
|
+
low: number;
|
|
968
|
+
mid: number;
|
|
969
|
+
} | null | undefined;
|
|
970
|
+
operationalGroup?: string | null | undefined;
|
|
971
|
+
code: string;
|
|
972
|
+
_id: string;
|
|
973
|
+
name: string;
|
|
974
|
+
}[];
|
|
975
|
+
}[] | null | undefined;
|
|
840
976
|
updatedAt?: string | null | undefined;
|
|
841
977
|
_id: string;
|
|
842
978
|
_rev: string;
|
|
@@ -1828,7 +1964,6 @@ export declare function useInventoryStore(): {
|
|
|
1828
1964
|
passcode: string;
|
|
1829
1965
|
} | null | undefined;
|
|
1830
1966
|
_id?: string | undefined;
|
|
1831
|
-
adjustmentIds?: string[] | undefined;
|
|
1832
1967
|
skus?: {
|
|
1833
1968
|
costs?: {
|
|
1834
1969
|
adjustmentId?: string | null | undefined;
|
|
@@ -1868,6 +2003,7 @@ export declare function useInventoryStore(): {
|
|
|
1868
2003
|
};
|
|
1869
2004
|
id: string;
|
|
1870
2005
|
}[] | undefined;
|
|
2006
|
+
adjustmentIds?: string[] | undefined;
|
|
1871
2007
|
} | null;
|
|
1872
2008
|
};
|
|
1873
2009
|
readonly units: {
|
|
@@ -1885,6 +2021,21 @@ export declare function useInventoryStore(): {
|
|
|
1885
2021
|
};
|
|
1886
2022
|
}[];
|
|
1887
2023
|
}[];
|
|
2024
|
+
readonly unitById: Record<string, {
|
|
2025
|
+
_id: string;
|
|
2026
|
+
name: string;
|
|
2027
|
+
abbrev: string;
|
|
2028
|
+
precision: number;
|
|
2029
|
+
measurements: {
|
|
2030
|
+
id: string;
|
|
2031
|
+
name: string;
|
|
2032
|
+
abbrev: string;
|
|
2033
|
+
conversion: {
|
|
2034
|
+
amount: number;
|
|
2035
|
+
precision: number;
|
|
2036
|
+
};
|
|
2037
|
+
}[];
|
|
2038
|
+
}>;
|
|
1888
2039
|
readonly recipes: {
|
|
1889
2040
|
_id: string;
|
|
1890
2041
|
name: string;
|
|
@@ -1898,7 +2049,7 @@ export declare function useInventoryStore(): {
|
|
|
1898
2049
|
precision: number;
|
|
1899
2050
|
};
|
|
1900
2051
|
} | null | undefined;
|
|
1901
|
-
type: "RECIPE" | "SKU";
|
|
2052
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1902
2053
|
amount: {
|
|
1903
2054
|
amount: number;
|
|
1904
2055
|
precision: number;
|
|
@@ -1919,7 +2070,7 @@ export declare function useInventoryStore(): {
|
|
|
1919
2070
|
precision: number;
|
|
1920
2071
|
};
|
|
1921
2072
|
} | null | undefined;
|
|
1922
|
-
type: "RECIPE" | "SKU";
|
|
2073
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1923
2074
|
amount: {
|
|
1924
2075
|
amount: number;
|
|
1925
2076
|
precision: number;
|
|
@@ -1941,7 +2092,7 @@ export declare function useInventoryStore(): {
|
|
|
1941
2092
|
precision: number;
|
|
1942
2093
|
};
|
|
1943
2094
|
} | null | undefined;
|
|
1944
|
-
type: "RECIPE" | "SKU";
|
|
2095
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1945
2096
|
amount: {
|
|
1946
2097
|
amount: number;
|
|
1947
2098
|
precision: number;
|
|
@@ -2004,7 +2155,7 @@ export declare function useInventoryStore(): {
|
|
|
2004
2155
|
precision: number;
|
|
2005
2156
|
};
|
|
2006
2157
|
} | null | undefined;
|
|
2007
|
-
type: "RECIPE" | "SKU";
|
|
2158
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
2008
2159
|
amount: {
|
|
2009
2160
|
amount: number;
|
|
2010
2161
|
precision: number;
|
|
@@ -2053,6 +2204,137 @@ export declare function useInventoryStore(): {
|
|
|
2053
2204
|
_id: string;
|
|
2054
2205
|
name: string;
|
|
2055
2206
|
}>;
|
|
2207
|
+
readonly skuByCode: Record<string, {
|
|
2208
|
+
trackingMeasurement?: string | null | undefined;
|
|
2209
|
+
convert?: {
|
|
2210
|
+
measurement?: string | null | undefined;
|
|
2211
|
+
inventoryBindings?: {
|
|
2212
|
+
measurement?: {
|
|
2213
|
+
id: string;
|
|
2214
|
+
name: string;
|
|
2215
|
+
abbrev: string;
|
|
2216
|
+
conversion: {
|
|
2217
|
+
amount: number;
|
|
2218
|
+
precision: number;
|
|
2219
|
+
};
|
|
2220
|
+
} | null | undefined;
|
|
2221
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
2222
|
+
amount: {
|
|
2223
|
+
amount: number;
|
|
2224
|
+
precision: number;
|
|
2225
|
+
};
|
|
2226
|
+
id: string;
|
|
2227
|
+
}[] | null | undefined;
|
|
2228
|
+
} | null | undefined;
|
|
2229
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
2230
|
+
defaultCost?: {
|
|
2231
|
+
measurement?: {
|
|
2232
|
+
id: string;
|
|
2233
|
+
name: string;
|
|
2234
|
+
abbrev: string;
|
|
2235
|
+
conversion: {
|
|
2236
|
+
amount: number;
|
|
2237
|
+
precision: number;
|
|
2238
|
+
};
|
|
2239
|
+
} | null | undefined;
|
|
2240
|
+
costPerUnit: {
|
|
2241
|
+
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";
|
|
2242
|
+
amount: number;
|
|
2243
|
+
precision: number;
|
|
2244
|
+
};
|
|
2245
|
+
} | null | undefined;
|
|
2246
|
+
thresholds?: {
|
|
2247
|
+
low: number;
|
|
2248
|
+
mid: number;
|
|
2249
|
+
} | null | undefined;
|
|
2250
|
+
operationalGroup?: string | null | undefined;
|
|
2251
|
+
unit: {
|
|
2252
|
+
_id: string;
|
|
2253
|
+
name: string;
|
|
2254
|
+
abbrev: string;
|
|
2255
|
+
precision: number;
|
|
2256
|
+
measurements: {
|
|
2257
|
+
id: string;
|
|
2258
|
+
name: string;
|
|
2259
|
+
abbrev: string;
|
|
2260
|
+
conversion: {
|
|
2261
|
+
amount: number;
|
|
2262
|
+
precision: number;
|
|
2263
|
+
};
|
|
2264
|
+
}[];
|
|
2265
|
+
};
|
|
2266
|
+
code: string;
|
|
2267
|
+
_id: string;
|
|
2268
|
+
name: string;
|
|
2269
|
+
}>;
|
|
2270
|
+
readonly skuGroups: {
|
|
2271
|
+
ref?: string | null | undefined;
|
|
2272
|
+
unit: {
|
|
2273
|
+
_id: string;
|
|
2274
|
+
name: string;
|
|
2275
|
+
abbrev: string;
|
|
2276
|
+
precision: number;
|
|
2277
|
+
measurements: {
|
|
2278
|
+
id: string;
|
|
2279
|
+
name: string;
|
|
2280
|
+
abbrev: string;
|
|
2281
|
+
conversion: {
|
|
2282
|
+
amount: number;
|
|
2283
|
+
precision: number;
|
|
2284
|
+
};
|
|
2285
|
+
}[];
|
|
2286
|
+
};
|
|
2287
|
+
_id: string;
|
|
2288
|
+
name: string;
|
|
2289
|
+
skus: {
|
|
2290
|
+
trackingMeasurement?: string | null | undefined;
|
|
2291
|
+
convert?: {
|
|
2292
|
+
measurement?: string | null | undefined;
|
|
2293
|
+
inventoryBindings?: {
|
|
2294
|
+
measurement?: {
|
|
2295
|
+
id: string;
|
|
2296
|
+
name: string;
|
|
2297
|
+
abbrev: string;
|
|
2298
|
+
conversion: {
|
|
2299
|
+
amount: number;
|
|
2300
|
+
precision: number;
|
|
2301
|
+
};
|
|
2302
|
+
} | null | undefined;
|
|
2303
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
2304
|
+
amount: {
|
|
2305
|
+
amount: number;
|
|
2306
|
+
precision: number;
|
|
2307
|
+
};
|
|
2308
|
+
id: string;
|
|
2309
|
+
}[] | null | undefined;
|
|
2310
|
+
} | null | undefined;
|
|
2311
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
2312
|
+
defaultCost?: {
|
|
2313
|
+
measurement?: {
|
|
2314
|
+
id: string;
|
|
2315
|
+
name: string;
|
|
2316
|
+
abbrev: string;
|
|
2317
|
+
conversion: {
|
|
2318
|
+
amount: number;
|
|
2319
|
+
precision: number;
|
|
2320
|
+
};
|
|
2321
|
+
} | null | undefined;
|
|
2322
|
+
costPerUnit: {
|
|
2323
|
+
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";
|
|
2324
|
+
amount: number;
|
|
2325
|
+
precision: number;
|
|
2326
|
+
};
|
|
2327
|
+
} | null | undefined;
|
|
2328
|
+
thresholds?: {
|
|
2329
|
+
low: number;
|
|
2330
|
+
mid: number;
|
|
2331
|
+
} | null | undefined;
|
|
2332
|
+
operationalGroup?: string | null | undefined;
|
|
2333
|
+
code: string;
|
|
2334
|
+
_id: string;
|
|
2335
|
+
name: string;
|
|
2336
|
+
}[];
|
|
2337
|
+
}[];
|
|
2056
2338
|
init(): Promise<void>;
|
|
2057
2339
|
readClosing(): Promise<void>;
|
|
2058
2340
|
getAffectedMenu(id: string): Promise<BindedWithRecipeId[]>;
|
|
@@ -2072,4 +2354,7 @@ export declare function useInventoryStore(): {
|
|
|
2072
2354
|
updateSku(sku: FdoInventorySku): Promise<void>;
|
|
2073
2355
|
importSkus(skus: Omit<FdtoBulkSkuRequest, '_rev'>): Promise<void>;
|
|
2074
2356
|
deleteSku({ _id }: FdoInventorySku): Promise<void>;
|
|
2357
|
+
createSkuGroup(skuGroup: CreateType<FdoInventorySkuGroup>): Promise<void>;
|
|
2358
|
+
updateSkuGroup(skuGroup: FdoInventorySkuGroup): Promise<void>;
|
|
2359
|
+
deleteSkuGroup({ _id }: FdoInventorySkuGroup): Promise<void>;
|
|
2075
2360
|
};
|