Files
brewman/overlord/src/app/recipe/recipe-item.ts
T
tanshu 22cac61761 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.
2023-07-23 08:12:21 +05:30

16 lines
345 B
TypeScript

import { ProductSku } from '../core/product-sku';
export class RecipeItem {
id: string | undefined;
product: ProductSku;
quantity: number;
description: string;
public constructor(init?: Partial<RecipeItem>) {
this.product = new ProductSku();
this.quantity = 0;
this.description = '';
Object.assign(this, init);
}
}