<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Invoice to end-users INCL. VAT and B2B EXCL. VAT]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1113&amp;type=atom" />
	<updated>2010-02-21T21:17:59Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=1113</id>
		<entry>
			<title type="html"><![CDATA[Re: Invoice to end-users INCL. VAT and B2B EXCL. VAT]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4922#p4922" />
			<content type="html"><![CDATA[<p>I&#039;m just notified on the including tax option for the Sales Type. Maybe it&#039;s an idea to select on this flag instead of the GSTno of the customer. So when the sales type has tax included enabled then also show the invoice with item prices and line totals including tax. However I didn&#039;t check how to do this...</p>]]></content>
			<author>
				<name><![CDATA[shopimport]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=512</uri>
			</author>
			<updated>2010-02-21T21:17:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4922#p4922</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Invoice to end-users INCL. VAT and B2B EXCL. VAT]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4921#p4921" />
			<content type="html"><![CDATA[<p>I also managed to switch the heading of the invoice to show &#039;price incl. tax&#039; or &#039;price excl. tax&#039;.</p><p>line 106 (FA version 2.2.6) of reporting/includes/doctext.inc </p><p>find this:<br /></p><div class="codebox"><pre><code>            $this-&gt;headers = array(_(&quot;Item Code&quot;), _(&quot;Item Description&quot;),    _(&quot;Quantity&quot;),
                _(&quot;Unit&quot;), _(&quot;Price&quot;), _(&quot;Discount %&quot;), _(&quot;Total&quot;));</code></pre></div><p>and modify into:<br /></p><div class="codebox"><pre><code>          if( $myrow[&quot;tax_id&quot;] == &quot;&quot; ) {
            $tax = &quot; incl. VAT&quot;;
          } else {
            $tax = &quot; excl. VAT&quot;;
      }
            $this-&gt;headers = array(_(&quot;Item Code&quot;), _(&quot;Item Description&quot;),    _(&quot;Quantity&quot;),
                _(&quot;Unit&quot;), _(&quot;Price&quot;).$tax, _(&quot;Discount %&quot;), _(&quot;Total&quot;).$tax);</code></pre></div><p>Just to share my adjustments to support end-user B2C and company B2B invoicing.</p>]]></content>
			<author>
				<name><![CDATA[shopimport]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=512</uri>
			</author>
			<updated>2010-02-21T21:14:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4921#p4921</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Invoice to end-users INCL. VAT and B2B EXCL. VAT]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4916#p4916" />
			<content type="html"><![CDATA[<p>At my side with FA2.2.6 I really get the correct values. So per line item the price per piece and the line total are both including VAT/tax. </p><p>The only change I do is to calculate the DisplayPrice based on the price including tax (FullUnitPrice) and als re-calculate the $Net based on this price including tax. With re-calculating I mean that the original $Net= will exist and also the $SubTotal += $Net; so one line after this I re-calcultate $Net for the item line. The re-calculation is not done in case it&#039;s a company as then the price is already correct.</p>]]></content>
			<author>
				<name><![CDATA[shopimport]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=512</uri>
			</author>
			<updated>2010-02-21T18:21:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4916#p4916</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Invoice to end-users INCL. VAT and B2B EXCL. VAT]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4896#p4896" />
			<content type="html"><![CDATA[<p>Well, interesting idea, however line total is still displayed excluding VAT/GST, so price*qty!=amount.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2010-02-19T15:34:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4896#p4896</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Invoice to end-users INCL. VAT and B2B EXCL. VAT]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4895#p4895" />
			<content type="html"><![CDATA[<p>I found a way to invoice to B2B and to end-users. For B2B I wanted to keep the current invoice excluding tax. For end-users I needed to show the prices per line item including tax/VAT.</p><p>I replaced in reporting/rep107.php line 122 (FA version 1.2.6)</p><div class="codebox"><pre><code>                $DisplayPrice = number_format2($myrow2[&quot;unit_price&quot;],$dec);</code></pre></div><p>info:<br /></p><div class="codebox"><pre><code>          if( $myrow[&quot;tax_id&quot;] == &quot;&quot; ) {
                  $Net = round2($sign * ((1 - $myrow2[&quot;discount_percent&quot;]) * ($myrow2[&quot;FullUnitPrice&quot;]) * $myrow2[&quot;quantity&quot;]), user_price_dec());
               $DisplayPrice = number_format2($myrow2[&quot;FullUnitPrice&quot;],$dec);
        } else {
              $DisplayPrice = number_format2($myrow2[&quot;unit_price&quot;],$dec);
        }</code></pre></div><p>In case you fill in a TAX_ID which is the GSTNo in the customer record then the customer is considered to be a company and will show the prices excluding VAT. When this is field is kept empty it will show the prices including VAT.</p>]]></content>
			<author>
				<name><![CDATA[shopimport]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=512</uri>
			</author>
			<updated>2010-02-19T14:47:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4895#p4895</id>
		</entry>
</feed>
