<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Plug-in Tax Inquiry - Cash Basis reports incorrect input tax]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=5595</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5595&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Plug-in Tax Inquiry - Cash Basis reports incorrect input tax.]]></description>
		<lastBuildDate>Fri, 08 May 2015 16:07:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Plug-in Tax Inquiry - Cash Basis reports incorrect input tax]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=23471#p23471</link>
			<description><![CDATA[<p>I believe that the following code replacing the first section of the SELECT statement in the tax_cash_db.inc file sorts the problem discussed in the previous post - could someone please try this and compare the results with the original and confirm?</p><p>(Please note I am tracking 0%VAT transactions and 20%VAT transactions - but this should effect any multi VAT listings in any single invoice)</p><p>&nbsp; &nbsp; $sql = &quot;SELECT <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;Output&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ca.amt gross_output,&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(ca.amt/(<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;SELECT sum(ttd1.net_amount) + sum(ttd1.amount)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM &quot;.TB_PREF.&quot;trans_tax_details ttd1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE ttd1.trans_type = ttd.trans_type AND ttd1.trans_no = ttd.trans_no<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;)) * ttd.net_amount * ex_rate net_output,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(ca.amt/(<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SELECT sum(ttd1.net_amount) + sum(ttd1.amount)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM &quot;.TB_PREF.&quot;trans_tax_details ttd1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE ttd1.trans_type = ttd.trans_type AND ttd1.trans_no = ttd.trans_no<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )) * ttd.amount*ex_rate payable,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 gross_input,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 net_input,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 collectible,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ttd.rate,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bt.type,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bt.person_type_id,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bt.person_id,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ttd.trans_no,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tt.id,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tt.name,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bt.trans_date<br />&nbsp; &nbsp; &nbsp; &nbsp; FROM &quot;.TB_PREF.&quot;bank_trans bt<br />&nbsp; &nbsp; &nbsp; &nbsp; INNER JOIN &quot;.TB_PREF.&quot;cust_allocations ca<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ON bt.type = ca.trans_type_from<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AND bt.trans_no = ca.trans_no_from<br />&nbsp; &nbsp; &nbsp; &nbsp; INNER JOIN &quot;.TB_PREF.&quot;debtor_trans dt<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ON dt.type = ca.trans_type_from<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AND dt.trans_no = ca.trans_no_from<br />&nbsp; &nbsp; &nbsp; &nbsp; INNER JOIN &quot;.TB_PREF.&quot;trans_tax_details ttd<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ON ttd.trans_type = ca.trans_type_to<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AND ttd.trans_no = ca.trans_no_to<br />&nbsp; &nbsp; &nbsp; &nbsp; INNER JOIN &quot;.TB_PREF.&quot;tax_types tt<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ON tt.id = ttd.tax_type_id<br />&nbsp; &nbsp; &nbsp; &nbsp; WHERE bt.trans_date &gt;= &#039;$fromdate&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AND bt.trans_date &lt;= &#039;$todate&#039;<br />&nbsp; &nbsp; UNION ALL</p><br /><p>Many thanks</p>]]></description>
			<author><![CDATA[null@example.com (dls)]]></author>
			<pubDate>Fri, 08 May 2015 16:07:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=23471#p23471</guid>
		</item>
		<item>
			<title><![CDATA[Re: Plug-in Tax Inquiry - Cash Basis reports incorrect input tax]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=23464#p23464</link>
			<description><![CDATA[<p>I have deleted my previous post as it was not the correct reason for the problem. I will explain the problem and see if anyone else has this issue. </p><p>I process invoices with multiple lines with different VATs associated with different entries. So some entries may be 0VAT and some may be 20% VAT entries. These all appear in the trans_tax_details table for the particular invoice(debt) as multiple rows all with the correct respective net_amount and amount entries.</p><p>The Select statement</p><p>&nbsp; &nbsp; &nbsp; &nbsp; SELECT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;Output&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ca.amt gross_output,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (ca.amt/(ttd.net_amount+ttd.amount)) * ttd.net_amount * ex_rate net_output,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (ca.amt/(ttd.net_amount+ttd.amount)) * ttd.amount*ex_rate payable,</p><p> is performed to determine the correct amount if the invoice is not settled (allocated) in full. However, as I see it this only works if the invoice is summarised in one row with one VAT. That is, ca.amt is compared with each row and if this doesn&#039;t relate directly to the ttd.net_amount and ttd.amount in one row it doesn&#039;t work?</p><p>Am I reading this wrongly?</p><p>As I noted before I deleted my earlier post using </p><p>&nbsp; SELECT<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#039;Output&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ca.amt gross_output,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ttd.net_amount * ex_rate net_output,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ttd.amount*ex_rate payable,</p><p>will work but technically only if the allocation is in full.</p><p>Can anyone please confirm if it&#039;s an error or if I am seeing this wrongly??</p><p>Many thanks</p>]]></description>
			<author><![CDATA[null@example.com (dls)]]></author>
			<pubDate>Thu, 07 May 2015 21:38:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=23464#p23464</guid>
		</item>
		<item>
			<title><![CDATA[Re: Plug-in Tax Inquiry - Cash Basis reports incorrect input tax]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=23462#p23462</link>
			<description><![CDATA[<p>If the said elax_tax_support_files are not proprietary / commercial you can post it here for peer review and possible inclusion into the core.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 07 May 2015 17:47:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=23462#p23462</guid>
		</item>
		<item>
			<title><![CDATA[Re: Plug-in Tax Inquiry - Cash Basis reports incorrect input tax]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=23461#p23461</link>
			<description><![CDATA[<p>apologies... I did not realise elax_tax_support_files was not so available. I can definitely recommend it for UK accounting, indeed with Box 7 requirements and 0VAT in returns etc I would find FA&nbsp; not so appealing without, which would be a shame as I honestly think it is fantastic in general.</p><p>I believe something on the same lines should be considered for the core. With a combination of Elax&#039;s files and the Cash Basis module I have a system that works really well for me - Thank you so much.</p>]]></description>
			<author><![CDATA[null@example.com (dls)]]></author>
			<pubDate>Thu, 07 May 2015 16:44:48 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=23461#p23461</guid>
		</item>
		<item>
			<title><![CDATA[Re: Plug-in Tax Inquiry - Cash Basis reports incorrect input tax]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=23457#p23457</link>
			<description><![CDATA[<p>@elax&#039;s 0VAT fix is not part of the core. Where is elax&#039;s 0VAT fix and when and where is it used?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 07 May 2015 15:39:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=23457#p23457</guid>
		</item>
		<item>
			<title><![CDATA[Re: Plug-in Tax Inquiry - Cash Basis reports incorrect input tax]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=23443#p23443</link>
			<description><![CDATA[<p>Extension: <a href="https://github.com/apmuthu/frontaccounting/tree/master/extensions/Extensions/rep_tax_cash_basis">rep_tax_cash_basis</a><br />Author: Alastair Robertson (KwikPay, NZ)</p><p>Lines 166 and 193 in the file <strong>modules/rep_tax_cash_basis/includes/<span style="color: red">tax_cash_db.inc</span></strong> :<br /></p><div class="codebox"><pre><code>            ttd.amount*ex_rate collectible,</code></pre></div><p>should be:<br /></p><div class="codebox"><pre><code>            -1*ttd.amount*ex_rate collectible, </code></pre></div><p>Kindly verify and revert.</p><p>Patch:<br /></p><div class="codebox"><pre><code>--- modules/rep_tax_cash_basis/includes/tax_cash_db.inc    Mon Oct 14 01:44:10 2013
+++ modules/rep_tax_cash_basis/includes/tax_cash_db.inc    Wed May 06 10:49:31 2015
@@ -163,7 +163,7 @@
             0 payable,
             bt.amount*ex_rate gross_input,
             ttd.net_amount*ex_rate net_input,
-            ttd.amount*ex_rate collectible,
+            -1*ttd.amount*ex_rate collectible,
             ttd.rate,
             bt.type,
             bt.person_type_id,
@@ -190,7 +190,7 @@
             0 payable,
             bt.amount*ex_rate gross_input,
             ttd.net_amount*ex_rate net_input,
-            ttd.amount*ex_rate collectible,
+            -1*ttd.amount*ex_rate collectible,
             ttd.rate,
             bt.type,
             bt.person_type_id,</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 06 May 2015 04:51:29 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=23443#p23443</guid>
		</item>
		<item>
			<title><![CDATA[Re: Plug-in Tax Inquiry - Cash Basis reports incorrect input tax]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=23442#p23442</link>
			<description><![CDATA[<p>Hello guys.</p><p>Who has written this plug-in Tax Inquiry?</p><p>As I can see this is not part of the core.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 05 May 2015 12:40:05 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=23442#p23442</guid>
		</item>
		<item>
			<title><![CDATA[Re: Plug-in Tax Inquiry - Cash Basis reports incorrect input tax]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=23441#p23441</link>
			<description><![CDATA[<p>Hello,</p><p>Easter has now passed and I have to file a new VAT return. Is there a fix or do I have to do it manually?</p>]]></description>
			<author><![CDATA[null@example.com (vezz)]]></author>
			<pubDate>Tue, 05 May 2015 10:29:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=23441#p23441</guid>
		</item>
		<item>
			<title><![CDATA[Re: Plug-in Tax Inquiry - Cash Basis reports incorrect input tax]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22848#p22848</link>
			<description><![CDATA[<p>The devs are on holiday....... not yet fixed. Easter is drawing near....</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 10 Mar 2015 14:13:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22848#p22848</guid>
		</item>
		<item>
			<title><![CDATA[Re: Plug-in Tax Inquiry - Cash Basis reports incorrect input tax]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22844#p22844</link>
			<description><![CDATA[<p>Hello, </p><p>Is there a fix for this problem?</p>]]></description>
			<author><![CDATA[null@example.com (vezz)]]></author>
			<pubDate>Tue, 10 Mar 2015 09:37:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22844#p22844</guid>
		</item>
		<item>
			<title><![CDATA[Re: Plug-in Tax Inquiry - Cash Basis reports incorrect input tax]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22771#p22771</link>
			<description><![CDATA[<p>@joe: this needs to be corrected.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 03 Mar 2015 19:36:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22771#p22771</guid>
		</item>
		<item>
			<title><![CDATA[Plug-in Tax Inquiry - Cash Basis reports incorrect input tax]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22766#p22766</link>
			<description><![CDATA[<p>The plug-in &quot;tax inquiry (cash basis) is not calculating input tax correctly.&nbsp; Bank Payments are negative, which is fine, but Supplier Payments are positive, meaning these amounts are being deducted from the input tax total. Please see below:</p><br /><p>Type&nbsp; &nbsp; Ref&nbsp; &nbsp; #&nbsp; &nbsp; Date&nbsp; &nbsp; Payer/Payee&nbsp; &nbsp; Tax Amount&nbsp; &nbsp; Gross Output/Input</p><p>Supplier Payment &nbsp; &nbsp; 131 &nbsp; &nbsp; 133 &nbsp; &nbsp; 04.11.2014 &nbsp; &nbsp; Energy &nbsp; &nbsp; 44.50 &nbsp; &nbsp; 267.01 &nbsp; &nbsp; &nbsp; &nbsp; <br />Supplier Payment &nbsp; &nbsp; 132 &nbsp; &nbsp; 134 &nbsp; &nbsp; 04.11.2014 &nbsp; &nbsp; Rent &nbsp; &nbsp; 70.00 &nbsp; &nbsp; 430.00 &nbsp; &nbsp; &nbsp; &nbsp; <br />Bank Payment &nbsp; &nbsp; 123 &nbsp; &nbsp; 125 &nbsp; &nbsp; 06.11.2014 &nbsp; &nbsp; Motor &nbsp; &nbsp; -13.88 &nbsp; &nbsp; -83.26 &nbsp; &nbsp; &nbsp; &nbsp; <br />Bank Payment &nbsp; &nbsp; 115 &nbsp; &nbsp; 117 &nbsp; &nbsp; 07.11.2014 &nbsp; &nbsp; Shop expenses &nbsp; &nbsp; -283.32 &nbsp; &nbsp; -1,699.90 &nbsp; &nbsp; &nbsp; &nbsp; <br />Supplier Payment &nbsp; &nbsp; 133 &nbsp; &nbsp; 135 &nbsp; &nbsp; 10.11.2014 &nbsp; &nbsp; Purchases &nbsp; &nbsp; 21.67 &nbsp; &nbsp; 42.69 &nbsp; &nbsp; &nbsp; &nbsp; </p><p>Supplier payments are entered via Payments to Suppliers in the Purchases tab.<br />Bank payments are made directly into bank via Payments in the Banking &amp; General Ledger.</p><p>How can this be rectified?</p>]]></description>
			<author><![CDATA[null@example.com (vezz)]]></author>
			<pubDate>Tue, 03 Mar 2015 15:02:17 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22766#p22766</guid>
		</item>
	</channel>
</rss>
