17 lines
375 B
TypeScript
17 lines
375 B
TypeScript
import { ProfitLossItem } from './profit-loss-item';
|
|
|
|
export class ProfitLoss {
|
|
startDate: string;
|
|
finishDate: string;
|
|
body: ProfitLossItem[];
|
|
footer: ProfitLossItem;
|
|
|
|
public constructor(init?: Partial<ProfitLoss>) {
|
|
this.startDate = '';
|
|
this.finishDate = '';
|
|
this.body = [];
|
|
this.footer = new ProfitLossItem();
|
|
Object.assign(this, init);
|
|
}
|
|
}
|