Files
openaccounting-web/src/app/shared/org.ts

18 lines
533 B
TypeScript
Raw Normal View History

2018-10-19 11:28:08 -04:00
export class Org {
id: string;
inserted: Date;
updated: Date;
name: string;
currency: string;
precision: number;
2019-06-27 14:11:05 -04:00
timezone: string;
2018-10-19 11:28:08 -04:00
constructor(options: any = {}) {
this.id = options.id;
this.inserted = options.inserted ? new Date(options.inserted) : null;
this.updated = options.updated ? new Date(options.updated) : null;
this.name = options.name;
this.currency = options.currency;
this.precision = options.precision && parseInt(options.precision);
2019-06-27 14:11:05 -04:00
this.timezone = options.timezone;
2018-10-19 11:28:08 -04:00
}
}