MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
-$page_security = 2;
+$page_security = 'SA_GLANALYTIC';
// ----------------------------------------------------------------
// $ Revision: 2.0 $
// Creator: Joe Hunt
$closeclass = false;
$convert = 1;
+ $ctype = 0;
$accounts = get_gl_accounts_all(0);
{
for ( ; $level >= 0, $typename[$level] != ''; $level--)
{
- if ($account['parent'] == $closing[$level] || $account['parent'] < $last)
+ if ($account['parent'] == $closing[$level] || $account['parent'] < $last || $account['parent'] <= 0 || $closeclass)
{
$rep->row += 6;
$rep->Line($rep->row);
$last = $account['parent'];
$typename[$level] = $account['AccountTypeName'];
$closing[$level] = $account['parent'];
+
$rep->row -= 4;
$rep->TextCol(0, 5, $account['AccountTypeName']);
$rep->row -= 4;
$rep->Line($rep->row);
$rep->NewLine();
}
- $convert = get_account_class_convert($account['ClassID']);
$classname = $account['AccountClassName'];
-
+ $ctype = $account['ClassType'];
+ $convert = get_class_type_convert($ctype);
+
if ($account['account_code'] != null)
{
//$per_balance *= -1;
{
for ( ; $level >= 0, $typename[$level] != ''; $level--)
{
- if ($account['parent'] == $closing[$level] || $account['parent'] < $last)
+ if ($account['parent'] == $closing[$level] || $account['parent'] < $last || $account['parent'] <= 0 || $closeclass)
{
$rep->row += 6;
$rep->Line($rep->row);