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