<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=DataScope_G%2FL_Finanacial_Statements</id>
	<title>DataScope G/L Finanacial Statements - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=DataScope_G%2FL_Finanacial_Statements"/>
	<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=DataScope_G/L_Finanacial_Statements&amp;action=history"/>
	<updated>2026-05-15T15:29:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>http://in.compucrete.com/index.php?title=DataScope_G/L_Finanacial_Statements&amp;diff=108&amp;oldid=prev</id>
		<title>WikiAdmin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=DataScope_G/L_Finanacial_Statements&amp;diff=108&amp;oldid=prev"/>
		<updated>2023-07-14T12:58:48Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:58, 14 July 2023&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key my_wiki:diff::1.12:old-107:rev-108 --&gt;
&lt;/table&gt;</summary>
		<author><name>WikiAdmin</name></author>
	</entry>
	<entry>
		<id>http://in.compucrete.com/index.php?title=DataScope_G/L_Finanacial_Statements&amp;diff=107&amp;oldid=prev</id>
		<title>Intra&gt;User: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=DataScope_G/L_Finanacial_Statements&amp;diff=107&amp;oldid=prev"/>
		<updated>2017-01-10T00:01:30Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Data Setup==&lt;br /&gt;
The Keys to&lt;br /&gt;
&lt;br /&gt;
* Assign all Accounts to meaningful groups.  For example:&lt;br /&gt;
**EXPCOGS&lt;br /&gt;
**EXPGA&lt;br /&gt;
**ASTCUR&lt;br /&gt;
**ASTFIX&lt;br /&gt;
*Assign all groups Heading group to top level Groups:&lt;br /&gt;
**INC: Income&lt;br /&gt;
**EXP: Expenses&lt;br /&gt;
**AST: Assets&lt;br /&gt;
*Setup Sequence Numbers for all Groups.  For Example&lt;br /&gt;
** AST: 100&lt;br /&gt;
** ASTCUR: 110&lt;br /&gt;
** ASTFIX: 150&lt;br /&gt;
** INCSALES: 410&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Query==&lt;br /&gt;
===Income Statement Only:===&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
select g.sequence||' '||g.group_id||' '||g.line_description Group_Name,t.gl_account||'  '||A.Description Account,G.PARENT_GROUP_ID PARGRP,(select sequence from gltacgrp gp where gp.group_id=g.parent_group_id) pgseq,a.gl_group,&lt;br /&gt;
t.trx_date,-t.trx_amount trx_amount,t.source_app,description_1, description_2,a.gl_account account,a.description,session_no,trans_no,a.segment_1,a.segment_2,Trx_Date Mo,trx_date yr, trx_date qtr from glttrx t&lt;br /&gt;
inner join gltacct a on a.gl_account=t.gl_account  &lt;br /&gt;
left outer join gltacgrp g on g.group_id = a.gl_group &lt;br /&gt;
where trx_date between :beg_date and :end_date and trans_type not in ('B','R') and a.account_type='I'  &lt;br /&gt;
order by g.sequence&amp;lt;/PRE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Image:Ds gl fs1.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Income Statement and Balance Sheet:===&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
select g.sequence||' '||g.group_id||' '||g.line_description Group_Name,t.gl_account||'  '||A.Description Account_name,t.trx_date yr,t.trx_date mo,t.trx_date,-t.trx_amount trx_amount,t.source_app,session_no,trans_no,description_1, description_2,a.gl_account account,a.description   ,G.PARENT_GROUP_ID PARGRP,(select sequence from gltacgrp gp where gp.group_id=g.parent_group_id) pgseq&lt;br /&gt;
,a.segment_1,a.segment_2,A.ACCOUNT_TYPE IB,a.NOTES_1||' '||a.notes_2 &amp;quot;GL Account&amp;quot; from glttrx t&lt;br /&gt;
inner join gltacct a on a.gl_account=t.gl_account   &lt;br /&gt;
left outer join gltacgrp g on g.group_id = a.gl_group&lt;br /&gt;
where (trx_date between :beg_date and :end_date and trans_type not in ('B','R')) and gl_account not between 'Y' AND 'Z'&lt;br /&gt;
  union&lt;br /&gt;
select g.sequence||' '||g.group_id||' '||g.line_description Group_Name,t.gl_account||'  '||A.Description Account,&lt;br /&gt;
cast ('1/1/2000' as date),cast ('1/1/2000' as date),trx_date,-t.trx_amount,t.source_app,session_no,trans_no,description_1, description_2,a.gl_account account,a.description&lt;br /&gt;
,G.PARENT_GROUP_ID PARGRP,(select sequence from gltacgrp gp where gp.group_id=g.parent_group_id) pgseq&lt;br /&gt;
,a.segment_1,a.segment_2,A.ACCOUNT_TYPE,NOTES_1||' '||notes_2 from glttrx t&lt;br /&gt;
inner join gltacct a on a.gl_account=t.gl_account   &lt;br /&gt;
left outer join gltacgrp g on g.group_id = a.gl_group&lt;br /&gt;
where (trx_date &amp;lt; :beg_date and trans_type not in ('B') and a.account_type='B')&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Ds gl fs2.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Income Statement with separate drilldown query:&amp;lt;BR&amp;gt;&amp;lt;BR&amp;gt;===&lt;br /&gt;
&amp;lt;I&amp;gt;Main Query&amp;lt;/I&amp;gt;&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
select &lt;br /&gt;
 gp.sequence pgseq,&lt;br /&gt;
 G.PARENT_GROUP_ID PARGRP,&lt;br /&gt;
 g.sequence, g.group_id, g.line_description,&lt;br /&gt;
 t.gl_account, A.Description,&lt;br /&gt;
 t.trx_date,&lt;br /&gt;
 t.Trx_Date Mo,t.trx_date yr, t.trx_date qtr,&lt;br /&gt;
 sum(-t.trx_amount) trx_amount,&lt;br /&gt;
 sum(-t.trx_amount) pct_comp&lt;br /&gt;
from glttrx t&lt;br /&gt;
inner join gltacct a on a.gl_account=t.gl_account  &lt;br /&gt;
left outer join gltacgrp g on g.group_id = a.gl_group &lt;br /&gt;
left outer join gltacgrp gp on gp.group_id = g.parent_group_id&lt;br /&gt;
where (t.trx_date between :beg_date and :end_date) and &lt;br /&gt;
 (t.trans_type not in ('B','R')) and&lt;br /&gt;
 (a.account_type='I') and&lt;br /&gt;
 (t.gl_account not between 'Y' AND 'Z')&lt;br /&gt;
group by gp.sequence, g.parent_group_id, g.sequence, g.group_id, g.line_description,&lt;br /&gt;
 t.gl_account, a.description, t.trx_date&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Ds gl fs3a.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;I&amp;gt;Drilldown Query&amp;lt;/I&amp;gt;&lt;br /&gt;
&amp;lt;PRE&amp;gt;&lt;br /&gt;
select&lt;br /&gt;
 a.gl_group,&lt;br /&gt;
 t.trx_date, t.trx_amount, t.source_app,&lt;br /&gt;
 t.description_1, t.description_2,&lt;br /&gt;
 t.gl_account, a.description,&lt;br /&gt;
 t.session_no, t.trans_no,&lt;br /&gt;
 a.segment_1, a.segment_2&lt;br /&gt;
from glttrx t&lt;br /&gt;
inner join gltacct a on a.gl_account=t.gl_account  &lt;br /&gt;
left outer join gltacgrp g on g.group_id = a.gl_group &lt;br /&gt;
left outer join gltacgrp gp on gp.group_id = g.parent_group_id&lt;br /&gt;
where (t.trx_date between :beg_date and :end_date) and &lt;br /&gt;
 (t.trans_type not in ('B','R')) and&lt;br /&gt;
 (a.account_type='I') and&lt;br /&gt;
 (t.gl_account not between 'Y' AND 'Z') and&lt;br /&gt;
[WHERE pgseq=gp.sequence]&lt;br /&gt;
[WHERE pargrp=g.parent_group_id]&lt;br /&gt;
[WHERE sequence=g.sequence]&lt;br /&gt;
[WHERE group_id=g.group_id]&lt;br /&gt;
[WHERE line_description=g.line_description]&lt;br /&gt;
[WHERE gl_account=t.gl_account]&lt;br /&gt;
[WHERE description=a.description]&lt;br /&gt;
[WHERE yr=extract(year from t.trx_date)]&lt;br /&gt;
[WHERE mo=extract(month from t.trx_date)]&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:Ds gl fs3b.png]]&lt;/div&gt;</summary>
		<author><name>Intra&gt;User</name></author>
	</entry>
</feed>