You've already forked openaccounting-web
mirror of
https://github.com/openaccounting/oa-web.git
synced 2025-12-09 17:11:00 +13:00
initial commit
This commit is contained in:
16
src/app/shared/org.ts
Normal file
16
src/app/shared/org.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
export class Org {
|
||||
id: string;
|
||||
inserted: Date;
|
||||
updated: Date;
|
||||
name: string;
|
||||
currency: string;
|
||||
precision: number;
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user