X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep601.php;h=75206499531941b0cbe7acba0e460898d3c6b185;hb=f086902be249cff3848f86b2601f138857c5d016;hp=2a3ee811cdd235eb9dc8e8f450d30ca4ed3202e1;hpb=0e716939fce4726f0ac912b120e977d885fbba68;p=fa-stable.git diff --git a/reporting/rep601.php b/reporting/rep601.php index 2a3ee811..75206499 100644 --- a/reporting/rep601.php +++ b/reporting/rep601.php @@ -1,5 +1,14 @@ . +***********************************************************************/ $page_security = 2; // ---------------------------------------------------------------- // $ Revision: 2.0 $ @@ -7,12 +16,12 @@ $page_security = 2; // 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"); //---------------------------------------------------------------------------------------------------- @@ -48,7 +57,7 @@ function print_bank_transactions() { 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()); @@ -88,9 +97,9 @@ function print_bank_transactions() $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); @@ -122,9 +131,9 @@ function print_bank_transactions() $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);