From: Janusz Dobrowolski Date: Tue, 19 May 2009 15:13:02 +0000 (+0000) Subject: Added hook for optional TaxFunction. X-Git-Tag: v2.4.2~19^2~1375 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=ce77ace4ce3b96189e38a4e99712fe119b01fb51;p=fa-stable.git Added hook for optional TaxFunction. --- diff --git a/reporting/rep709.php b/reporting/rep709.php index c135445f..0cd1f519 100644 --- a/reporting/rep709.php +++ b/reporting/rep709.php @@ -193,15 +193,9 @@ function print_tax_report() $rep->Font(); $rep->NewLine(); - $locale = $path_to_root . "/lang/" . $_SESSION['language']->code . "/locale.inc"; - if (file_exists($locale)) + if (method_exists($Hooks, 'TaxFunction')) { - $taxinclude = true; - include($locale); - -// if (function_exists("TaxFunction")) -// TaxFunction(); - + $Hooks->TaxFunction(); } $rep->End();