Skip to content

Commit

Permalink
chore: add data-json tag back for json format (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
kleyow authored Mar 5, 2025
1 parent e6cb430 commit 6f76840
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 10 deletions.
7 changes: 6 additions & 1 deletion templates/dfspSettlementDetail.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,13 @@ spec:
currencyId: participantCurrency.currencyId
});
}
const dataForJson = {
dfspInfo,
settlement: getSettlement,
report
};
%>
<div class="container">
<div class="container" data-json="<%= JSON.stringify(dataForJson) %>" >
<div class="header">
<h1>DFSP Settlement Detail</h1>
<img src="" alt="Logo">
Expand Down
7 changes: 5 additions & 2 deletions templates/report-bilateral-settlement.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -424,10 +424,13 @@ spec:
});
const settlementInfo = settlementInfoResult[0];
const dataForJson = {
settlementInfo,
calculatedSettlementRowsWithDetails
}
%>
<body>
<body data-json="<%= JSON.stringify(dataForJson) %>" >
<div class="container">
<div class="header">
<h1>DRPP Bilateral Net Settlement Report</h1>
Expand Down
11 changes: 7 additions & 4 deletions templates/report-multilateral-settlement.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
SELECT
s.settlementId,
s.createdDate,
ssc.settlementStateId as currenctState,
ssc.settlementStateId as currentState,
ssc.createdDate as lastStateUpdate,
sSW.createdDate as windowCreatedDate,
sSW.settlementWindowId,
Expand Down Expand Up @@ -309,9 +309,12 @@ spec:
}, {});
const settlementInfo = settlementInfoResult[0];
const dataForJson = {
settlementInfo,
groupedByCurrencyId
};
%>
<body>
<body data-json="<%= JSON.stringify(dataForJson) %>" >
<div class="container">
<div class="header">
<h1>Multilateral Settlement Report</h1>
Expand All @@ -320,7 +323,7 @@ spec:
<div class="summary">
<p>Settlement ID: <%= settlementInfo?.settlementId %></p>
<p>State: <%= settlementInfo?.currenctState %></p>
<p>State: <%= settlementInfo?.currentState %></p>
<p>Earliest Window Start: <%= settlementInfo?.windowOpenDate.toISOString() %></p>
<p>Latest Window Finish: <%= settlementInfo?.windowClosedDate.toISOString() %></p>
<p>Created Date: <%= settlementInfo?.createdDate.toISOString() %></p>
Expand Down
4 changes: 2 additions & 2 deletions templates/settlementWindow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ spec:
</style>
</head>
<body>
<div class="container">
<div class="container" >
<div class="header">
<h1>FSP Settlement Report</h1>
<img src="" alt="Logo">
Expand Down Expand Up @@ -302,7 +302,7 @@ spec:
}
%>
<table cellpadding='0' cellspacing='0'>
<table cellpadding='0' cellspacing='0' data-json="<%= JSON.stringify(reportGroupedByCurrency) %>">
<tr>
<td>fspId</td>
<td>settlementWindowId</td>
Expand Down
2 changes: 1 addition & 1 deletion templates/transactionReconciliation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ spec:
}
legacyTransferReport.push(...report);
%>
<div class="container">
<div class="container" data-json="<%= JSON.stringify(legacyTransferReport) %>" >
<div class="header">
<h1>FSP Reconciliation Report</h1>
<img src="" alt="Logo">
Expand Down

0 comments on commit 6f76840

Please sign in to comment.