X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep709.php;h=e52f293395c08b265a20e203b0eb4cce09a88daa;hb=931f50706c4dcc60c5a26c99d0837b7509277f78;hp=29fbc02532bf9b1ddbabf2bd98db7159b3a6c8d9;hpb=b2d74dd9702a3bedea66cc832033a21c9ed59c45;p=fa-stable.git diff --git a/reporting/rep709.php b/reporting/rep709.php index 29fbc025..e52f2933 100644 --- a/reporting/rep709.php +++ b/reporting/rep709.php @@ -71,7 +71,7 @@ function getTaxInfo($id) function print_tax_report() { - global $path_to_root, $trans_dir, $Hooks, $systypes_array; + global $path_to_root, $trans_dir, $systypes_array; $from = $_POST['PARAM_0']; $to = $_POST['PARAM_1']; @@ -111,7 +111,7 @@ function print_tax_report() $rep->Info($params, $cols, $headers, $aligns); if (!$summaryOnly) { - $rep->Header(); + $rep->NewPage(); } $totalnet = 0.0; @@ -144,7 +144,7 @@ function print_tax_report() if ($rep->row < $rep->bottomMargin + $rep->lineHeight) { $rep->Line($rep->row - 2); - $rep->Header(); + $rep->NewPage(); } } if ($trans['trans_type']==ST_JOURNAL && $trans['amount']<0) { @@ -174,10 +174,9 @@ function print_tax_report() //for ($i = 0; $i < count($cols2); $i++) // $rep->cols[$i] = $rep->leftMargin + $cols2[$i]; - //$rep->numcols = count($headers2); - //$rep->headers = $headers2; - //$rep->aligns = $aligns2; - $rep->Header(); + $rep->headers = $headers2; + $rep->aligns = $aligns2; + $rep->NewPage(); $taxtotal = 0; foreach( $taxes as $id=>$sum) @@ -203,10 +202,7 @@ function print_tax_report() $rep->Font(); $rep->NewLine(); - if (method_exists($Hooks, 'TaxFunction')) - { - $Hooks->TaxFunction(); - } + hook_tax_report_done(); $rep->End(); }