19 lines
386 B
TypeScript
19 lines
386 B
TypeScript
import { Account } from '../core/account';
|
|
|
|
import { LedgerItem } from './ledger-item';
|
|
|
|
export class Ledger {
|
|
startDate: string;
|
|
finishDate: string;
|
|
account: Account;
|
|
body: LedgerItem[];
|
|
|
|
public constructor(init?: Partial<Ledger>) {
|
|
this.startDate = '';
|
|
this.finishDate = '';
|
|
this.account = new Account();
|
|
this.body = [];
|
|
Object.assign(this, init);
|
|
}
|
|
}
|