Ignore:
Timestamp:
Apr 14, 2015, 10:20:16 PM (10 years ago)
Author:
chronos
Message:
  • Removed: Spaces on end of line.
  • Modified: Tabs converted to spaces.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Finance/Zivnost.php

    r724 r738  
    5050    $Balance['SmallAssets']['End'] = $Row[0] + 0;
    5151    return($Balance);
    52   } 
     52  }
    5353
    5454  function Show()
     
    142142        $Output .= '<strong>Příjmy za rok '.$Year['Year'].'</strong>';
    143143        $Output .= '<table style="font-size: smaller;" class="WideTable">';
    144         $Output .= '<tr><th>Čas</th><th>Kód</th><th>Subjekt</th><th>Text</th><th>Hodnota [Kč]</th><th>Daňový</th><th>Hotovost</th></tr>';       
     144        $Output .= '<tr><th>Čas</th><th>Kód</th><th>Subjekt</th><th>Text</th><th>Hodnota [Kč]</th><th>Daňový</th><th>Hotovost</th></tr>';
    145145        $DbResult = $this->Database->query('SELECT * FROM FinanceOperation LEFT JOIN Subject ON Subject.Id = FinanceOperation.Subject '.
    146146          'WHERE (Direction = 1) AND (FinanceOperation.Time >= "'.$Year['DateStart'].'") AND (FinanceOperation.Time <= "'.$Year['DateEnd'].'") ORDER BY Time');
     
    172172        $Output .= '<strong>Výdaje za rok '.$Year['Year'].'</strong>';
    173173        $Output .= '<table style="font-size: smaller;" class="WideTable">';
    174         $Output .= '<tr><th>Čas</th><th>Kód</th><th>Subjekt</th><th>Text</th><th>Hodnota [Kč]</th><th>Daňový</th><th>Hotovost</th></tr>';       
     174        $Output .= '<tr><th>Čas</th><th>Kód</th><th>Subjekt</th><th>Text</th><th>Hodnota [Kč]</th><th>Daňový</th><th>Hotovost</th></tr>';
    175175        $DbResult = $this->Database->query('SELECT * FROM FinanceOperation LEFT JOIN Subject ON Subject.Id = FinanceOperation.Subject '.
    176176          'WHERE (Direction = -1) AND (FinanceOperation.Time >= "'.$Year['DateStart'].'") AND (FinanceOperation.Time <= "'.$Year['DateEnd'].'") ORDER BY Time');
     
    197197        $DbResult = $this->Database->select('FinanceYear', '*', 'Id='.$_GET['year']);
    198198        $Year = $DbResult->fetch_assoc();
    199        
     199
    200200        $Total = 0;
    201201        $Output .= '<strong>Pohledávky za rok '.$Year['Year'].'</strong>';
     
    234234          $Row['Value'] = $Row['Value'] * -1;
    235235          $Output .= '<tr><td>'.HumanDate($Row['Time']).'</td><td>'.$Row['BillCode'].
    236             '</td><td>'.$Row['Name'].'</td><td>'.$Row['Text'].'</td><td>'.($Row['Value'] * $Row['Direction']).'</td></tr>';         
     236            '</td><td>'.$Row['Name'].'</td><td>'.$Row['Text'].'</td><td>'.($Row['Value'] * $Row['Direction']).'</td></tr>';
    237237          $Total += $Row['Value'];
    238238        }
     
    288288        $Output .= '<tr><th>Datum vytvoření</th><th>Datum zaplacení</th><th>Název</th><th>Hodnota [Kč]</th><th>Doklad</th></tr>';
    289289        $DbResult = $this->Database->select('FinanceInvoice', '*, (SELECT GROUP_CONCAT(Description SEPARATOR ",") '.
    290                 'FROM FinanceInvoiceItem WHERE FinanceInvoiceItem.FinanceInvoice = FinanceInvoice.Id) AS Text',
    291                 'Subject='.$_GET['Id'].' ORDER BY Time');
     290          'FROM FinanceInvoiceItem WHERE FinanceInvoiceItem.FinanceInvoice = FinanceInvoice.Id) AS Text',
     291          'Subject='.$_GET['Id'].' ORDER BY Time');
    292292        while($Row = $DbResult->fetch_array())
    293293        {
     
    317317          'WHERE (FinanceInvoice.Subject = Subject.Id) AND (FinanceInvoice.Direction = -1) '.
    318318          'AND (TimePayment IS NULL)) AS OpenedLiabilities, '.
    319                 '(SELECT SUM(FinanceOperation.Value*FinanceOperation.Direction) '.
     319          '(SELECT SUM(FinanceOperation.Value*FinanceOperation.Direction) '.
    320320          'FROM FinanceOperation WHERE FinanceOperation.Subject = Subject.Id AND FinanceOperation.Direction = 1) '.
    321321          'AS Gains, (SELECT SUM(FinanceOperation.Value*FinanceOperation.Direction) FROM FinanceOperation WHERE '.
     
    341341        $Output .= '<strong>Roční přehledy</strong><br/>';
    342342        $Output .= $this->ShowFinanceYears();
    343         if(array_key_exists('year', $_GET)) 
     343        if(array_key_exists('year', $_GET))
    344344        {
    345345          $Year = $_GET['year'] * 1;
     
    353353    return($Output);
    354354  }
    355  
     355
    356356  function ShowFinanceYears()
    357357  {
Note: See TracChangeset for help on using the changeset viewer.