<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — 0-VAT again]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=5529</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5529&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in 0-VAT again.]]></description>
		<lastBuildDate>Fri, 13 Mar 2015 23:52:32 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: 0-VAT again]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22881#p22881</link>
			<description><![CDATA[<p>Sorry guys, I&#039;ve been quite busy recently (I&#039;m still) and don&#039;t come often on this forum.<br />Can someone summarize the situation ? I only use 0-VAT for journal entry and payment/deposit<br />so some bugs in sales or supplier invoices are possible.</p><p>/Elax</p>]]></description>
			<author><![CDATA[null@example.com (elax)]]></author>
			<pubDate>Fri, 13 Mar 2015 23:52:32 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22881#p22881</guid>
		</item>
		<item>
			<title><![CDATA[Re: 0-VAT again]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22875#p22875</link>
			<description><![CDATA[<p>I have attached the output of your SQL statement for the en_US-demo CoA - I do not see any duplications. Please show which ones you consider duplicate for what set of restricted unique keys.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 13 Mar 2015 14:27:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22875#p22875</guid>
		</item>
		<item>
			<title><![CDATA[Re: 0-VAT again]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22873#p22873</link>
			<description><![CDATA[<p>As a temporary fix to enable me to correctly use FA for tax reporting I have modified the code to post net amount from SI entry now - This is implemented using QE so that the 0VAT is associated to a particular entry. For the 0VAT reporting to work the zero-rated QE must be used. The posting to the tables works correctly. </p><p>The tax report rep709 however reports each SI twice. This is as a result of the following sql query:</p><p>SELECT tt.name as taxname, taxrec.*, taxrec.amount*ex_rate AS amount,<br />&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;taxrec.net_amount*ex_rate AS net_amount,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IF(taxrec.trans_type= 1 OR taxrec.trans_type=2, <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IF(gl.person_type_id&lt;&gt;0, gl.memo_, gl.person_id), <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IF(ISNULL(supp.supp_name), debt.name, supp.supp_name)) as name,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; branch.br_name<br />&nbsp; &nbsp; &nbsp; &nbsp; FROM 0_trans_tax_details taxrec<br />&nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN 0_tax_types tt<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ON taxrec.tax_type_id=tt.id<br />&nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN 0_gl_trans gl <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ON taxrec.trans_type=gl.type AND taxrec.trans_no=gl.type_no AND <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (tt.purchasing_gl_code=gl.account OR tt.sales_gl_code=gl.account)<br />&nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN 0_supp_trans strans<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ON taxrec.trans_no=strans.trans_no AND taxrec.trans_type=strans.type<br />&nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN 0_suppliers as supp ON strans.supplier_id=supp.supplier_id<br />&nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN 0_debtor_trans dtrans<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ON taxrec.trans_no=dtrans.trans_no AND taxrec.trans_type=dtrans.type<br />&nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN 0_debtors_master as debt ON dtrans.debtor_no=debt.debtor_no<br />&nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN 0_cust_branch as branch ON dtrans.branch_code=branch.branch_code<br />&nbsp; &nbsp; &nbsp; &nbsp; WHERE (taxrec.amount &lt;&gt; 0 OR taxrec.net_amount &lt;&gt; 0)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AND taxrec.trans_type &lt;&gt; 13<br />&nbsp; &nbsp; &nbsp; &nbsp; ORDER BY taxrec.trans_type, taxrec.tran_date, taxrec.trans_no, taxrec.ex_rate</p><p>I haven&#039;t looked further into this report yet, the joins are obviously pulling the data out twice when only required once.<br /> To save time, wondered if anyone had encountered this issue before.&nbsp; Before I start modifying the statement.</p><p>On a longer term, when I have more time, I would like to modify the SI code to deal with input more on the lines of elax&#039;s Banking/GL entry. Unless, of course, this is dealt with in a future version of FA.</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (dls)]]></author>
			<pubDate>Fri, 13 Mar 2015 11:25:43 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22873#p22873</guid>
		</item>
		<item>
			<title><![CDATA[Re: 0-VAT again]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22861#p22861</link>
			<description><![CDATA[<p>@dls: I think @elax did mention some limitations, possibly for Supplier Invoices.</p><p>@elax: please have a look.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 11 Mar 2015 12:24:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22861#p22861</guid>
		</item>
		<item>
			<title><![CDATA[Re: 0-VAT again]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22860#p22860</link>
			<description><![CDATA[<p>@apmuthu: feedback for post 39.</p><p>Same results found -ie those noted in post 40</p><p>Many thanks for help so far</p>]]></description>
			<author><![CDATA[null@example.com (dls)]]></author>
			<pubDate>Wed, 11 Mar 2015 10:17:10 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22860#p22860</guid>
		</item>
		<item>
			<title><![CDATA[Re: 0-VAT again]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22859#p22859</link>
			<description><![CDATA[<p>@apmuthu: I will check the files again when I get some time later, although I didn&#039;t think i&#039;d missed anything. </p><p>It would appear that:</p><p> trans_type 20 (SI) doesn&#039;t post net_amount (just sets it to 0) to trans_tax_details when posting SI with no items included just gl item entries.</p><p> trans_type 20 (SI) posts net_amount to trans_tax_details when posting SI with items included just gl item entries and also posts another entry to the trans_tax_details with net_amount =0</p><p>As noted Banking and Journal entry seems fine.</p><p>@elax: do you have any pointers as to where to look to sort this?</p>]]></description>
			<author><![CDATA[null@example.com (dls)]]></author>
			<pubDate>Wed, 11 Mar 2015 09:42:48 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22859#p22859</guid>
		</item>
		<item>
			<title><![CDATA[Re: 0-VAT again]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22858#p22858</link>
			<description><![CDATA[<p>After comparing elax FA v2.3.19 Tax Support Patch, incorporated changes in FA 2.3.22+ as on date retaining all white space in the latter.</p><p>Please provide feedback.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 11 Mar 2015 09:37:39 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22858#p22858</guid>
		</item>
		<item>
			<title><![CDATA[Re: 0-VAT again]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22856#p22856</link>
			<description><![CDATA[<p>@dls: Please note that there are real changes only in these 3 FA 2.3.22+ changed files:<br />config.default.php<br />includes/ui/items_cart.inc<br />gl/includes/gl_bank.php<br />when compared to elax patch files for 2.3.19.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 11 Mar 2015 08:19:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22856#p22856</guid>
		</item>
		<item>
			<title><![CDATA[Re: 0-VAT again]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22853#p22853</link>
			<description><![CDATA[<p>I have removed the above </p><p>Link for gl_tax_support files for ver: 2.3.22&nbsp; (0-VAT reporting)<br />http://91.84.138.17/FAdev/FrontaccountingTaxPatch2.3.22.rar</p><p>temporarily as this seems to have caused a problem with the reporting on the SI which was not there previously. Banking and Journal entries seem to work and report 0VAT ok.</p><p>@elax: SI doesn&#039;t post tax when just GL Items entered. When items are added into SI with GL items tax including 0VAT is posted (which was before patch) but is now reported twice?</p>]]></description>
			<author><![CDATA[null@example.com (dls)]]></author>
			<pubDate>Wed, 11 Mar 2015 06:53:32 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22853#p22853</guid>
		</item>
		<item>
			<title><![CDATA[Re: 0-VAT again]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22850#p22850</link>
			<description><![CDATA[<p>Apologies, done in hast! The archive should now be correct.</p>]]></description>
			<author><![CDATA[null@example.com (dls)]]></author>
			<pubDate>Tue, 10 Mar 2015 17:23:31 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22850#p22850</guid>
		</item>
		<item>
			<title><![CDATA[Re: 0-VAT again]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22847#p22847</link>
			<description><![CDATA[<p>Your archive contains a file<br />&nbsp; &nbsp;<strong>gl_db_bank_trans.inc</strong> <br />but not the file <br />&nbsp; &nbsp;<strong>gl/includes/db/gl_db_trans.inc</strong>.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 10 Mar 2015 14:10:23 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22847#p22847</guid>
		</item>
		<item>
			<title><![CDATA[Re: 0-VAT again]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22845#p22845</link>
			<description><![CDATA[<p>Link for gl_tax_support files for ver: 2.3.22&nbsp; (0-VAT reporting)</p><p>http://91.84.138.17/FAdev/FrontaccountingTaxPatch2.3.22.rar</p><p>containing:<br />config.default.php<br />gl/gl_bank.php<br />gl/gl_journal.php<br />gl/includes/db/gl_db_banking.inc<br />gl/includes/db/gl_db_trans.inc<br />gl/includes/ui/gl_bank_ui.inc<br />gl/includes/ui/gl_journal_ui.inc<br />includes/ui/items_cart.inc<br />js/inserts.js</p>]]></description>
			<author><![CDATA[null@example.com (dls)]]></author>
			<pubDate>Tue, 10 Mar 2015 11:07:10 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22845#p22845</guid>
		</item>
		<item>
			<title><![CDATA[Re: 0-VAT again]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22840#p22840</link>
			<description><![CDATA[<p>Upload it anywhere and paste the url here.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 10 Mar 2015 06:44:02 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22840#p22840</guid>
		</item>
		<item>
			<title><![CDATA[Re: 0-VAT again]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22839#p22839</link>
			<description><![CDATA[<p>Not on here sure how to post files on here. Anyone interested I&#039;ll send the zipped file to.</p>]]></description>
			<author><![CDATA[null@example.com (dls)]]></author>
			<pubDate>Tue, 10 Mar 2015 06:42:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22839#p22839</guid>
		</item>
		<item>
			<title><![CDATA[Re: 0-VAT again]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22819#p22819</link>
			<description><![CDATA[<p>@dls: Please post the changed files that worked for FA v2.3.22+</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 09 Mar 2015 01:44:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22819#p22819</guid>
		</item>
	</channel>
</rss>
