19 lines
420 B
TypeScript
19 lines
420 B
TypeScript
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<Journal>) {
|
|
this.debit = 0;
|
|
this.amount = 0;
|
|
this.account = new Account();
|
|
this.costCentre = new CostCentre();
|
|
Object.assign(this, init);
|
|
}
|
|
}
|