! -> Note
$ -> Affected files
+26-Apr-2010 Joe Hunt
+! Allowing the Tax Report to be printed to Excel/OO Calc
+$ /reporting/rep709.php
+ /reports_main.php
+ /reporting/includes/excel_report.inc
+
21-Apr-2010 Joe Hunt
# [0000223] Incorrect backup of tables with more than 2 digit prefix
$ /admin/db/maintenance_db.inc
$this->endLine = 760;
$this->fontSize = $fontsize;
$this->oldFontSize = 0;
- $this->y = 1;
+ $this->y = 0;
$this->currency = '';
$this->excelColWidthFactor = $excelColWidthFactor;
$rtl = ($_SESSION['language']->dir == 'rtl');
function Header()
{
- $this->y = 0;
$tcol = $this->numcols - 1;
$this->sheet->setRow($this->y, 20);
for ($i = 0; $i < $this->numcols; $i++)
$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();
$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->numcols = count($headers2);
+ //$rep->headers = $headers2;
+ //$rep->aligns = $aligns2;
$rep->Header();
$taxtotal = 0;
array( _('Start Date') => 'DATEBEGINTAX',
_('End Date') => 'DATEENDTAX',
_('Summary Only') => 'YES_NO',
- _('Comments') => 'TEXTBOX'));
+ _('Comments') => 'TEXTBOX',
+ _('Destination') => 'DESTINATION'));
$reports->addReport(_('General Ledger'),710,_('Audit Trail'),
array( _('Start Date') => 'DATEBEGINM',
_('End Date') => 'DATEENDM',