Added hook for optional TaxFunction.
[fa-stable.git] / reporting / rep709.php
index c135445f9b91e0ee452faaa67d1ecb1e23f2ae28..0cd1f519328aa01b7d26a5481c6a56e96c8bd8f9 100644 (file)
@@ -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();