Ignore:
Timestamp:
Jan 6, 2015, 12:02:36 AM (10 years ago)
Author:
chronos
Message:
  • Fixed: Errors with periodic finance invoice generation.
  • Fixed: In case of generating of incoming invoice wrong outgoing DocumentLine was used.
  • Added: Show related bank accounts in Subject view.
  • Added: Check if htmldoc is installed in OS.
File:
1 edited

Legend:

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

    r720 r727  
    44{
    55  var $SpecificSymbol = 1; // počítačová sít
    6 
     6  var $Checked; 
     7 
    78  function GenerateHTML()
    89  {
     
    2122  {
    2223        $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        }
    2329    $Output = shell_exec('echo "'.addslashes($Encoding->FromUTF8($HtmlCode)).
    2430      '"|htmldoc --no-numbered --webpage --no-embedfonts --charset 8859-2 -t pdf -');
Note: See TracChangeset for help on using the changeset viewer.