projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed amibiguity in few text messages to make translations easier, updated gettext...
[fa-stable.git]
/
reporting
/
rep701.php
diff --git
a/reporting/rep701.php
b/reporting/rep701.php
index 30e6aa05595ae67b6a58affc4482625bcae367da..78dc2c7d91a7f794916eca23cfe91ec9f8be3895 100644
(file)
--- a/
reporting/rep701.php
+++ b/
reporting/rep701.php
@@
-28,7
+28,7
@@
include_once($path_to_root . "/gl/includes/gl_db.inc");
function display_type ($type, $typename, &$dec, &$rep, $showbalance, $level)
{
$printtitle = 0; //Flag for printing type name
function display_type ($type, $typename, &$dec, &$rep, $showbalance, $level)
{
$printtitle = 0; //Flag for printing type name
-
+
//Get Accounts directly under this group/type
$result = get_gl_accounts(null, null, $type);
while ($account=db_fetch($result))
//Get Accounts directly under this group/type
$result = get_gl_accounts(null, null, $type);
while ($account=db_fetch($result))
@@
-40,7
+40,7
@@
function display_type ($type, $typename, &$dec, &$rep, $showbalance, $level)
for ($sp=1; $sp<=$level; $sp++)
{
$prefix .= ' ';
for ($sp=1; $sp<=$level; $sp++)
{
$prefix .= ' ';
- }
+ }
$printtitle = 1;
$rep->row -= 4;
$rep->TextCol(0, 1, $type);
$printtitle = 1;
$rep->row -= 4;
$rep->TextCol(0, 1, $type);
@@
-63,7
+63,7
@@
function display_type ($type, $typename, &$dec, &$rep, $showbalance, $level)
$rep->AmountCol(3, 4, $balance, $dec);
$rep->NewLine();
}
$rep->AmountCol(3, 4, $balance, $dec);
$rep->NewLine();
}
-
+
//Get Account groups/types under this group/type
$result = get_account_types(false, false, $type);
while ($accounttype=db_fetch($result))
//Get Account groups/types under this group/type
$result = get_account_types(false, false, $type);
while ($accounttype=db_fetch($result))
@@
-96,12
+96,14
@@
function print_Chart_of_Accounts()
$showbalance = $_POST['PARAM_0'];
$comments = $_POST['PARAM_1'];
$showbalance = $_POST['PARAM_0'];
$comments = $_POST['PARAM_1'];
- $destination = $_POST['PARAM_2'];
+ $orientation = $_POST['PARAM_2'];
+ $destination = $_POST['PARAM_3'];
if ($destination)
include_once($path_to_root . "/reporting/includes/excel_report.inc");
else
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");
+ $orientation = ($orientation ? 'L' : 'P');
$dec = 0;
$cols = array(0, 50, 300, 425, 500);
$dec = 0;
$cols = array(0, 50, 300, 425, 500);
@@
-112,7
+114,9
@@
function print_Chart_of_Accounts()
$params = array(0 => $comments);
$params = array(0 => $comments);
- $rep = new FrontReport(_('Chart of Accounts'), "ChartOfAccounts", user_pagesize());
+ $rep = new FrontReport(_('Chart of Accounts'), "ChartOfAccounts", user_pagesize(), 9, $orientation);
+ if ($orientation == 'L')
+ recalculate_cols($cols);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
@@
-139,4
+143,3
@@
function print_Chart_of_Accounts()
$rep->End();
}
$rep->End();
}
-?>
\ No newline at end of file