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/Bill.php

    r727 r738  
    44{
    55  var $SpecificSymbol = 1; // počítačová sít
    6   var $Checked; 
    7  
     6  var $Checked;
     7
    88  function GenerateHTML()
    99  {
     
    2121  function HtmlToPdf($HtmlCode)
    2222  {
    23         $Encoding = new Encoding();
    24         if($this->Checked == false) {
    25                 if(CommandExist('htmldoc')) {
    26                         $this->Checked = true;
    27                 } else throw new Exception('htmldoc is not installed.');
    28         }
     23    $Encoding = new Encoding();
     24    if($this->Checked == false) {
     25      if(CommandExist('htmldoc')) {
     26        $this->Checked = true;
     27      } else throw new Exception('htmldoc is not installed.');
     28    }
    2929    $Output = shell_exec('echo "'.addslashes($Encoding->FromUTF8($HtmlCode)).
    3030      '"|htmldoc --no-numbered --webpage --no-embedfonts --charset 8859-2 -t pdf -');
     
    3939  function ShowSubjectInfo($Subject)
    4040  {
    41         $BooleanText = array('Ne', 'Ano');
    42         $Output = $Subject['Name'].'<br>'.
     41    $BooleanText = array('Ne', 'Ano');
     42    $Output = $Subject['Name'].'<br>'.
    4343      $Subject['AddressStreet'].'<br>'.
    4444      $Subject['AddressPSC'].' '.$Subject['AddressTown'].'<br>';
     
    4747    if($Subject['Account'] != '') $Output .= 'Účet: '.$Subject['Account'].'<br>';
    4848    if($Subject['PayVAT'] != '') $Output .= 'Plátce DPH: '.$BooleanText[$Subject['PayVAT']].'<br>';
    49         return($Output);
     49    return($Output);
    5050  }
    5151
     
    8181    if($Invoice['Direction'] == -1)
    8282    {
    83         $Subject = $SubjectTo;
    84         $SubjectTo = $SubjectFrom;
    85         $SubjectFrom = $Subject;
     83      $Subject = $SubjectTo;
     84      $SubjectTo = $SubjectFrom;
     85      $SubjectFrom = $Subject;
    8686    }
    8787
Note: See TracChangeset for help on using the changeset viewer.