Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SPB_Exchange_Repo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Amelin Konstantin
SPB_Exchange_Repo
Commits
dfdb5d4e
Commit
dfdb5d4e
authored
Mar 03, 2020
by
Amelin Konstantin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix TradeTemplate. If tradeId (TradeRepository) != NONREF, add it to output
parent
76ecd914
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
src/main/scala/templates/TradeTemplate.scala
+4
-0
No files found.
src/main/scala/templates/TradeTemplate.scala
View file @
dfdb5d4e
...
...
@@ -11,6 +11,10 @@ abstract class TradeTemplate(source: Node) extends RegiAmendTradeTemplate(source
{
/*
Uses
dictionary
from
PartyTemplate
for
identifier
*/
}
<fpml:partyTradeIdentifier>
<fpml:partyReference
href
={
parties
(
"TradeRepository"
).
_1
}/>
{
val
tradeId
=
get
((
source
\\
"trade"
\
"tradeHeader"
\
"partyTradeIdentifier"
\
"tradeId"
))
if
(
tradeId
!=
"NONREF"
)
<
fpml
:
tradeId
tradeIdScheme
={
"REP"
}>{
tradeId
}</
fpml
:
tradeId>
}
<
fpml
:
tradeId
tradeIdScheme
={
"UTI"
}>{
get
((
source
\\
"trade"
\
"tradeHeader"
\
"partyTradeIdentifier"
).
filter
(
_
.
child
.
filter
(
_
.
attributes
.
nonEmpty
).
head
.
attributes
(
"href"
).
text
.
mkString
==
"UTIGeneratingParty"
)
\
"tradeId"
)
}</
fpml
:
tradeId>
</fpml:partyTradeIdentifier>
{
for
{
s
<-
source
\\
"
trade
"
\
"
tradeHeader
"
\
"
partyTradeIdentifier
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment