<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Tax Inquiry does not pick up Supplier Credit Notes?]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=2120</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=2120&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Tax Inquiry does not pick up Supplier Credit Notes?.]]></description>
		<lastBuildDate>Wed, 25 May 2011 11:01:13 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Tax Inquiry does not pick up Supplier Credit Notes?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9251#p9251</link>
			<description><![CDATA[<p>Hi Joe,</p><p>Thanks for the quick response and for taking the time to investigate my question.</p><p>Your correct, the SUPPCREDIT transactions ARE being picked up in your query, and&nbsp; also in my tax query. Sorry for wasting your time.</p><p>I had been comparing the Tax Inquiry report against a GL Inquiry of my VAT account, and saw differences. In the Tax Query, the Credit Note VAT amounts show in the Collectable column, whereas in the GL Inquiry, they show in the Credit column. So I was getting different summation figures. I had a quick look at the gl_db_trans.inc file, and as I did&#039;nt see the SUPPCREDIT constant, I assumed that was the problem. Looking in detail at your supplied query, I see that these constants are only used to get the sign correct for the calculations, not to restrict the search.</p><p>Thanks again for your help.</p>]]></description>
			<author><![CDATA[null@example.com (funshin)]]></author>
			<pubDate>Wed, 25 May 2011 11:01:13 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9251#p9251</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax Inquiry does not pick up Supplier Credit Notes?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9243#p9243</link>
			<description><![CDATA[<p>I cannot reproduce this. ST_SUPPCREDIT (21) types are included correctly here.</p><p>Please try this SQL statement directly in your phpMyAdmin.</p><div class="codebox"><pre><code>SELECT 
    IF(trans_type=11 || trans_type=20 || trans_type=0,-1,1)*
    IF(trans_type=2 || trans_type=10 || (trans_type=0 AND amount&lt;0)
         || trans_type=11, net_amount*ex_rate,0) net_output,

    IF(trans_type=11 || trans_type=20 || trans_type=0,-1,1)*
    IF(trans_type=2 || trans_type=10 || (trans_type=0 AND amount&lt;0)
         || trans_type=11, amount*ex_rate,0) payable,

    IF(trans_type=11 || trans_type=20,-1,1)*
    IF(trans_type=2 || trans_type=10 || (trans_type=0 AND amount&lt;0)
         || trans_type=11, 0, net_amount*ex_rate) net_input,

    IF(trans_type=11 || trans_type=20,-1,1)*
    IF(trans_type=2 || trans_type=10 || (trans_type=0 AND amount&lt;0)
         || trans_type=11, 0, amount*ex_rate) collectible,
    taxrec.trans_type,
    taxrec.trans_no,
    taxrec.tran_date,
    taxrec.rate,
    ttype.id,
    ttype.name
        FROM 0_tax_types ttype,
             0_trans_tax_details taxrec
        WHERE taxrec.tax_type_id=ttype.id
            AND taxrec.trans_type != 13
            AND taxrec.tran_date &gt;= &#039;2011-05-01&#039;
            AND taxrec.tran_date &lt;= &#039;2011-05-31&#039;</code></pre></div><p>You may need to change the tran_date period. Here you should see the trans_type 21 (ST_SUPPCREDIT).</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 24 May 2011 22:50:37 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9243#p9243</guid>
		</item>
		<item>
			<title><![CDATA[Tax Inquiry does not pick up Supplier Credit Notes?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=9240#p9240</link>
			<description><![CDATA[<p>Firstly, thanks for a great application! I&#039;m happily using version 2.3.4 after years with SQL-ledger.</p><p>I may be incorrect, but I think there is a bug with the &#039;Tax Inquiry&#039; report, in that it does not seem to include GST/VAT inputs from Supplier Credit Notes.<br />Specifically, it seems to ignore transaction types ST_SUPPCREDIT&nbsp; from the trans_tax_details table in the get_tax_summary function in gl/includes/db/gl_db_trans.inc. ST_CUSTCREDIT is included correctly, but I don&#039;t see ST_SUPPCREDIT.</p><p>Regards,</p>]]></description>
			<author><![CDATA[null@example.com (funshin)]]></author>
			<pubDate>Tue, 24 May 2011 17:56:43 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=9240#p9240</guid>
		</item>
	</channel>
</rss>
