<?php
-
+/**********************************************************************
+ Copyright (C) FrontAccounting, LLC.
+ Released under the terms of the GNU Affero General Public License,
+ AGPL, as published by the Free Software Foundation, either version
+ 3 of the License, or (at your option) any later version.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ See the License here <http://www.gnu.org/licenses/agpl-3.0.html>.
+***********************************************************************/
$page_security = 2;
// ----------------------------------------------------------------
// $ Revision: 2.0 $
// date_: 2005-05-19
// Title: Bank Accounts Transactions
// ----------------------------------------------------------------
-$path_to_root="../";
+$path_to_root="..";
-include_once($path_to_root . "includes/session.inc");
-include_once($path_to_root . "includes/date_functions.inc");
-include_once($path_to_root . "includes/data_checks.inc");
-include_once($path_to_root . "gl/includes/gl_db.inc");
+include_once($path_to_root . "/includes/session.inc");
+include_once($path_to_root . "/includes/date_functions.inc");
+include_once($path_to_root . "/includes/data_checks.inc");
+include_once($path_to_root . "/gl/includes/gl_db.inc");
//----------------------------------------------------------------------------------------------------
{
global $path_to_root;
- include_once($path_to_root . "reporting/includes/pdf_report.inc");
+ include_once($path_to_root . "/reporting/includes/pdf_report.inc");
$rep = new FrontReport(_('Bank Statement'), "BankStatement.pdf", user_pagesize());
$rep->TextCol(0, 3, $act);
$rep->TextCol(3, 5, _('Opening Balance'));
if ($prev_balance > 0.0)
- $rep->TextCol(6, 7, number_format2(abs($prev_balance), $dec));
+ $rep->TextCol(5, 6, number_format2(abs($prev_balance), $dec));
else
- $rep->TextCol(7, 8, number_format2(abs($prev_balance), $dec));
+ $rep->TextCol(6, 7, number_format2(abs($prev_balance), $dec));
$rep->Font();
$total = $prev_balance;
$rep->NewLine(2);
$rep->Font('bold');
$rep->TextCol(3, 5, _("Ending Balance"));
if ($total > 0.0)
- $rep->TextCol(6, 7, number_format2(abs($total), $dec));
+ $rep->TextCol(5, 6, number_format2(abs($total), $dec));
else
- $rep->TextCol(7, 8, number_format2(abs($total), $dec));
+ $rep->TextCol(6, 7, number_format2(abs($total), $dec));
$rep->Font();
$rep->Line($rep->row - $rep->lineHeight + 4);
$rep->NewLine(2, 1);