Feature: Adding recipe templates to print recipes.
Feautre: Recipe export to xlsx Chore: Python 11 style type annotations Chore: Moved to sqlalchemy 2.0 Chore: Minimum python is 3.11 Fix: Fix nullability of a lot of fields in the database.
This commit is contained in:
@@ -4,12 +4,12 @@ export class RecipeItem {
|
||||
id: string | undefined;
|
||||
product: ProductSku;
|
||||
quantity: number;
|
||||
price: number;
|
||||
description: string;
|
||||
|
||||
public constructor(init?: Partial<RecipeItem>) {
|
||||
this.product = new ProductSku();
|
||||
this.quantity = 0;
|
||||
this.price = 0;
|
||||
this.description = '';
|
||||
Object.assign(this, init);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user