mirror of
https://github.com/OpenBankProject/OBP-API.git
synced 2026-02-06 15:06:50 +00:00
Its showing other account and date
This commit is contained in:
parent
a316999c49
commit
06b6892ef2
4
.gitignore
vendored
4
.gitignore
vendored
@ -1 +1,3 @@
|
||||
*.class
|
||||
*.class
|
||||
*.db
|
||||
.DS_Store
|
||||
@ -24,7 +24,7 @@ class OBPTransactionSnippet extends StatefulSnippet with PaginatorSnippet[OBPTra
|
||||
override def itemsPerPage = 5
|
||||
//override def page = OBPTransaction.findAll(QueryBuilder.start().get(), Limit(itemsPerPage), Skip(curPage*itemsPerPage))
|
||||
|
||||
override def obp_transactions = OBPTransaction.findAll(QueryBuilder.start().get())
|
||||
override def page = OBPTransaction.findAll(QueryBuilder.start().get())
|
||||
|
||||
|
||||
|
||||
@ -49,8 +49,9 @@ class OBPTransactionSnippet extends StatefulSnippet with PaginatorSnippet[OBPTra
|
||||
// call anonymous function on every transaction in obp_transactions (i.e. what a map does)
|
||||
// the lambda function here replaces some stuff with the data
|
||||
|
||||
obp_transactions.flatMap(obp_transaction => {
|
||||
(".opb_transaction_other_account *" #> obp_transaction.opb_transaction_other_account).apply(xhtml)
|
||||
page.flatMap(obp_transaction => {
|
||||
( ".obp_transaction_date_start *" #> obp_transaction.obp_transaction_date_start.toForm &
|
||||
".opb_transaction_other_account *" #> obp_transaction.opb_transaction_other_account).apply(xhtml)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
@ -28,6 +28,7 @@
|
||||
<tbody>
|
||||
<tr class="lift:OBPTransactionSnippet.showAll">
|
||||
<td class="opb_transaction_other_account">other account</td>
|
||||
<td class="obp_transaction_date_start">start date</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user