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 |  where | ||||||
| -- .#{datetransition} | -- .#{datetransition} | ||||||
|    itemAsHtml :: ViewData -> (Int, Bool, Bool, Bool, TransactionsReportItem) -> HtmlUrl AppRoute |    itemAsHtml :: ViewData -> (Int, Bool, Bool, Bool, TransactionsReportItem) -> HtmlUrl AppRoute | ||||||
|    itemAsHtml VD{..} (n, _, _, _, (t, _, split, _, amt, _)) = [hamlet| |    itemAsHtml VD{..} (n, _, _, _, (torig, _, split, _, amt, _)) = [hamlet| | ||||||
| <tr ##{tindex t} .item.#{evenodd}.#{firstposting} style="vertical-align:top;" title="#{show t}"> | <tr ##{tindex torig} .item.#{evenodd}.#{firstposting} style="vertical-align:top;" title="#{show torig}"> | ||||||
|  <td.date>#{date} |  <td.date>#{date} | ||||||
|  <td.description colspan=2>#{elideRight 60 desc} |  <td.description colspan=2>#{elideRight 60 desc} | ||||||
|  <td.amount style="text-align:right;"> |  <td.amount style="text-align:right;"> | ||||||
|   $if showamt |   $if showamt | ||||||
|    \#{mixedAmountAsHtml amt} |    \#{mixedAmountAsHtml amt} | ||||||
| $forall p' <- tpostings t | $forall p' <- tpostings torig | ||||||
|  <tr .item.#{evenodd}.posting title="#{show t}"> |  <tr .item.#{evenodd}.posting title="#{show torig}"> | ||||||
|   <td.date> |   <td.date> | ||||||
|   <td.description> |   <td.description> | ||||||
|   <td.account> |   <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'} |   <td.amount style="text-align:right;">#{mixedAmountAsHtml $ pamount p'} | ||||||
| <tr.#{evenodd}> | <tr.#{evenodd}> | ||||||
|  <td>  |  <td>  | ||||||
| @ -86,7 +86,7 @@ $forall p' <- tpostings t | |||||||
|        -- datetransition | newm = "newmonth" |        -- datetransition | newm = "newmonth" | ||||||
|        --                | newd = "newday" |        --                | newd = "newday" | ||||||
|        --                | otherwise = "" :: String |        --                | 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)]) |        -- acctquery = (here, [("q", pack $ accountQuery acct)]) | ||||||
|        showamt = not split || not (isZeroMixedAmount amt) |        showamt = not split || not (isZeroMixedAmount amt) | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user