@feedmepos/mf-inventory-portal 1.0.9 → 1.0.10-dev.2
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-RT4bBubX.js → App-COPx00z6.js} +50 -49
- package/dist/{ApprovalView-BgOWHNMD.js → ApprovalView-DEtUW_BD.js} +24 -24
- package/dist/{BindingsDialog-Dip74zuT.js → BindingsDialog-8WUk3Dv3.js} +2 -2
- package/dist/{BindingsPicker-DMQXwEn4.js → BindingsPicker-D8ABQZWj.js} +7 -7
- package/dist/{BindingsTable-Czz32F7d.js → BindingsTable-E4ObCYZW.js} +5 -5
- package/dist/{ClosingDraftView-Ps4DgRNG.js → ClosingDraftView-BuwTXzoD.js} +499 -498
- package/dist/{ClosingTemplateView-EjVLgUCH.js → ClosingTemplateView-Dwlu2WDi.js} +10 -10
- package/dist/{DeliveryOrderPrintPreview-C52aY34D.js → DeliveryOrderPrintPreview-CZQP0ZBf.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-MSqPw_6t.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CIpktJ_p.js} +32 -32
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DbN_e9U8.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BAsfttD3.js} +51 -51
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DHuB4hRb.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-BtLdE9Qw.js} +1 -1
- package/dist/{IngredientGroupView-CRTjNc-p.js → IngredientGroupView-DKncarkj.js} +11 -11
- package/dist/{IngredientsView-CuLOu_v9.js → IngredientsView-DJhR4pNL.js} +15 -14
- package/dist/IntegrationView-DbehNBiT.js +10361 -0
- package/dist/{InventoryBindingForm-C1NfSdOs.js → InventoryBindingForm-CakKTaAx.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BJ7h3Nr6.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-qrYebXqE.js} +94 -89
- package/dist/{InventoryBindingSummary-CFjSwhxA.js → InventoryBindingSummary-ax4kqODn.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B73N8AvB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BD8iRcNk.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-rve3vJhu.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D13DAIwe.js} +10 -10
- package/dist/{PublishView-Bj0JawUb.js → PublishView-BMQzmmkT.js} +12 -12
- package/dist/{PurchaseOrderPrintPreview-DCAZVrDM.js → PurchaseOrderPrintPreview-CdbxZWLq.js} +4 -4
- package/dist/{ReceiveRequestView-B_bWd1hC.js → ReceiveRequestView-Blxchs0k.js} +53 -52
- package/dist/RecipeView-Bnigp2lS.js +8493 -0
- package/dist/{StockView-CsZ2hfAY.js → StockView-B4p6XQPR.js} +73 -72
- package/dist/{SupplierView-BUaouKYm.js → SupplierView-ojORzTSY.js} +12 -11
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-G478rFCP.js +1894 -0
- package/dist/{TransferTemplateView-Rq7N13OR.js → TransferTemplateView-DTN23wTJ.js} +291 -290
- package/dist/{UnitView-C9j2RjtY.js → UnitView-w-bUgjIw.js} +23 -23
- package/dist/{WarehouseView-Ct6TWKej.js → WarehouseView-cJ7u4vTr.js} +26 -26
- package/dist/api/bill.d.ts +2 -2
- package/dist/api/food-market-hub.d.ts +1 -1
- package/dist/api/inventory.d.ts +110 -44
- package/dist/api/netsuite.d.ts +191 -8
- package/dist/api/purchase-order.d.ts +5 -1
- package/dist/{app-Cryb1Kx8.js → app-DtLEhFCD.js} +19871 -19809
- package/dist/app.d.ts +7 -7
- package/dist/app.js +2 -2
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +30 -8
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +27 -5
- package/dist/composable/usePromise.d.ts +41 -0
- package/dist/{decimal-Ko0ukH7B.js → decimal-D0mDm48J.js} +1 -1
- package/dist/feature-GZEf4CLT.js +17427 -0
- package/dist/{format-unit-display-C1sTywhb.js → format-unit-display-Dl7kbJn1.js} +60 -60
- package/dist/{index-BAyyesj2.js → index-BglOiNaU.js} +7 -6
- package/dist/{index-WgH7CKAS.js → index-DKLr1Nm9.js} +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/{stock-BVCXjojk.js → stock-V0Qm2pTD.js} +3 -3
- package/dist/stores/feature.d.ts +3 -20
- package/dist/stores/integration/foodmarkethub.d.ts +1 -1
- package/dist/stores/integration/netsuite.d.ts +22 -7
- package/dist/stores/inventory.d.ts +132 -44
- package/dist/stores/location.d.ts +137 -137
- package/dist/{supplier-Brxhm840.js → supplier-DK4PWcz4.js} +4 -4
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-DCAYNC6e.js → use-ingredient-select-dialog-BfJ-qHni.js} +1 -1
- package/dist/{use-inventory-binding-dialog-TYwx9mzF.js → use-inventory-binding-dialog-C5IYjwW5.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +228 -228
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +2 -2
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +1 -1
- package/dist/views/adjustment-template/wastage-template/table.d.ts +234 -234
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +140 -136
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +420 -408
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +4 -4
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +252 -252
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +252 -252
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +12 -12
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +8 -8
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +3 -3
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +4 -4
- package/dist/views/integration/components/ApplyProduct.vue.d.ts +2 -2
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +2 -2
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +2 -2
- package/dist/views/integration/components/netsuite/InventoryTransfer.vue.d.ts +48 -0
- package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +180 -0
- package/dist/views/integration/components/netsuite/NetSuiteSideSheet.vue.d.ts +24 -0
- package/dist/views/integration/components/netsuite/NetSuiteSideSheetProps.d.ts +8 -0
- package/dist/views/integration/components/netsuite/{AddLocationDialog.vue.d.ts → business/AddLocationDialog.vue.d.ts} +204 -204
- package/dist/views/integration/components/netsuite/{LocationConfigurationDialog.vue.d.ts → business/BusinessNetSuiteSideSheet.vue.d.ts} +3 -3
- package/dist/views/integration/components/netsuite/{LocationConfigurationDialogProps.d.ts → business/BusinessNetSuiteSideSheetProps.d.ts} +1 -5
- package/dist/views/integration/components/netsuite/{NetSuiteLocationField.vue.d.ts → business/NetSuiteLocationField.vue.d.ts} +11 -9
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +665 -637
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +22 -22
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +44 -44
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +11 -11
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +614 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +1190 -1142
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +1192 -1144
- package/dist/views/receive-request/constants/po-action-to-ui-style.d.ts +6 -0
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +46 -2
- package/dist/views/recipe/components/recipe-override-form-field/RecipeOverrideFormField.vue.d.ts +61 -0
- package/dist/views/recipe/composables/use-recipe-overrides-form-field.d.ts +10 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +14 -14
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +22 -22
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +17 -17
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +11 -11
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +805 -805
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +805 -805
- package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +33 -33
- package/dist/vue-i18n-3LoKMrMa.js +2365 -0
- package/package.json +8 -5
- package/dist/IntegrationView-DXxwE0z8.js +0 -2148
- package/dist/RecipeView-m7aSOTrT.js +0 -616
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DqImAdxA.js +0 -1746
- package/dist/vue-i18n-B-kKlljK.js +0 -2365
package/dist/app.d.ts
CHANGED
|
@@ -2335,12 +2335,12 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
|
|
|
2335
2335
|
precision: number;
|
|
2336
2336
|
};
|
|
2337
2337
|
} | null | undefined;
|
|
2338
|
+
id: string;
|
|
2338
2339
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
2339
2340
|
amount: {
|
|
2340
2341
|
amount: number;
|
|
2341
2342
|
precision: number;
|
|
2342
2343
|
};
|
|
2343
|
-
id: string;
|
|
2344
2344
|
}[]>;
|
|
2345
2345
|
default: () => never[];
|
|
2346
2346
|
};
|
|
@@ -2355,12 +2355,12 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
|
|
|
2355
2355
|
precision: number;
|
|
2356
2356
|
};
|
|
2357
2357
|
} | null | undefined;
|
|
2358
|
+
id: string;
|
|
2358
2359
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
2359
2360
|
amount: {
|
|
2360
2361
|
amount: number;
|
|
2361
2362
|
precision: number;
|
|
2362
2363
|
};
|
|
2363
|
-
id: string;
|
|
2364
2364
|
}[]) => import("@feedmepos/ui-library").ValidationResult))[]>;
|
|
2365
2365
|
};
|
|
2366
2366
|
readonly: {
|
|
@@ -2383,12 +2383,12 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
|
|
|
2383
2383
|
precision: number;
|
|
2384
2384
|
};
|
|
2385
2385
|
} | null | undefined;
|
|
2386
|
+
id: string;
|
|
2386
2387
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
2387
2388
|
amount: {
|
|
2388
2389
|
amount: number;
|
|
2389
2390
|
precision: number;
|
|
2390
2391
|
};
|
|
2391
|
-
id: string;
|
|
2392
2392
|
}[]) => void;
|
|
2393
2393
|
"click:pick-inventory-bindings": (type: "RECIPE" | "SKU" | "SKU_GROUP") => void;
|
|
2394
2394
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -2409,12 +2409,12 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
|
|
|
2409
2409
|
precision: number;
|
|
2410
2410
|
};
|
|
2411
2411
|
} | null | undefined;
|
|
2412
|
+
id: string;
|
|
2412
2413
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
2413
2414
|
amount: {
|
|
2414
2415
|
amount: number;
|
|
2415
2416
|
precision: number;
|
|
2416
2417
|
};
|
|
2417
|
-
id: string;
|
|
2418
2418
|
}[]>;
|
|
2419
2419
|
default: () => never[];
|
|
2420
2420
|
};
|
|
@@ -2429,12 +2429,12 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
|
|
|
2429
2429
|
precision: number;
|
|
2430
2430
|
};
|
|
2431
2431
|
} | null | undefined;
|
|
2432
|
+
id: string;
|
|
2432
2433
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
2433
2434
|
amount: {
|
|
2434
2435
|
amount: number;
|
|
2435
2436
|
precision: number;
|
|
2436
2437
|
};
|
|
2437
|
-
id: string;
|
|
2438
2438
|
}[]) => import("@feedmepos/ui-library").ValidationResult))[]>;
|
|
2439
2439
|
};
|
|
2440
2440
|
readonly: {
|
|
@@ -2457,12 +2457,12 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
|
|
|
2457
2457
|
precision: number;
|
|
2458
2458
|
};
|
|
2459
2459
|
} | null | undefined;
|
|
2460
|
+
id: string;
|
|
2460
2461
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
2461
2462
|
amount: {
|
|
2462
2463
|
amount: number;
|
|
2463
2464
|
precision: number;
|
|
2464
2465
|
};
|
|
2465
|
-
id: string;
|
|
2466
2466
|
}[]) => any) | undefined;
|
|
2467
2467
|
"onClick:pick-inventory-bindings"?: ((type: "RECIPE" | "SKU" | "SKU_GROUP") => any) | undefined;
|
|
2468
2468
|
}>, {
|
|
@@ -2476,12 +2476,12 @@ export declare const InventoryBindingForm: import("vue").DefineComponent<import(
|
|
|
2476
2476
|
precision: number;
|
|
2477
2477
|
};
|
|
2478
2478
|
} | null | undefined;
|
|
2479
|
+
id: string;
|
|
2479
2480
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
2480
2481
|
amount: {
|
|
2481
2482
|
amount: number;
|
|
2482
2483
|
precision: number;
|
|
2483
2484
|
};
|
|
2484
|
-
id: string;
|
|
2485
2485
|
}[];
|
|
2486
2486
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2487
2487
|
export declare const InventoryBindingSummary: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
package/dist/app.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { b2 as a, b3 as e, b4 as o, b1 as t, b5 as i, a as m } from "./app-DtLEhFCD.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
a as FmApp,
|
|
5
5
|
e as InventoryBindingForm,
|
|
6
6
|
o as InventoryBindingSummary,
|
|
7
7
|
t as i18nMessages,
|
|
@@ -14,12 +14,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
14
14
|
precision: number;
|
|
15
15
|
};
|
|
16
16
|
} | null | undefined;
|
|
17
|
+
id: string;
|
|
17
18
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
18
19
|
amount: {
|
|
19
20
|
amount: number;
|
|
20
21
|
precision: number;
|
|
21
22
|
};
|
|
22
|
-
id: string;
|
|
23
23
|
}[]) => void;
|
|
24
24
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InventoryBindingProps>, {
|
|
25
25
|
modelValue: () => never[];
|
|
@@ -36,12 +36,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
36
36
|
precision: number;
|
|
37
37
|
};
|
|
38
38
|
} | null | undefined;
|
|
39
|
+
id: string;
|
|
39
40
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
40
41
|
amount: {
|
|
41
42
|
amount: number;
|
|
42
43
|
precision: number;
|
|
43
44
|
};
|
|
44
|
-
id: string;
|
|
45
45
|
}[]) => any) | undefined;
|
|
46
46
|
}>, {
|
|
47
47
|
skus: {
|
|
@@ -58,12 +58,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
58
58
|
precision: number;
|
|
59
59
|
};
|
|
60
60
|
} | null | undefined;
|
|
61
|
+
id: string;
|
|
61
62
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
62
63
|
amount: {
|
|
63
64
|
amount: number;
|
|
64
65
|
precision: number;
|
|
65
66
|
};
|
|
66
|
-
id: string;
|
|
67
67
|
}[] | null | undefined;
|
|
68
68
|
} | null | undefined;
|
|
69
69
|
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
@@ -89,6 +89,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
89
89
|
mid: number;
|
|
90
90
|
} | null | undefined;
|
|
91
91
|
customAttributes?: Record<string, any> | null | undefined;
|
|
92
|
+
_id: string;
|
|
93
|
+
name: string;
|
|
94
|
+
code: string;
|
|
92
95
|
unit: {
|
|
93
96
|
_id: string;
|
|
94
97
|
name: string;
|
|
@@ -104,9 +107,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
104
107
|
};
|
|
105
108
|
}[];
|
|
106
109
|
};
|
|
107
|
-
code: string;
|
|
108
|
-
_id: string;
|
|
109
|
-
name: string;
|
|
110
110
|
}[];
|
|
111
111
|
modelValue: {
|
|
112
112
|
measurement?: {
|
|
@@ -118,15 +118,37 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
118
118
|
precision: number;
|
|
119
119
|
};
|
|
120
120
|
} | null | undefined;
|
|
121
|
+
id: string;
|
|
121
122
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
122
123
|
amount: {
|
|
123
124
|
amount: number;
|
|
124
125
|
precision: number;
|
|
125
126
|
};
|
|
126
|
-
id: string;
|
|
127
127
|
}[];
|
|
128
128
|
recipes: {
|
|
129
129
|
customAttributes?: Record<string, any> | null | undefined;
|
|
130
|
+
overrides?: {
|
|
131
|
+
rule?: any;
|
|
132
|
+
id: string;
|
|
133
|
+
name: string;
|
|
134
|
+
override: {
|
|
135
|
+
measurement?: {
|
|
136
|
+
id: string;
|
|
137
|
+
name: string;
|
|
138
|
+
abbrev: string;
|
|
139
|
+
conversion: {
|
|
140
|
+
amount: number;
|
|
141
|
+
precision: number;
|
|
142
|
+
};
|
|
143
|
+
} | null | undefined;
|
|
144
|
+
id: string;
|
|
145
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
146
|
+
amount: {
|
|
147
|
+
amount: number;
|
|
148
|
+
precision: number;
|
|
149
|
+
};
|
|
150
|
+
}[];
|
|
151
|
+
}[] | null | undefined;
|
|
130
152
|
_id: string;
|
|
131
153
|
name: string;
|
|
132
154
|
contains: {
|
|
@@ -139,12 +161,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
139
161
|
precision: number;
|
|
140
162
|
};
|
|
141
163
|
} | null | undefined;
|
|
164
|
+
id: string;
|
|
142
165
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
143
166
|
amount: {
|
|
144
167
|
amount: number;
|
|
145
168
|
precision: number;
|
|
146
169
|
};
|
|
147
|
-
id: string;
|
|
148
170
|
}[];
|
|
149
171
|
}[];
|
|
150
172
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -22,12 +22,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
22
22
|
precision: number;
|
|
23
23
|
};
|
|
24
24
|
} | null | undefined;
|
|
25
|
+
id: string;
|
|
25
26
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
26
27
|
amount: {
|
|
27
28
|
amount: number;
|
|
28
29
|
precision: number;
|
|
29
30
|
};
|
|
30
|
-
id: string;
|
|
31
31
|
}[]>;
|
|
32
32
|
required: true;
|
|
33
33
|
};
|
|
@@ -59,12 +59,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
59
59
|
precision: number;
|
|
60
60
|
};
|
|
61
61
|
} | null | undefined;
|
|
62
|
+
id: string;
|
|
62
63
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
63
64
|
amount: {
|
|
64
65
|
amount: number;
|
|
65
66
|
precision: number;
|
|
66
67
|
};
|
|
67
|
-
id: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
required: true;
|
|
70
70
|
};
|
|
@@ -38,12 +38,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
38
38
|
precision: number;
|
|
39
39
|
};
|
|
40
40
|
} | null | undefined;
|
|
41
|
+
id: string;
|
|
41
42
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
42
43
|
amount: {
|
|
43
44
|
amount: number;
|
|
44
45
|
precision: number;
|
|
45
46
|
};
|
|
46
|
-
id: string;
|
|
47
47
|
}[] | null | undefined;
|
|
48
48
|
} | null | undefined;
|
|
49
49
|
valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
|
|
@@ -69,6 +69,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
69
69
|
mid: number;
|
|
70
70
|
} | null | undefined;
|
|
71
71
|
customAttributes?: Record<string, any> | null | undefined;
|
|
72
|
+
_id: string;
|
|
73
|
+
name: string;
|
|
74
|
+
code: string;
|
|
72
75
|
unit: {
|
|
73
76
|
_id: string;
|
|
74
77
|
name: string;
|
|
@@ -84,14 +87,33 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
84
87
|
};
|
|
85
88
|
}[];
|
|
86
89
|
};
|
|
87
|
-
code: string;
|
|
88
|
-
_id: string;
|
|
89
|
-
name: string;
|
|
90
90
|
}[];
|
|
91
91
|
items: InventoryBinding[];
|
|
92
92
|
editable: boolean;
|
|
93
93
|
recipes: {
|
|
94
94
|
customAttributes?: Record<string, any> | null | undefined;
|
|
95
|
+
overrides?: {
|
|
96
|
+
rule?: any;
|
|
97
|
+
id: string;
|
|
98
|
+
name: string;
|
|
99
|
+
override: {
|
|
100
|
+
measurement?: {
|
|
101
|
+
id: string;
|
|
102
|
+
name: string;
|
|
103
|
+
abbrev: string;
|
|
104
|
+
conversion: {
|
|
105
|
+
amount: number;
|
|
106
|
+
precision: number;
|
|
107
|
+
};
|
|
108
|
+
} | null | undefined;
|
|
109
|
+
id: string;
|
|
110
|
+
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
111
|
+
amount: {
|
|
112
|
+
amount: number;
|
|
113
|
+
precision: number;
|
|
114
|
+
};
|
|
115
|
+
}[];
|
|
116
|
+
}[] | null | undefined;
|
|
95
117
|
_id: string;
|
|
96
118
|
name: string;
|
|
97
119
|
contains: {
|
|
@@ -104,12 +126,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
104
126
|
precision: number;
|
|
105
127
|
};
|
|
106
128
|
} | null | undefined;
|
|
129
|
+
id: string;
|
|
107
130
|
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
108
131
|
amount: {
|
|
109
132
|
amount: number;
|
|
110
133
|
precision: number;
|
|
111
134
|
};
|
|
112
|
-
id: string;
|
|
113
135
|
}[];
|
|
114
136
|
}[];
|
|
115
137
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const enum ResultState {
|
|
2
|
+
loading = "loading",
|
|
3
|
+
error = "error",
|
|
4
|
+
success = "success"
|
|
5
|
+
}
|
|
6
|
+
type ResultBase = {
|
|
7
|
+
state: ResultState;
|
|
8
|
+
};
|
|
9
|
+
type LoadingResult = ResultBase & {
|
|
10
|
+
state: ResultState.loading;
|
|
11
|
+
};
|
|
12
|
+
type ErrorResult = ResultBase & {
|
|
13
|
+
state: ResultState.error;
|
|
14
|
+
error: any;
|
|
15
|
+
};
|
|
16
|
+
type SuccessResult<T> = ResultBase & {
|
|
17
|
+
state: ResultState.success;
|
|
18
|
+
data: T;
|
|
19
|
+
};
|
|
20
|
+
export type PromiseResult<Success = any> = LoadingResult | ErrorResult | SuccessResult<Success>;
|
|
21
|
+
export declare function usePromise<T>(promiseTask?: () => Promise<T>): {
|
|
22
|
+
result: import("vue").Ref<{
|
|
23
|
+
state: ResultState.loading;
|
|
24
|
+
} | {
|
|
25
|
+
state: ResultState.error;
|
|
26
|
+
error: any;
|
|
27
|
+
} | {
|
|
28
|
+
state: ResultState.success;
|
|
29
|
+
data: import("vue").UnwrapRef<T>;
|
|
30
|
+
}, PromiseResult<T> | {
|
|
31
|
+
state: ResultState.loading;
|
|
32
|
+
} | {
|
|
33
|
+
state: ResultState.error;
|
|
34
|
+
error: any;
|
|
35
|
+
} | {
|
|
36
|
+
state: ResultState.success;
|
|
37
|
+
data: import("vue").UnwrapRef<T>;
|
|
38
|
+
}>;
|
|
39
|
+
execute: (task?: () => Promise<T>) => Promise<void>;
|
|
40
|
+
};
|
|
41
|
+
export {};
|