Created a period table for date ranges and made the recipes dependent on it instead of having arbitrary date ranges. This will enable easy copying into new months.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
export class Period {
|
||||
id: string | undefined;
|
||||
validFrom: string;
|
||||
validTill: string;
|
||||
|
||||
public constructor(init?: Partial<Period>) {
|
||||
this.validFrom = '';
|
||||
this.validTill = '';
|
||||
Object.assign(this, init);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user