UNPKG

apt-maintenance-account

Version:

Apartment Maintenance Account Tracking Application - Client Side in Angular

42 lines (37 loc) 867 B
export class Account { constructor( public id: number = 0, public item: string = '', public flat_number: string = '', public for_month: number = 0, public for_year: number = 0, public name: string = '', public crdr: string = '', public amount: number = 0.0, public balance: number = 0.0, public category: string = '', public recorded_at: string = '', public remarks: string = '', public owner_id: number = 0 // 0 for admin user ) { } clone() { return new Account( this.id, this.item, this.flat_number, this.for_month, this.for_year, this.name, this.crdr, this.amount, this.balance, this.category, this.recorded_at, this.remarks, this.owner_id ); } public txn_date() { return new Date(this.recorded_at); } }