web: some naming convention would be nice
This commit is contained in:
		
							parent
							
								
									5fbdae005b
								
							
						
					
					
						commit
						28f23d09cf
					
				| @ -59,20 +59,20 @@ journalTransactionsReportAsHtml _ vd (_,items) = [hamlet| | ||||
|  where | ||||
| -- .#{datetransition} | ||||
|    itemAsHtml :: ViewData -> (Int, Bool, Bool, Bool, TransactionsReportItem) -> HtmlUrl AppRoute | ||||
|    itemAsHtml VD{..} (n, _, _, _, (t, _, split, _, amt, _)) = [hamlet| | ||||
| <tr ##{tindex t} .item.#{evenodd}.#{firstposting} style="vertical-align:top;" title="#{show t}"> | ||||
|    itemAsHtml VD{..} (n, _, _, _, (torig, _, split, _, amt, _)) = [hamlet| | ||||
| <tr ##{tindex torig} .item.#{evenodd}.#{firstposting} style="vertical-align:top;" title="#{show torig}"> | ||||
|  <td.date>#{date} | ||||
|  <td.description colspan=2>#{elideRight 60 desc} | ||||
|  <td.amount style="text-align:right;"> | ||||
|   $if showamt | ||||
|    \#{mixedAmountAsHtml amt} | ||||
| $forall p' <- tpostings t | ||||
|  <tr .item.#{evenodd}.posting title="#{show t}"> | ||||
| $forall p' <- tpostings torig | ||||
|  <tr .item.#{evenodd}.posting title="#{show torig}"> | ||||
|   <td.date> | ||||
|   <td.description> | ||||
|   <td.account> | ||||
|      | ||||
|    <a href="@?{acctlink (paccount p')}##{tindex t}" title="#{paccount p'}">#{elideAccountName 40 $ paccount p'} | ||||
|    <a href="@?{acctlink (paccount p')}##{tindex torig}" title="#{paccount p'}">#{elideAccountName 40 $ paccount p'} | ||||
|   <td.amount style="text-align:right;">#{mixedAmountAsHtml $ pamount p'} | ||||
| <tr.#{evenodd}> | ||||
|  <td>  | ||||
| @ -86,7 +86,7 @@ $forall p' <- tpostings t | ||||
|        -- datetransition | newm = "newmonth" | ||||
|        --                | newd = "newday" | ||||
|        --                | otherwise = "" :: String | ||||
|        (firstposting, date, desc) = (False, show $ tdate t, tdescription t) | ||||
|        (firstposting, date, desc) = (False, show $ tdate torig, tdescription torig) | ||||
|        -- acctquery = (here, [("q", pack $ accountQuery acct)]) | ||||
|        showamt = not split || not (isZeroMixedAmount amt) | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user