Changeset 338 for trunk/finance


Ignore:
Timestamp:
Jan 2, 2012, 11:18:15 PM (13 years ago)
Author:
chronos
Message:
  • Upraveno: Zaokrouhlování částek v ročním a měsíčním přehledu financí.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/finance/zivnost.php

    r243 r338  
    102102
    103103          $Output .= '<tr><td>'.$Year.'</td><td>'.date(HumanDate(TimeToMysqlDateTime($StartTime))).'</td><td>'.date(HumanDate(TimeToMysqlDateTime($EndTime))).'</td>';
    104           $Output .= '<td>'.$Balance['Income']['End'].'</td>';
    105           $Output .= '<td>'.$Balance['Spend']['End'].'</td>';
    106           $Output .= '<td>'.$Balance['Claims']['End'].'</td>';
    107           $Output .= '<td>'.$Balance['Liabilities']['End'].'</td>';
    108           $Output .= '<td>'.$Balance['SmallAssets']['End'].'</td>';
    109 
    110           $Output .= '<td>'.($Balance['Income']['End'] - $Balance['Income']['Start']).'</td>';
    111           $Output .= '<td>'.($Balance['Spend']['End'] - $Balance['Spend']['Start']).'</td>';
    112           $Output .= '<td>'.($Balance['Claims']['End'] - $Balance['Claims']['Start']).'</td>';
    113           $Output .= '<td>'.($Balance['Liabilities']['End'] - $Balance['Liabilities']['Start']).'</td>';
    114           $Output .= '<td>'.($Balance['SmallAssets']['End'] - $Balance['SmallAssets']['Start']).'</td>';
    115           $Output .= '<td>'.(($Balance['Income']['End'] - $Balance['Income']['Start']) - ($Balance['Spend']['End'] - $Balance['Spend']['Start'])).'</td></tr>';
     104          $Output .= '<td>'.round($Balance['Income']['End']).'</td>';
     105          $Output .= '<td>'.round($Balance['Spend']['End']).'</td>';
     106          $Output .= '<td>'.round($Balance['Claims']['End']).'</td>';
     107          $Output .= '<td>'.round($Balance['Liabilities']['End']).'</td>';
     108          $Output .= '<td>'.round($Balance['SmallAssets']['End']).'</td>';
     109
     110          $Output .= '<td>'.round($Balance['Income']['End'] - $Balance['Income']['Start']).'</td>';
     111          $Output .= '<td>'.round($Balance['Spend']['End'] - $Balance['Spend']['Start']).'</td>';
     112          $Output .= '<td>'.round($Balance['Claims']['End'] - $Balance['Claims']['Start']).'</td>';
     113          $Output .= '<td>'.round($Balance['Liabilities']['End'] - $Balance['Liabilities']['Start']).'</td>';
     114          $Output .= '<td>'.round($Balance['SmallAssets']['End'] - $Balance['SmallAssets']['Start']).'</td>';
     115          $Output .= '<td>'.round(($Balance['Income']['End'] - $Balance['Income']['Start']) - ($Balance['Spend']['End'] - $Balance['Spend']['Start'])).'</td></tr>';
    116116        }
    117117        $Output .= '</table>';
     
    139139
    140140              $Output .= '<tr><td>'.$Year.'</td><td>'.$Month.'</td><td>'.date(HumanDate(TimeToMysqlDateTime($StartTime))).'</td><td>'.date(HumanDate(TimeToMysqlDateTime($EndTime))).'</td>';
    141               $Output .= '<td>'.$Balance['Income']['End'].'</td>';
    142               $Output .= '<td>'.$Balance['Spend']['End'].'</td>';
    143               $Output .= '<td>'.$Balance['Claims']['End'].'</td>';
    144               $Output .= '<td>'.$Balance['Liabilities']['End'].'</td>';
    145               $Output .= '<td>'.$Balance['SmallAssets']['End'].'</td>';
    146 
    147               $Output .= '<td>'.($Balance['Income']['End'] - $Balance['Income']['Start']).'</td>';
    148               $Output .= '<td>'.($Balance['Spend']['End'] - $Balance['Spend']['Start']).'</td>';
    149               $Output .= '<td>'.($Balance['Claims']['End'] - $Balance['Claims']['Start']).'</td>';
    150               $Output .= '<td>'.($Balance['Liabilities']['End'] - $Balance['Liabilities']['Start']).'</td>';
    151               $Output .= '<td>'.($Balance['SmallAssets']['End'] - $Balance['SmallAssets']['Start']).'</td>';
    152               $Output .= '<td>'.(($Balance['Income']['End'] - $Balance['Income']['Start']) - ($Balance['Spend']['End'] - $Balance['Spend']['Start'])).'</td></tr>';
     141              $Output .= '<td>'.round($Balance['Income']['End']).'</td>';
     142              $Output .= '<td>'.round($Balance['Spend']['End']).'</td>';
     143              $Output .= '<td>'.round($Balance['Claims']['End']).'</td>';
     144              $Output .= '<td>'.round($Balance['Liabilities']['End']).'</td>';
     145              $Output .= '<td>'.round($Balance['SmallAssets']['End']).'</td>';
     146
     147              $Output .= '<td>'.round($Balance['Income']['End'] - $Balance['Income']['Start']).'</td>';
     148              $Output .= '<td>'.round($Balance['Spend']['End'] - $Balance['Spend']['Start']).'</td>';
     149              $Output .= '<td>'.round($Balance['Claims']['End'] - $Balance['Claims']['Start']).'</td>';
     150              $Output .= '<td>'.round($Balance['Liabilities']['End'] - $Balance['Liabilities']['Start']).'</td>';
     151              $Output .= '<td>'.round($Balance['SmallAssets']['End'] - $Balance['SmallAssets']['Start']).'</td>';
     152              $Output .= '<td>'.round(($Balance['Income']['End'] - $Balance['Income']['Start']) - ($Balance['Spend']['End'] - $Balance['Spend']['Start'])).'</td></tr>';
    153153        }
    154154      }
Note: See TracChangeset for help on using the changeset viewer.