From ce77ace4ce3b96189e38a4e99712fe119b01fb51 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Tue, 19 May 2009 15:13:02 +0000 Subject: [PATCH] Added hook for optional TaxFunction. --- reporting/rep709.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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(); -- 2.30.2