<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Bug Found in Supplier Invoice in Calculating Unit Tax]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10384&amp;type=atom" />
	<updated>2023-09-22T21:34:42Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=10384</id>
		<entry>
			<title type="html"><![CDATA[Re: Bug Found in Supplier Invoice in Calculating Unit Tax]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42594#p42594" />
			<content type="html"><![CDATA[<p>@boxygen</p><p>You are right. This has been fixed and committed to stable repo. Thanks for reporting.</p><p>A fixed version kan be downloaded <a href="https://sourceforge.net/p/frontaccounting/git/ci/master/tree/purchasing/includes/db/invoice_db.inc">here</a> and replaced on your server.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2023-09-22T21:34:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42594#p42594</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Bug Found in Supplier Invoice in Calculating Unit Tax]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42592#p42592" />
			<content type="html"><![CDATA[<p>purchasing/includes/db/invoice_db.inc<br />Line # 276</p><p>The 3rd arugment is 0 but it should be $supp_trans-&gt;tax_group_id. Therefore it should be look like</p><div class="codebox"><pre><code> $line_tax = get_full_price_for_item($entered_grn-&gt;item_code,
            $entered_grn-&gt;this_quantity_inv * $entered_grn-&gt;chg_price, $supp_trans-&gt;tax_group_id, $supp_trans-&gt;tax_included) - $taxfree_line;</code></pre></div><p>Otherwise the unit_tax is not calcuated correctly because</p><p>finally the function get_tax_group_rates is not reurning the rates to calculated the <strong>full_price_of_item()</strong> on above mentioned line.</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2023-09-22T19:57:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42592#p42592</id>
		</entry>
</feed>
