@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
|
@@ -32,6 +32,7 @@ export interface InventoryState {
|
|
|
32
32
|
closing: Partial<FdoClosing> | null;
|
|
33
33
|
}
|
|
34
34
|
export declare function useInventoryStore(): {
|
|
35
|
+
readonly entities: typeof import("@feedmepos/zod-inventory");
|
|
35
36
|
inventory: {
|
|
36
37
|
unit?: {
|
|
37
38
|
_id: string;
|
|
@@ -62,7 +63,7 @@ export declare function useInventoryStore(): {
|
|
|
62
63
|
precision: number;
|
|
63
64
|
};
|
|
64
65
|
} | null | undefined;
|
|
65
|
-
type: "RECIPE" | "SKU";
|
|
66
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
66
67
|
amount: {
|
|
67
68
|
amount: number;
|
|
68
69
|
precision: number;
|
|
@@ -124,7 +125,7 @@ export declare function useInventoryStore(): {
|
|
|
124
125
|
precision: number;
|
|
125
126
|
};
|
|
126
127
|
} | null | undefined;
|
|
127
|
-
type: "RECIPE" | "SKU";
|
|
128
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
128
129
|
amount: {
|
|
129
130
|
amount: number;
|
|
130
131
|
precision: number;
|
|
@@ -132,6 +133,74 @@ export declare function useInventoryStore(): {
|
|
|
132
133
|
id: string;
|
|
133
134
|
}[];
|
|
134
135
|
}[] | null | undefined;
|
|
136
|
+
skuGroup?: {
|
|
137
|
+
ref?: string | null | undefined;
|
|
138
|
+
unit: {
|
|
139
|
+
_id: string;
|
|
140
|
+
name: string;
|
|
141
|
+
abbrev: string;
|
|
142
|
+
precision: number;
|
|
143
|
+
measurements: {
|
|
144
|
+
id: string;
|
|
145
|
+
name: string;
|
|
146
|
+
abbrev: string;
|
|
147
|
+
conversion: {
|
|
148
|
+
amount: number;
|
|
149
|
+
precision: number;
|
|
150
|
+
};
|
|
151
|
+
}[];
|
|
152
|
+
};
|
|
153
|
+
_id: string;
|
|
154
|
+
name: string;
|
|
155
|
+
skus: {
|
|
156
|
+
trackingMeasurement?: string | null | undefined;
|
|
157
|
+
convert?: {
|
|
158
|
+
measurement?: string | null | undefined;
|
|
159
|
+
inventoryBindings?: {
|
|
160
|
+
measurement?: {
|
|
161
|
+
id: string;
|
|
162
|
+
name: string;
|
|
163
|
+
abbrev: string;
|
|
164
|
+
conversion: {
|
|
165
|
+
amount: number;
|
|
166
|
+
precision: number;
|
|
167
|
+
};
|
|
168
|
+
} | null | undefined;
|
|
169
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
170
|
+
amount: {
|
|
171
|
+
amount: number;
|
|
172
|
+
precision: number;
|
|
173
|
+
};
|
|
174
|
+
id: string;
|
|
175
|
+
}[] | null | undefined;
|
|
176
|
+
} | null | undefined;
|
|
177
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
178
|
+
defaultCost?: {
|
|
179
|
+
measurement?: {
|
|
180
|
+
id: string;
|
|
181
|
+
name: string;
|
|
182
|
+
abbrev: string;
|
|
183
|
+
conversion: {
|
|
184
|
+
amount: number;
|
|
185
|
+
precision: number;
|
|
186
|
+
};
|
|
187
|
+
} | null | undefined;
|
|
188
|
+
costPerUnit: {
|
|
189
|
+
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";
|
|
190
|
+
amount: number;
|
|
191
|
+
precision: number;
|
|
192
|
+
};
|
|
193
|
+
} | null | undefined;
|
|
194
|
+
thresholds?: {
|
|
195
|
+
low: number;
|
|
196
|
+
mid: number;
|
|
197
|
+
} | null | undefined;
|
|
198
|
+
operationalGroup?: string | null | undefined;
|
|
199
|
+
code: string;
|
|
200
|
+
_id: string;
|
|
201
|
+
name: string;
|
|
202
|
+
}[];
|
|
203
|
+
}[] | null | undefined;
|
|
135
204
|
updatedAt?: string | null | undefined;
|
|
136
205
|
_id: string;
|
|
137
206
|
} & {
|
|
@@ -767,7 +836,7 @@ export declare function useInventoryStore(): {
|
|
|
767
836
|
precision: number;
|
|
768
837
|
};
|
|
769
838
|
} | null | undefined;
|
|
770
|
-
type: "RECIPE" | "SKU";
|
|
839
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
771
840
|
amount: {
|
|
772
841
|
amount: number;
|
|
773
842
|
precision: number;
|
|
@@ -829,7 +898,7 @@ export declare function useInventoryStore(): {
|
|
|
829
898
|
precision: number;
|
|
830
899
|
};
|
|
831
900
|
} | null | undefined;
|
|
832
|
-
type: "RECIPE" | "SKU";
|
|
901
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
833
902
|
amount: {
|
|
834
903
|
amount: number;
|
|
835
904
|
precision: number;
|
|
@@ -837,6 +906,74 @@ export declare function useInventoryStore(): {
|
|
|
837
906
|
id: string;
|
|
838
907
|
}[];
|
|
839
908
|
}[] | null | undefined;
|
|
909
|
+
skuGroup?: {
|
|
910
|
+
ref?: string | null | undefined;
|
|
911
|
+
unit: {
|
|
912
|
+
_id: string;
|
|
913
|
+
name: string;
|
|
914
|
+
abbrev: string;
|
|
915
|
+
precision: number;
|
|
916
|
+
measurements: {
|
|
917
|
+
id: string;
|
|
918
|
+
name: string;
|
|
919
|
+
abbrev: string;
|
|
920
|
+
conversion: {
|
|
921
|
+
amount: number;
|
|
922
|
+
precision: number;
|
|
923
|
+
};
|
|
924
|
+
}[];
|
|
925
|
+
};
|
|
926
|
+
_id: string;
|
|
927
|
+
name: string;
|
|
928
|
+
skus: {
|
|
929
|
+
trackingMeasurement?: string | null | undefined;
|
|
930
|
+
convert?: {
|
|
931
|
+
measurement?: string | null | undefined;
|
|
932
|
+
inventoryBindings?: {
|
|
933
|
+
measurement?: {
|
|
934
|
+
id: string;
|
|
935
|
+
name: string;
|
|
936
|
+
abbrev: string;
|
|
937
|
+
conversion: {
|
|
938
|
+
amount: number;
|
|
939
|
+
precision: number;
|
|
940
|
+
};
|
|
941
|
+
} | null | undefined;
|
|
942
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
943
|
+
amount: {
|
|
944
|
+
amount: number;
|
|
945
|
+
precision: number;
|
|
946
|
+
};
|
|
947
|
+
id: string;
|
|
948
|
+
}[] | null | undefined;
|
|
949
|
+
} | null | undefined;
|
|
950
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
951
|
+
defaultCost?: {
|
|
952
|
+
measurement?: {
|
|
953
|
+
id: string;
|
|
954
|
+
name: string;
|
|
955
|
+
abbrev: string;
|
|
956
|
+
conversion: {
|
|
957
|
+
amount: number;
|
|
958
|
+
precision: number;
|
|
959
|
+
};
|
|
960
|
+
} | null | undefined;
|
|
961
|
+
costPerUnit: {
|
|
962
|
+
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";
|
|
963
|
+
amount: number;
|
|
964
|
+
precision: number;
|
|
965
|
+
};
|
|
966
|
+
} | null | undefined;
|
|
967
|
+
thresholds?: {
|
|
968
|
+
low: number;
|
|
969
|
+
mid: number;
|
|
970
|
+
} | null | undefined;
|
|
971
|
+
operationalGroup?: string | null | undefined;
|
|
972
|
+
code: string;
|
|
973
|
+
_id: string;
|
|
974
|
+
name: string;
|
|
975
|
+
}[];
|
|
976
|
+
}[] | null | undefined;
|
|
840
977
|
updatedAt?: string | null | undefined;
|
|
841
978
|
_id: string;
|
|
842
979
|
_rev: string;
|
|
@@ -1828,7 +1965,6 @@ export declare function useInventoryStore(): {
|
|
|
1828
1965
|
passcode: string;
|
|
1829
1966
|
} | null | undefined;
|
|
1830
1967
|
_id?: string | undefined;
|
|
1831
|
-
adjustmentIds?: string[] | undefined;
|
|
1832
1968
|
skus?: {
|
|
1833
1969
|
costs?: {
|
|
1834
1970
|
adjustmentId?: string | null | undefined;
|
|
@@ -1868,6 +2004,7 @@ export declare function useInventoryStore(): {
|
|
|
1868
2004
|
};
|
|
1869
2005
|
id: string;
|
|
1870
2006
|
}[] | undefined;
|
|
2007
|
+
adjustmentIds?: string[] | undefined;
|
|
1871
2008
|
} | null;
|
|
1872
2009
|
};
|
|
1873
2010
|
readonly units: {
|
|
@@ -1885,6 +2022,21 @@ export declare function useInventoryStore(): {
|
|
|
1885
2022
|
};
|
|
1886
2023
|
}[];
|
|
1887
2024
|
}[];
|
|
2025
|
+
readonly unitById: Record<string, {
|
|
2026
|
+
_id: string;
|
|
2027
|
+
name: string;
|
|
2028
|
+
abbrev: string;
|
|
2029
|
+
precision: number;
|
|
2030
|
+
measurements: {
|
|
2031
|
+
id: string;
|
|
2032
|
+
name: string;
|
|
2033
|
+
abbrev: string;
|
|
2034
|
+
conversion: {
|
|
2035
|
+
amount: number;
|
|
2036
|
+
precision: number;
|
|
2037
|
+
};
|
|
2038
|
+
}[];
|
|
2039
|
+
}>;
|
|
1888
2040
|
readonly recipes: {
|
|
1889
2041
|
_id: string;
|
|
1890
2042
|
name: string;
|
|
@@ -1898,7 +2050,7 @@ export declare function useInventoryStore(): {
|
|
|
1898
2050
|
precision: number;
|
|
1899
2051
|
};
|
|
1900
2052
|
} | null | undefined;
|
|
1901
|
-
type: "RECIPE" | "SKU";
|
|
2053
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1902
2054
|
amount: {
|
|
1903
2055
|
amount: number;
|
|
1904
2056
|
precision: number;
|
|
@@ -1919,7 +2071,7 @@ export declare function useInventoryStore(): {
|
|
|
1919
2071
|
precision: number;
|
|
1920
2072
|
};
|
|
1921
2073
|
} | null | undefined;
|
|
1922
|
-
type: "RECIPE" | "SKU";
|
|
2074
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1923
2075
|
amount: {
|
|
1924
2076
|
amount: number;
|
|
1925
2077
|
precision: number;
|
|
@@ -1941,7 +2093,7 @@ export declare function useInventoryStore(): {
|
|
|
1941
2093
|
precision: number;
|
|
1942
2094
|
};
|
|
1943
2095
|
} | null | undefined;
|
|
1944
|
-
type: "RECIPE" | "SKU";
|
|
2096
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
1945
2097
|
amount: {
|
|
1946
2098
|
amount: number;
|
|
1947
2099
|
precision: number;
|
|
@@ -2004,7 +2156,7 @@ export declare function useInventoryStore(): {
|
|
|
2004
2156
|
precision: number;
|
|
2005
2157
|
};
|
|
2006
2158
|
} | null | undefined;
|
|
2007
|
-
type: "RECIPE" | "SKU";
|
|
2159
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
2008
2160
|
amount: {
|
|
2009
2161
|
amount: number;
|
|
2010
2162
|
precision: number;
|
|
@@ -2053,6 +2205,137 @@ export declare function useInventoryStore(): {
|
|
|
2053
2205
|
_id: string;
|
|
2054
2206
|
name: string;
|
|
2055
2207
|
}>;
|
|
2208
|
+
readonly skuByCode: Record<string, {
|
|
2209
|
+
trackingMeasurement?: string | null | undefined;
|
|
2210
|
+
convert?: {
|
|
2211
|
+
measurement?: string | null | undefined;
|
|
2212
|
+
inventoryBindings?: {
|
|
2213
|
+
measurement?: {
|
|
2214
|
+
id: string;
|
|
2215
|
+
name: string;
|
|
2216
|
+
abbrev: string;
|
|
2217
|
+
conversion: {
|
|
2218
|
+
amount: number;
|
|
2219
|
+
precision: number;
|
|
2220
|
+
};
|
|
2221
|
+
} | null | undefined;
|
|
2222
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
2223
|
+
amount: {
|
|
2224
|
+
amount: number;
|
|
2225
|
+
precision: number;
|
|
2226
|
+
};
|
|
2227
|
+
id: string;
|
|
2228
|
+
}[] | null | undefined;
|
|
2229
|
+
} | null | undefined;
|
|
2230
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
2231
|
+
defaultCost?: {
|
|
2232
|
+
measurement?: {
|
|
2233
|
+
id: string;
|
|
2234
|
+
name: string;
|
|
2235
|
+
abbrev: string;
|
|
2236
|
+
conversion: {
|
|
2237
|
+
amount: number;
|
|
2238
|
+
precision: number;
|
|
2239
|
+
};
|
|
2240
|
+
} | null | undefined;
|
|
2241
|
+
costPerUnit: {
|
|
2242
|
+
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";
|
|
2243
|
+
amount: number;
|
|
2244
|
+
precision: number;
|
|
2245
|
+
};
|
|
2246
|
+
} | null | undefined;
|
|
2247
|
+
thresholds?: {
|
|
2248
|
+
low: number;
|
|
2249
|
+
mid: number;
|
|
2250
|
+
} | null | undefined;
|
|
2251
|
+
operationalGroup?: string | null | undefined;
|
|
2252
|
+
unit: {
|
|
2253
|
+
_id: string;
|
|
2254
|
+
name: string;
|
|
2255
|
+
abbrev: string;
|
|
2256
|
+
precision: number;
|
|
2257
|
+
measurements: {
|
|
2258
|
+
id: string;
|
|
2259
|
+
name: string;
|
|
2260
|
+
abbrev: string;
|
|
2261
|
+
conversion: {
|
|
2262
|
+
amount: number;
|
|
2263
|
+
precision: number;
|
|
2264
|
+
};
|
|
2265
|
+
}[];
|
|
2266
|
+
};
|
|
2267
|
+
code: string;
|
|
2268
|
+
_id: string;
|
|
2269
|
+
name: string;
|
|
2270
|
+
}>;
|
|
2271
|
+
readonly skuGroups: {
|
|
2272
|
+
ref?: string | null | undefined;
|
|
2273
|
+
unit: {
|
|
2274
|
+
_id: string;
|
|
2275
|
+
name: string;
|
|
2276
|
+
abbrev: string;
|
|
2277
|
+
precision: number;
|
|
2278
|
+
measurements: {
|
|
2279
|
+
id: string;
|
|
2280
|
+
name: string;
|
|
2281
|
+
abbrev: string;
|
|
2282
|
+
conversion: {
|
|
2283
|
+
amount: number;
|
|
2284
|
+
precision: number;
|
|
2285
|
+
};
|
|
2286
|
+
}[];
|
|
2287
|
+
};
|
|
2288
|
+
_id: string;
|
|
2289
|
+
name: string;
|
|
2290
|
+
skus: {
|
|
2291
|
+
trackingMeasurement?: string | null | undefined;
|
|
2292
|
+
convert?: {
|
|
2293
|
+
measurement?: string | null | undefined;
|
|
2294
|
+
inventoryBindings?: {
|
|
2295
|
+
measurement?: {
|
|
2296
|
+
id: string;
|
|
2297
|
+
name: string;
|
|
2298
|
+
abbrev: string;
|
|
2299
|
+
conversion: {
|
|
2300
|
+
amount: number;
|
|
2301
|
+
precision: number;
|
|
2302
|
+
};
|
|
2303
|
+
} | null | undefined;
|
|
2304
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
2305
|
+
amount: {
|
|
2306
|
+
amount: number;
|
|
2307
|
+
precision: number;
|
|
2308
|
+
};
|
|
2309
|
+
id: string;
|
|
2310
|
+
}[] | null | undefined;
|
|
2311
|
+
} | null | undefined;
|
|
2312
|
+
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
2313
|
+
defaultCost?: {
|
|
2314
|
+
measurement?: {
|
|
2315
|
+
id: string;
|
|
2316
|
+
name: string;
|
|
2317
|
+
abbrev: string;
|
|
2318
|
+
conversion: {
|
|
2319
|
+
amount: number;
|
|
2320
|
+
precision: number;
|
|
2321
|
+
};
|
|
2322
|
+
} | null | undefined;
|
|
2323
|
+
costPerUnit: {
|
|
2324
|
+
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";
|
|
2325
|
+
amount: number;
|
|
2326
|
+
precision: number;
|
|
2327
|
+
};
|
|
2328
|
+
} | null | undefined;
|
|
2329
|
+
thresholds?: {
|
|
2330
|
+
low: number;
|
|
2331
|
+
mid: number;
|
|
2332
|
+
} | null | undefined;
|
|
2333
|
+
operationalGroup?: string | null | undefined;
|
|
2334
|
+
code: string;
|
|
2335
|
+
_id: string;
|
|
2336
|
+
name: string;
|
|
2337
|
+
}[];
|
|
2338
|
+
}[];
|
|
2056
2339
|
init(): Promise<void>;
|
|
2057
2340
|
readClosing(): Promise<void>;
|
|
2058
2341
|
getAffectedMenu(id: string): Promise<BindedWithRecipeId[]>;
|
|
@@ -2072,4 +2355,7 @@ export declare function useInventoryStore(): {
|
|
|
2072
2355
|
updateSku(sku: FdoInventorySku): Promise<void>;
|
|
2073
2356
|
importSkus(skus: Omit<FdtoBulkSkuRequest, '_rev'>): Promise<void>;
|
|
2074
2357
|
deleteSku({ _id }: FdoInventorySku): Promise<void>;
|
|
2358
|
+
createSkuGroup(skuGroup: CreateType<FdoInventorySkuGroup>): Promise<void>;
|
|
2359
|
+
updateSkuGroup(skuGroup: FdoInventorySkuGroup): Promise<void>;
|
|
2360
|
+
deleteSkuGroup({ _id }: FdoInventorySkuGroup): Promise<void>;
|
|
2075
2361
|
};
|