import { Account } from './account'; import { CostCentre } from './cost-centre'; export class Journal { id: string | undefined; debit: number; amount: number; account: Account; costCentre: CostCentre | null; public constructor(init?: Partial) { this.debit = 0; this.amount = 0; this.account = new Account(); this.costCentre = new CostCentre(); Object.assign(this, init); } }