Changeset 738 for trunk/Modules/Finance/Bill.php
- Timestamp:
- Apr 14, 2015, 10:20:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Bill.php
r727 r738 4 4 { 5 5 var $SpecificSymbol = 1; // počítačová sít 6 var $Checked; 7 6 var $Checked; 7 8 8 function GenerateHTML() 9 9 { … … 21 21 function HtmlToPdf($HtmlCode) 22 22 { 23 24 25 26 27 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 } 29 29 $Output = shell_exec('echo "'.addslashes($Encoding->FromUTF8($HtmlCode)). 30 30 '"|htmldoc --no-numbered --webpage --no-embedfonts --charset 8859-2 -t pdf -'); … … 39 39 function ShowSubjectInfo($Subject) 40 40 { 41 42 41 $BooleanText = array('Ne', 'Ano'); 42 $Output = $Subject['Name'].'<br>'. 43 43 $Subject['AddressStreet'].'<br>'. 44 44 $Subject['AddressPSC'].' '.$Subject['AddressTown'].'<br>'; … … 47 47 if($Subject['Account'] != '') $Output .= 'Účet: '.$Subject['Account'].'<br>'; 48 48 if($Subject['PayVAT'] != '') $Output .= 'Plátce DPH: '.$BooleanText[$Subject['PayVAT']].'<br>'; 49 49 return($Output); 50 50 } 51 51 … … 81 81 if($Invoice['Direction'] == -1) 82 82 { 83 84 85 83 $Subject = $SubjectTo; 84 $SubjectTo = $SubjectFrom; 85 $SubjectFrom = $Subject; 86 86 } 87 87
Note:
See TracChangeset
for help on using the changeset viewer.