Fixed issues arising from API changes.

This commit is contained in:
Clinton Alexander 2016-07-08 10:22:26 +01:00
parent f3e0a0c0be
commit 742200d781
2 changed files with 6 additions and 12 deletions

View File

@ -55,7 +55,7 @@ let floatingLegModel = {
paymentDelay: 0,
paymentCalendar: [ "London" ],
interestPeriodAdjustment: "Adjusted",
fixingPeriod: "TWODAYS",
fixingPeriodOffset: 2,
resetRule: "InAdvance",
fixingsPerPayment: "Quarterly",
fixingCalendar: [ "NewYork" ],
@ -123,8 +123,7 @@ let commonViewModel = {
let dealViewModel = {
fixedLeg: fixedLegModel,
floatingLeg: floatingLegModel,
common: commonViewModel,
notary: "Bank A"
common: commonViewModel
};
// TODO: Fill out this lookup table and use it to inject into the view.
@ -168,8 +167,7 @@ let Deal = function(dealViewModel) {
fixedLeg: fixedLeg,
floatingLeg: floatingLeg,
calculation: calculationModel,
common: common,
notary: dealViewModel.notary
common: common
}
return json;

View File

@ -250,8 +250,8 @@
</div>
</div>
<div class="field">
<label>Fixing Period</label>
<input type="text" name="fixingPeriod" ng-model="deal.floatingLeg.fixingPeriod"/>
<label>Fixing Period Offset</label>
<input type="number" name="fixingPeriodOffset" ng-model="deal.floatingLeg.fixingPeriodOffset"/>
</div>
<div class="field">
<label>Reset Rule</label>
@ -272,7 +272,7 @@
<input type="text" name="index" ng-model="deal.floatingLeg.index"/>
</div>
<div class="field">
<label>IndexSource</label>
<label>Index Source</label>
<input type="text" name="indexSource" ng-model="deal.floatingLeg.indexSource"/>
</div>
<div class="ui container">
@ -285,10 +285,6 @@
</div>
<div class="sixteen wide column">
<h3>Common</h3>
<div class="field">
<label>Notary</label>
<input type="text" name="notary" ng-model="deal.notary"/>
</div>
<div class="field">
<label>Base Currency</label>
<input type="text" name="baseCurrency" ng-model="deal.common.baseCurrency"/>