<?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=GL_All_Transactions_Related_to_an_Account</id>
	<title>GL All Transactions Related to an Account - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=GL_All_Transactions_Related_to_an_Account"/>
	<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=GL_All_Transactions_Related_to_an_Account&amp;action=history"/>
	<updated>2026-05-15T18:01:29Z</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=GL_All_Transactions_Related_to_an_Account&amp;diff=218&amp;oldid=prev</id>
		<title>WikiAdmin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=GL_All_Transactions_Related_to_an_Account&amp;diff=218&amp;oldid=prev"/>
		<updated>2023-07-14T12:58:50Z</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;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&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;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>WikiAdmin</name></author>
	</entry>
	<entry>
		<id>http://in.compucrete.com/index.php?title=GL_All_Transactions_Related_to_an_Account&amp;diff=217&amp;oldid=prev</id>
		<title>Chanson: Created page with &quot;==GL All Transactions Related to an Account== '''01/15/2020'''  This query returns all transactions from all sessions that have activity for the selected account and date rang...&quot;</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=GL_All_Transactions_Related_to_an_Account&amp;diff=217&amp;oldid=prev"/>
		<updated>2021-04-16T12:57:26Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==GL All Transactions Related to an Account== &amp;#039;&amp;#039;&amp;#039;01/15/2020&amp;#039;&amp;#039;&amp;#039;  This query returns all transactions from all sessions that have activity for the selected account and date rang...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==GL All Transactions Related to an Account==&lt;br /&gt;
'''01/15/2020'''  This query returns all transactions from all sessions that have activity for the selected account and date range when the activity is created in G/L or C/M.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;PRE&amp;gt;select distinct(x.session_no) sno,xx.trans_no,xx.gl_account, a.description, xx.trx_date, xx.source_code, xx.source_app, xx.trx_amount, session_no from glttrx x&lt;br /&gt;
inner join glttrx xx on xx.session_no=x.session_no&lt;br /&gt;
inner join gltacct a on a.gl_account=xx.gl_account&lt;br /&gt;
 where  x.source_app in('C','G') and x.trx_date between:Begin_date and:End_date&lt;br /&gt;
and x.gl_account = :&amp;quot;Acct&amp;quot;&lt;br /&gt;
order by session_no&lt;br /&gt;
&amp;lt;/PRE&amp;gt;&lt;br /&gt;
The main query selects all sessions that contain gl activity for the selected account and date range with glttrx aliased to X.  Then this is inner joined to XX which selects all of the activity from each of those sessions.  It's important to specify xx.&amp;lt;fieldname&amp;gt; in the select query to get the individual transaction information.  For the same reason GLTACCT is joined to XX.&lt;br /&gt;
'''NOTE:''' make sure to keep the distinct(x.session_no) and xx.trans_no as the first 2 fields.  This makes sure that each transaction is included AND only included once.  If you remove the distinct then you'll get duplicate transactions.  If you remove trans_no then similar transactions will be merged.&lt;/div&gt;</summary>
		<author><name>Chanson</name></author>
	</entry>
</feed>