<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — 0-VAT again]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5529&amp;type=atom" />
	<updated>2015-03-13T23:52:32Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5529</id>
		<entry>
			<title type="html"><![CDATA[Re: 0-VAT again]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22881#p22881" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[elax]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=6206</uri>
			</author>
			<updated>2015-03-13T23:52:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22881#p22881</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0-VAT again]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22875#p22875" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-03-13T14:27:47Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22875#p22875</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0-VAT again]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22873#p22873" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[dls]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=699</uri>
			</author>
			<updated>2015-03-13T11:25:43Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22873#p22873</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0-VAT again]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22861#p22861" />
			<content type="html"><![CDATA[<p>@dls: I think @elax did mention some limitations, possibly for Supplier Invoices.</p><p>@elax: please have a look.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-03-11T12:24:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22861#p22861</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0-VAT again]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22860#p22860" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[dls]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=699</uri>
			</author>
			<updated>2015-03-11T10:17:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22860#p22860</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0-VAT again]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22859#p22859" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[dls]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=699</uri>
			</author>
			<updated>2015-03-11T09:42:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22859#p22859</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0-VAT again]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22858#p22858" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-03-11T09:37:39Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22858#p22858</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0-VAT again]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22856#p22856" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-03-11T08:19:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22856#p22856</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0-VAT again]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22853#p22853" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[dls]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=699</uri>
			</author>
			<updated>2015-03-11T06:53:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22853#p22853</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0-VAT again]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22850#p22850" />
			<content type="html"><![CDATA[<p>Apologies, done in hast! The archive should now be correct.</p>]]></content>
			<author>
				<name><![CDATA[dls]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=699</uri>
			</author>
			<updated>2015-03-10T17:23:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22850#p22850</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0-VAT again]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22847#p22847" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-03-10T14:10:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22847#p22847</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0-VAT again]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22845#p22845" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[dls]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=699</uri>
			</author>
			<updated>2015-03-10T11:07:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22845#p22845</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0-VAT again]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22840#p22840" />
			<content type="html"><![CDATA[<p>Upload it anywhere and paste the url here.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-03-10T06:44:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22840#p22840</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0-VAT again]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22839#p22839" />
			<content type="html"><![CDATA[<p>Not on here sure how to post files on here. Anyone interested I&#039;ll send the zipped file to.</p>]]></content>
			<author>
				<name><![CDATA[dls]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=699</uri>
			</author>
			<updated>2015-03-10T06:42:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22839#p22839</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0-VAT again]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22819#p22819" />
			<content type="html"><![CDATA[<p>@dls: Please post the changed files that worked for FA v2.3.22+</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-03-09T01:44:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22819#p22819</id>
		</entry>
</feed>
