diff --git a/src/main/webdemo/www/js/app.js b/src/main/webdemo/www/js/app.js index dba8095d9c..e0c5d4249d 100644 --- a/src/main/webdemo/www/js/app.js +++ b/src/main/webdemo/www/js/app.js @@ -79,7 +79,7 @@ let calculationModel = { }; // Todo: Finish this model to solve the problem of the dates being in two different formats -let commonModel = function() { +/*let commonModel = function() { this.baseCurrency = "EUR"; this.eligibleCurrency = "EUR"; this.eligibleCreditSupport: "Cash in an Eligible Currency"; @@ -116,7 +116,46 @@ let commonModel = function() { dailyInterestAmount: "(CashAmount * InterestRate ) / (fixedLeg.notional.token.currencyCode.equals('GBP')) ? 365 : 360", tradeID: tradeId, hashLegalDocs: "put hash here" -}; +};*/ + +let commonModel = { + "baseCurrency": "EUR", + "eligibleCurrency": "EUR", + "eligibleCreditSupport": "Cash in an Eligible Currency", + "independentAmounts": { + "quantity": 0, + "token": "EUR" + }, + "threshold": { + "quantity": 0, + "token": "EUR" + }, + "minimumTransferAmount": { + "quantity": 25000000, + "token": "EUR" + }, + "rounding": { + "quantity": 1000000, + "token": "EUR" + }, + "valuationDate": "Every Local Business Day", + "notificationTime": "2:00pm London", + "resolutionTime": "2:00pm London time on the first LocalBusiness Day following the date on which the notice is give", + "interestRate": { + "oracle": "Rates Service Provider", + "tenor": { + "name": "6M" + }, + "ratioUnit": null, + "name": "EONIA" + }, + "addressForTransfers": "", + "exposure": {}, + "localBusinessDay": [ "London" , "NewYork" ], + "dailyInterestAmount": "(CashAmount * InterestRate ) / (fixedLeg.notional.token.currencyCode.equals('GBP')) ? 365 : 360", + "tradeID": "tradeXXX", + "hashLegalDocs": "put hash here" + }; let irsViewer = angular.module('irsViewer', ['ngRoute']) .config(($routeProvider, $locationProvider) => { diff --git a/src/main/webdemo/www/view/create-deal.html b/src/main/webdemo/www/view/create-deal.html index a963838092..b77d7503e2 100644 --- a/src/main/webdemo/www/view/create-deal.html +++ b/src/main/webdemo/www/view/create-deal.html @@ -22,6 +22,7 @@ @@ -46,16 +47,6 @@ -
-

Fixed Rate

-
-

Ratio Unit

-
- - -
-
-
@@ -66,28 +57,53 @@
- +
-
- - -
- +
+
+ + +
- +
@@ -106,6 +122,7 @@
@@ -140,11 +157,31 @@
- +
- +
@@ -154,13 +191,18 @@
-
- - -
- +
- +
@@ -207,13 +255,6 @@
-
-

Calculation

-
- - -
-

Common

@@ -257,6 +298,7 @@
@@ -272,6 +314,7 @@ @@ -335,18 +378,6 @@ --> -
- - -
-
- - -
-
- - -