<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Bank Statement Report]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7405</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7405&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Bank Statement Report.]]></description>
		<lastBuildDate>Thu, 06 Feb 2020 15:50:21 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Bank Statement Report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36971#p36971</link>
			<description><![CDATA[<p>Just downloaded 2.4.8 and I was expecting this issue will be resolved. but it seems not.<br />I cant understand why Braath Waate pull request is not incorporated in the core yet. It works nicely. <br />Is there a reason?</p>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Thu, 06 Feb 2020 15:50:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36971#p36971</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bank Statement Report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35352#p35352</link>
			<description><![CDATA[<p>The first two parts are only re-phrased.<br />Ordinarily there should be no duplicates.<br />Besides, the tables referred to in each select are different.</p><p>But... it is possible that more than one record across the selects may refer to the same transaction causing duplicates.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 01 Jul 2019 17:11:08 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35352#p35352</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bank Statement Report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35351#p35351</link>
			<description><![CDATA[<p>@apmuthu<br />Thank you for your comment, but please help me: I don&#039;t understand fully.<br />How can a duplicate line exist, as the combination $trans_type and $trans_no together is a unique identifier for a transaction? Within one transaction, if a counterparty is either a debtor or a supplier, then person_type_id cannot be 0.</p><p>By the way: first two parts are original, I only added third part for the case where counterpart is not known in debtor/supplier-administrations but is only mentioned as &quot;miscellaneous&quot; - in this case the original routine would not show the counterpart at all.</p><p>Yours sincerely, etc. Nibbik</p>]]></description>
			<author><![CDATA[null@example.com (Nibbik)]]></author>
			<pubDate>Mon, 01 Jul 2019 16:31:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35351#p35351</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bank Statement Report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35350#p35350</link>
			<description><![CDATA[<p>There may be duplicate lines - maybe a DISTINCT is needed somewhere. Try to make the INNER JOIN using an ON statement rather than in WHERE like:<br /></p><div class="codebox"><pre><code>        case ST_BANKPAYMENT :
        case ST_BANKDEPOSIT :
            $sql = &quot;SELECT trans.debtor_no as person_id, 
            CONVERT(debtor.name using utf8) as name
            FROM &quot;.TB_PREF.&quot;debtor_trans trans INNER JOIN &quot;.TB_PREF.&quot;debtors_master debtor USING (debtor_no)
            WHERE trans_no=&quot;.db_escape($trans_no).&quot; AND type=&quot;.db_escape($trans_type)
            .&quot;
            UNION
                SELECT trans.supplier_id as person_id, 
            CONVERT(supp.supp_name using utf8) as name
            FROM &quot;.TB_PREF.&quot;supp_trans trans INNER JOIN &quot;.TB_PREF.&quot;suppliers supp USING (supplier_id)
            WHERE trans_no=&quot;.db_escape($trans_no).&quot; AND type=&quot;.db_escape($trans_type)
            .&quot;
            UNION
                SELECT IF (person_type_id=0, 0 ,NULL) as person_id, 
            IF (person_type_id=0, CONVERT(person_id using utf8),NULL) as name 
            FROM &quot;.TB_PREF.&quot;bank_trans
            WHERE trans_no=&quot;.db_escape($trans_no).&quot; AND type=&quot;.db_escape($trans_type)
            ;
            break;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 01 Jul 2019 16:02:54 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35350#p35350</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bank Statement Report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35349#p35349</link>
			<description><![CDATA[<p>I think I solved it with this solution <br />(file: frontaccounting/admin/db/transactions_db.inc, from line 115 onward):</p><div class="codebox"><pre><code>        case ST_BANKPAYMENT :
        case ST_BANKDEPOSIT :
            $sql = &quot;SELECT trans.debtor_no as person_id, CONVERT(debtor.name using utf8) as name
            FROM &quot;.TB_PREF.&quot;debtor_trans trans, &quot;.TB_PREF.&quot;debtors_master debtor
            WHERE trans_no=&quot;.db_escape($trans_no).&quot; AND type=&quot;.db_escape($trans_type)
            .&quot; AND trans.debtor_no=debtor.debtor_no
            UNION
                SELECT trans.supplier_id as person_id, CONVERT(supp.supp_name using utf8) as name
            FROM &quot;.TB_PREF.&quot;supp_trans trans, &quot;.TB_PREF.&quot;suppliers supp
            WHERE trans_no=&quot;.db_escape($trans_no).&quot; AND type=&quot;.db_escape($trans_type)
            .&quot; AND trans.supplier_id=supp.supplier_id
            UNION
                SELECT IF (person_type_id=0, 0 ,NULL) as person_id, 
            IF (person_type_id=0, CONVERT(person_id using utf8),NULL) as name 
            FROM &quot;.TB_PREF.&quot;bank_trans WHERE type=&quot;.db_escape($trans_type).&quot; 
            AND trans_no=&quot;.db_escape($trans_no);
            break;

/*            $sql = &quot;SELECT trans.debtor_no as person_id, debtor.name as name
            FROM &quot;.TB_PREF.&quot;debtor_trans trans, &quot;.TB_PREF.&quot;debtors_master debtor
            WHERE trans_no=&quot;.db_escape($trans_no).&quot; AND type=&quot;.db_escape($trans_type)
            .&quot; AND trans.debtor_no=debtor.debtor_no
            UNION
                SELECT trans.supplier_id as person_id, supp.supp_name as name
            FROM &quot;.TB_PREF.&quot;supp_trans trans, &quot;.TB_PREF.&quot;suppliers supp
            WHERE trans_no=&quot;.db_escape($trans_no).&quot; AND type=&quot;.db_escape($trans_type)
            .&quot; AND trans.supplier_id=supp.supplier_id&quot;;
            break;
*/</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Nibbik)]]></author>
			<pubDate>Mon, 01 Jul 2019 11:38:58 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35349#p35349</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bank Statement Report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=32030#p32030</link>
			<description><![CDATA[<p>@joe: any headway?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 30 Jun 2018 18:21:02 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=32030#p32030</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bank Statement Report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31147#p31147</link>
			<description><![CDATA[<p>@joe: What are the consequences of this <a href="https://github.com/FrontAccountingERP/FA/pull/26">pull request</a>. @rafat seems satisfied.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 17 Mar 2018 14:38:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31147#p31147</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bank Statement Report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31146#p31146</link>
			<description><![CDATA[<p>Thanks @BraathWaate your pull request works great. Beautiful..Thanks guys.</p>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Sat, 17 Mar 2018 10:07:09 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31146#p31146</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bank Statement Report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31145#p31145</link>
			<description><![CDATA[<p>Thanks Guys.. I will test and revert back to you.</p>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Sat, 17 Mar 2018 09:28:07 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31145#p31145</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bank Statement Report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31136#p31136</link>
			<description><![CDATA[<p>The <strong>function get_counterparty_name()</strong> defined in <strong>admin/db/transactions_db.inc</strong> is a quite extensive one whereas the alternative used in @BraathWaate&#039;s <a href="https://github.com/FrontAccountingERP/FA/pull/26">pull request</a>, <strong>function payment_person_name()</strong> defined in <strong>includes/types.inc</strong> may not cover all types of transactions.</p><p>@joe: will this pull request make for covering all types of transactions required here?<br />@rafat: can you extensively test @BraathWaate&#039;s <a href="https://github.com/FrontAccountingERP/FA/pull/26">pull request</a> with your data?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 16 Mar 2018 15:52:57 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31136#p31136</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bank Statement Report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31135#p31135</link>
			<description><![CDATA[<p>Or you could modify your FA installation with this pull request:<br />https://github.com/FrontAccountingERP/FA/pull/26</p>]]></description>
			<author><![CDATA[null@example.com (Braath Waate)]]></author>
			<pubDate>Fri, 16 Mar 2018 13:17:11 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31135#p31135</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bank Statement Report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31134#p31134</link>
			<description><![CDATA[<p>Yes this is right.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Fri, 16 Mar 2018 12:31:10 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31134#p31134</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bank Statement Report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31132#p31132</link>
			<description><![CDATA[<p>The Bank Statement only knows Customer and Suppliers as that is where the AR/AP allocations take place. Everything else is a mere Journal kind of Transaction without tracking allocations that can be seen in the GL Account Transactions.</p><p>@joe: is this right?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 16 Mar 2018 12:09:28 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31132#p31132</guid>
		</item>
		<item>
			<title><![CDATA[Bank Statement Report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31131#p31131</link>
			<description><![CDATA[<p>When asking for a Bank Statement report from Banking reports the final report does not show the person/item unless the field is either a customer or a supplier. While if asking for a GL Account Transaction Report and choosing the Bank Accounts.. the Person/Item field is shown correctly to all Person/item types. Is this how it should be?</p>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Fri, 16 Mar 2018 09:58:07 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31131#p31131</guid>
		</item>
	</channel>
</rss>
