mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-27 12:24:43 +03:00
acfbd36fb8
This produces identical results. The only fields used in the TransactionReport were torig, split, and amt. - torig is the same as in entriesReport - since transactionsReport calls accountTransactionsReportItems with None as thisacctq, all accounts are considered ‘other accounts’, so amt is always zero, and ($if not split && not (mixedAmountLooksZero amt)) never fires. - So the only thing used is torig, and we can just get that from the entriesReport.
38 lines
1.2 KiB
Plaintext
38 lines
1.2 KiB
Plaintext
<h2>
|
|
#{title'}
|
|
|
|
$if elem CapAdd caps
|
|
<a #addformlink href="#" role="button" style="cursor:pointer; margin-top:1em;"
|
|
data-toggle="modal" data-target="#addmodal" title="Add a new transaction to the journal">
|
|
Add a transaction
|
|
|
|
<div .table-responsive>
|
|
<table .transactionsreport .table .table-condensed>
|
|
<thead>
|
|
<th .date style="text-align:left;">Date
|
|
<th .description style="text-align:left;">Description
|
|
<th .account style="text-align:left;">Account
|
|
<th .amount style="text-align:right;">Amount
|
|
|
|
$forall torig <- items
|
|
<tr .title ##{transactionFrag torig} title="#{showTransaction torig}">
|
|
<td .date nowrap>
|
|
#{show (tdate torig)}
|
|
<td colspan=2>
|
|
#{textElideRight 60 (tdescription torig)}
|
|
<td .amount style="text-align:right;">
|
|
|
|
$forall Posting { paccount = acc, pamount = amt } <- tpostings torig
|
|
<tr .posting>
|
|
<td>
|
|
<td>
|
|
<td>
|
|
|
|
<a href="@?{acctlink acc}##{tindex torig}" title="#{acc}">
|
|
#{elideAccountName 40 acc}
|
|
<td .amount style="text-align:right;">
|
|
^{mixedAmountAsHtml amt}
|
|
|
|
$if elem CapAdd caps
|
|
^{addModal AddR j today}
|