X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep709.php;h=3e7b9d79861fa559552606682a032c33220edc7f;hb=884c36eec7dbaae89e1f5532cc2c2f8033b010fd;hp=d944960c87b16e97d4c9be84ecedd9adec0563e7;hpb=b37623cf1de2cfce6825744557d76475f002321f;p=fa-stable.git diff --git a/reporting/rep709.php b/reporting/rep709.php index d944960c..3e7b9d79 100644 --- a/reporting/rep709.php +++ b/reporting/rep709.php @@ -77,8 +77,12 @@ function print_tax_report() $to = $_POST['PARAM_1']; $summaryOnly = $_POST['PARAM_2']; $comments = $_POST['PARAM_3']; + $destination = $_POST['PARAM_4']; - include_once($path_to_root . "/reporting/includes/pdf_report.inc"); + if ($destination) + include_once($path_to_root . "/reporting/includes/excel_report.inc"); + else + include_once($path_to_root . "/reporting/includes/pdf_report.inc"); $dec = user_price_dec(); @@ -165,8 +169,10 @@ function print_tax_report() $aligns2 = array('left', 'right', 'right', 'right', 'right', 'right', 'right'); - for ($i = 0; $i < count($cols2); $i++) - $rep->cols[$i] = $rep->leftMargin + $cols2[$i]; + $rep->Info($params, $cols2, $headers2, $aligns2); + + //for ($i = 0; $i < count($cols2); $i++) + // $rep->cols[$i] = $rep->leftMargin + $cols2[$i]; $rep->headers = $headers2; $rep->aligns = $aligns2; @@ -196,9 +202,9 @@ function print_tax_report() $rep->Font(); $rep->NewLine(); - if (method_exists($Hooks, 'TaxFunction')) + if (method_exists($Hooks, 'tax_report_done')) { - $Hooks->TaxFunction(); + $Hooks->tax_report_done(); } $rep->End();