;lib: a few more zero-checking function references

This commit is contained in:
Simon Michael 2020-05-29 19:04:52 -07:00
parent 24c33f3105
commit 95b8e268ce
3 changed files with 4 additions and 4 deletions

View File

@ -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)])}"

View File

@ -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

View File

@ -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}