;lib: a few more zero-checking function references
This commit is contained in:
parent
24c33f3105
commit
95b8e268ce
@ -7,8 +7,8 @@
|
|||||||
$forall (acct, adisplay, aindent, abal) <- items
|
$forall (acct, adisplay, aindent, abal) <- items
|
||||||
<tr
|
<tr
|
||||||
:matchesAcctSelector acct:.inacct
|
:matchesAcctSelector acct:.inacct
|
||||||
:isZeroMixedAmount abal && hideEmpty:.hide>
|
:mixedAmountLooksZero abal && hideEmpty:.hide>
|
||||||
<td .acct :isZeroMixedAmount abal:.empty>
|
<td .acct :mixedAmountLooksZero abal:.empty>
|
||||||
<div .ff-wrapper>
|
<div .ff-wrapper>
|
||||||
\#{indent aindent}
|
\#{indent aindent}
|
||||||
<a.acct-name href="@?{(registerR, [("q", replaceInacct q $ accountQuery acct)])}"
|
<a.acct-name href="@?{(registerR, [("q", replaceInacct q $ accountQuery acct)])}"
|
||||||
|
|||||||
@ -21,7 +21,7 @@ $if elem CapAdd caps
|
|||||||
<td colspan=2>
|
<td colspan=2>
|
||||||
#{textElideRight 60 (tdescription torig)}
|
#{textElideRight 60 (tdescription torig)}
|
||||||
<td .amount style="text-align:right;">
|
<td .amount style="text-align:right;">
|
||||||
$if not split && not (isZeroMixedAmount amt)
|
$if not split && not (mixedAmountLooksZero amt)
|
||||||
^{mixedAmountAsHtml amt}
|
^{mixedAmountAsHtml amt}
|
||||||
|
|
||||||
$forall Posting { paccount = acc, pamount = amt } <- tpostings torig
|
$forall Posting { paccount = acc, pamount = amt } <- tpostings torig
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
<a href="@?{acctlink acc}##{tindex torig}" title="#{acc}">
|
<a href="@?{acctlink acc}##{tindex torig}" title="#{acc}">
|
||||||
#{summName}</a>#{comma}
|
#{summName}</a>#{comma}
|
||||||
<td .amount style="text-align:right; white-space:nowrap;">
|
<td .amount style="text-align:right; white-space:nowrap;">
|
||||||
$if not split || not (isZeroMixedAmount amt)
|
$if not split || not (mixedAmountLooksZero amt)
|
||||||
^{mixedAmountAsHtml amt}
|
^{mixedAmountAsHtml amt}
|
||||||
<td style="text-align:right;">
|
<td style="text-align:right;">
|
||||||
^{mixedAmountAsHtml bal}
|
^{mixedAmountAsHtml bal}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user