Strict done!!
This commit is contained in:
@ -2,13 +2,17 @@ import { Account } from './account';
|
||||
import { CostCentre } from './cost-centre';
|
||||
|
||||
export class Journal {
|
||||
id: string;
|
||||
id: string | undefined;
|
||||
debit: number;
|
||||
amount: number;
|
||||
account: Account;
|
||||
costCentre: CostCentre;
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user