mirror of
https://github.com/corda/corda.git
synced 2025-01-31 16:35:43 +00:00
All fields now submit correctly.
This commit is contained in:
parent
4628fe426c
commit
20f5467e91
@ -1,6 +1,6 @@
|
||||
"use strict"
|
||||
|
||||
define(['utils/dayCountBasisLookup', 'viewmodel/FixedRate'], (dayCountBasisLookup, fixedRateViewModel) => {
|
||||
define(['viewmodel/FixedRate'], (fixedRateViewModel) => {
|
||||
let calculationModel = {
|
||||
expression: "( fixedLeg.notional.quantity * (fixedLeg.fixedRate.ratioUnit.value)) -(floatingLeg.notional.quantity * (calculation.fixingSchedule.get(context.getDate('currentDate')).rate.ratioUnit.value))",
|
||||
floatingLegPaymentSchedule: {
|
||||
@ -29,15 +29,15 @@ define(['utils/dayCountBasisLookup', 'viewmodel/FixedRate'], (dayCountBasisLooku
|
||||
fixedLeg.effectiveDate = formatDateForNode(common.effectiveDate);
|
||||
fixedLeg.terminationDate = formatDateForNode(common.terminationDate);
|
||||
fixedLeg.fixedRate = { ratioUnit: { value: fixedLeg.fixedRate } };
|
||||
fixedLeg.dayCountBasisDay = dayCountBasisLookup[fixedLeg.dayCountBasis].day;
|
||||
fixedLeg.dayCountBasisYear = dayCountBasisLookup[fixedLeg.dayCountBasis].year;
|
||||
fixedLeg.dayCountBasisDay = fixedLeg.dayCountBasis.day;
|
||||
fixedLeg.dayCountBasisYear = fixedLeg.dayCountBasis.year;
|
||||
delete fixedLeg.dayCountBasis;
|
||||
|
||||
floatingLeg.notional.token = common.baseCurrency;
|
||||
floatingLeg.effectiveDate = formatDateForNode(common.effectiveDate);
|
||||
floatingLeg.terminationDate = formatDateForNode(common.terminationDate);
|
||||
floatingLeg.dayCountBasisDay = dayCountBasisLookup[floatingLeg.dayCountBasis].day;
|
||||
floatingLeg.dayCountBasisYear = dayCountBasisLookup[floatingLeg.dayCountBasis].year;
|
||||
floatingLeg.dayCountBasisDay = floatingLeg.dayCountBasis.day;
|
||||
floatingLeg.dayCountBasisYear = floatingLeg.dayCountBasis.year;
|
||||
delete floatingLeg.dayCountBasis;
|
||||
|
||||
common.tradeID = tradeId;
|
||||
|
@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
define([], () => {
|
||||
define(['utils/dayCountBasisLookup'], (dayCountBasisLookup) => {
|
||||
return {
|
||||
fixedRatePayer: "Bank A",
|
||||
notional: {
|
||||
@ -10,7 +10,7 @@ define([], () => {
|
||||
effectiveDateAdjustment: null,
|
||||
terminationDateAdjustment: null,
|
||||
fixedRate: "1.676",
|
||||
dayCountBasis: "30/360",
|
||||
dayCountBasis: dayCountBasisLookup["ACT/360"],
|
||||
rollConvention: "Following",
|
||||
dayInMonth: 10,
|
||||
paymentRule: "InArrears",
|
||||
|
@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
define([], () => {
|
||||
define(['utils/dayCountBasisLookup'], (dayCountBasisLookup) => {
|
||||
return {
|
||||
floatingRatePayer: "Bank B",
|
||||
notional: {
|
||||
@ -11,7 +11,7 @@ define([], () => {
|
||||
effectiveDateAdjustment: null,
|
||||
terminationDate: new Date(2026, 3, 11),
|
||||
terminationDateAdjustment: null,
|
||||
dayCountBasis: "30/360",
|
||||
dayCountBasis: dayCountBasisLookup["ACT/360"],
|
||||
rollConvention: "Following",
|
||||
fixingRollConvention: "Following",
|
||||
dayInMonth: 10,
|
||||
|
@ -109,20 +109,9 @@
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>Day Count Basis</label>
|
||||
<select class="ui selection " ng-model="deal.floatingLeg.dayCountBasis">
|
||||
<option>1/1</option>
|
||||
<option>30/360</option>
|
||||
<option>30E/360</option>
|
||||
<option>30E/360 (IDSA)</option>
|
||||
<option>30E+/360 ISDO</option>
|
||||
<option selected="selected">ACT/360</option>
|
||||
<option>ACT/365 Fixed</option>
|
||||
<option>ACT/365 L</option>
|
||||
<option>ACT/365 A/1</option>
|
||||
<option>NL/365</option>
|
||||
<option>ACT/ACT ISDA</option>
|
||||
<option>ACT/ACT ICMA</option>
|
||||
<option>Business/252</option>
|
||||
<select class="ui selection"
|
||||
ng-model="deal.floatingLeg.dayCountBasis"
|
||||
ng-options="key for (key, value) in dayCountBasisLookup">
|
||||
</select>
|
||||
</div>
|
||||
<div class="field">
|
||||
|
Loading…
x
Reference in New Issue
Block a user