1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-07-01 12:08:37 -04:00

Add initial UI for user-editable securities

This commit is contained in:
2016-10-26 06:58:14 -04:00
parent a61e460c2f
commit ce6660b575
14 changed files with 689 additions and 10 deletions

View File

@ -94,6 +94,7 @@ function Security() {
this.Symbol = "";
this.Precision = -1;
this.Type = -1;
this.AlternateId = "";
}
Security.prototype.toJSON = function() {
@ -104,6 +105,7 @@ Security.prototype.toJSON = function() {
json_obj.Symbol = this.Symbol;
json_obj.Precision = this.Precision;
json_obj.Type = this.Type;
json_obj.AlternateId = this.AlternateId;
return JSON.stringify(json_obj);
}
@ -122,6 +124,8 @@ Security.prototype.fromJSON = function(json_input) {
this.Precision = json_obj.Precision;
if (json_obj.hasOwnProperty("Type"))
this.Type = json_obj.Type;
if (json_obj.hasOwnProperty("AlternateId"))
this.AlternateId = json_obj.AlternateId;
}
Security.prototype.isSecurity = function() {