projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rerun
[fa-stable.git]
/
reporting
/
rep709.php
diff --git
a/reporting/rep709.php
b/reporting/rep709.php
index 3fc4c6375673372cf19974563a047c1fb5625ee0..f24512d6a734ee9d453656c23edb5c6db4e2067f 100644
(file)
--- 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'];
$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();
@@
-107,7
+111,7
@@
function print_tax_report()
$rep->Info($params, $cols, $headers, $aligns);
if (!$summaryOnly)
{
$rep->Info($params, $cols, $headers, $aligns);
if (!$summaryOnly)
{
- $rep->
Header
();
+ $rep->
NewPage
();
}
$totalnet = 0.0;
}
$totalnet = 0.0;
@@
-140,7
+144,7
@@
function print_tax_report()
if ($rep->row < $rep->bottomMargin + $rep->lineHeight)
{
$rep->Line($rep->row - 2);
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) {
}
}
if ($trans['trans_type']==ST_JOURNAL && $trans['amount']<0) {
@@
-165,12
+169,14
@@
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;
- $rep->
Header
();
+ $rep->
NewPage
();
$taxtotal = 0;
foreach( $taxes as $id=>$sum)
$taxtotal = 0;
foreach( $taxes as $id=>$sum)