From: Joe Hunt Date: Sun, 13 Feb 2011 22:44:56 +0000 (+0000) Subject: Release 2.3.2 X-Git-Tag: 2.3-final~788 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=77bb4cfa68b0c8367a0e2ef0e046d6588f696486;hp=a3088ec28ff4f610097261cb4cb220b92b53facd;p=fa-stable.git Release 2.3.2 A global variable in config.php, $show_voided_gl_trans = 1 shows 0 amount transactions in gl inquiry and reports. --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index ca56246c..eca31f65 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,7 +19,15 @@ Legend: ! -> Note $ -> Affected files - +------------------------------- Release 2.3.2 ------------------------------------ +13-Feb-2011 Joe Hunt +! Release 2.3.2 +$ version.php +! A global variable in config.php, $show_voided_gl_trans = 1 shows 0 amount + transactions in gl inquiry and reports. +$ /config.default.php + /gl/includes/db/gl_db_trans.inc + . 13-Feb-2011 Janusz Dobrowolski ! Updated gettext template $ /lang/new_language_template/LC_MESSAGES/empty.po diff --git a/config.default.php b/config.default.php index 6705918f..1d45c8b3 100644 --- a/config.default.php +++ b/config.default.php @@ -80,6 +80,9 @@ if (!isset($path_to_root) || isset($_GET['path_to_root']) || isset($_POST['path_ /* use Audit Trails in GL */ $use_audit_trail = 0; + /* $show_voiced_gl_trans = 0, setting this to 1 will show the voided gl trans */ + $show_voided_gl_trans = 0; + /* use old style convert (income and expense in BS, PL) */ $use_oldstyle_convert = 0; diff --git a/gl/includes/db/gl_db_trans.inc b/gl/includes/db/gl_db_trans.inc index 7677fa3e..831ff3d3 100644 --- a/gl/includes/db/gl_db_trans.inc +++ b/gl/includes/db/gl_db_trans.inc @@ -100,6 +100,8 @@ function get_gl_transactions($from_date, $to_date, $trans_no=0, $account=null, $dimension=0, $dimension2=0, $filter_type=null, $amount_min=null, $amount_max=null) { + global $show_voided_gl_trans; + $from = date2sql($from_date); $to = date2sql($to_date); @@ -113,6 +115,8 @@ function get_gl_transactions($from_date, $to_date, $trans_no=0, AND ISNULL(v.date_) AND tran_date >= '$from' AND tran_date <= '$to'"; + if (isset($show_voided_gl_trans) && $show_voided_gl_trans == 1) + $sql .= " AND ".TB_PREF."gl_trans.amount <> 0"; if ($trans_no > 0) $sql .= " AND ".TB_PREF."gl_trans.type_no LIKE ".db_escape('%'.$trans_no); diff --git a/version.php b/version.php index a3a9b12a..72cb44f0 100644 --- a/version.php +++ b/version.php @@ -9,7 +9,7 @@ $db_version = "2.3rc"; // application version - can be overriden in config.php if (!isset($version)) - $version = "2.3.1"; + $version = "2.3.2"; //====================================================================== // Extension packages repository settings