You've already forked openaccounting-web
mirror of
https://github.com/openaccounting/oa-web.git
synced 2025-12-09 09:01:24 +13:00
18 lines
533 B
TypeScript
18 lines
533 B
TypeScript
export class Org {
|
|
id: string;
|
|
inserted: Date;
|
|
updated: Date;
|
|
name: string;
|
|
currency: string;
|
|
precision: number;
|
|
timezone: string;
|
|
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);
|
|
this.timezone = options.timezone;
|
|
}
|
|
} |