projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[0000290] Can't upload files
[fa-stable.git]
/
reporting
/
rep709.php
diff --git
a/reporting/rep709.php
b/reporting/rep709.php
index d944960c87b16e97d4c9be84ecedd9adec0563e7..e52f293395c08b265a20e203b0eb4cce09a88daa 100644
(file)
--- a/
reporting/rep709.php
+++ b/
reporting/rep709.php
@@
-71,14
+71,18
@@
function getTaxInfo($id)
function print_tax_report()
{
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'];
$summaryOnly = $_POST['PARAM_2'];
$comments = $_POST['PARAM_3'];
$from = $_POST['PARAM_0'];
$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();
$dec = user_price_dec();
@@
-165,8
+169,10
@@
function print_tax_report()
$aligns2 = array('left', 'right', 'right', 'right', 'right', 'right', 'right');
$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;
$rep->headers = $headers2;
$rep->aligns = $aligns2;
@@
-196,10
+202,7
@@
function print_tax_report()
$rep->Font();
$rep->NewLine();
$rep->Font();
$rep->NewLine();
- if (method_exists($Hooks, 'TaxFunction'))
- {
- $Hooks->TaxFunction();
- }
+ hook_tax_report_done();
$rep->End();
}
$rep->End();
}