<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — varying sales tax for a supplier/customer]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=392&amp;type=atom" />
	<updated>2010-03-29T13:52:31Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=392</id>
		<entry>
			<title type="html"><![CDATA[Re: varying sales tax for a supplier/customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5486#p5486" />
			<content type="html"><![CDATA[<p>Thank you :-)</p>]]></content>
			<author>
				<name><![CDATA[anwarkc]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=796</uri>
			</author>
			<updated>2010-03-29T13:52:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5486#p5486</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: varying sales tax for a supplier/customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5484#p5484" />
			<content type="html"><![CDATA[<p>You should also set tax group containing both tax types and apply it to your customer.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2010-03-29T13:29:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5484#p5484</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: varying sales tax for a supplier/customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5482#p5482" />
			<content type="html"><![CDATA[<p>Someone please help me set this right;</p><p>I have 2 different items with 2 different tax rates.<br />ItemA – 4% VAT<br />ItemB – 12.5% VAT</p><p>One customer wants to buy both the items. My question is, can I create a direct invoice with both items in the same invoice? Will the taxes be calculated appropriately?<br />Before answering please look whether the settings I have is correct;<br />Tax Types:<br />TaxA – 4%<br />TaxB – 12.5%</p><p>Both the items have been configured with respective tax types.<br />With the above setting I am not able to get the tax calculated in the invoice when I try to create a direct invoice in the Sales module. Instead it shows 0.00 in the tax field.<br />PLEASE HELP!!!</p>]]></content>
			<author>
				<name><![CDATA[anwarkc]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=796</uri>
			</author>
			<updated>2010-03-29T09:13:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5482#p5482</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: varying sales tax for a supplier/customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4552#p4552" />
			<content type="html"><![CDATA[<p>Hey</p><p>Where from sales tax invoice can be generated?</p>]]></content>
			<author>
				<name><![CDATA[sajjad]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=521</uri>
			</author>
			<updated>2010-01-25T07:53:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4552#p4552</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: varying sales tax for a supplier/customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=2085#p2085" />
			<content type="html"><![CDATA[<p>So it seems I will have 6 Tax types<br />FL @ 6% and 5 for the various surcharges used within the state</p><p>and then 68 Tax Groups, one for each of the 67 counties<br />Pasco County (FL 6% + Surcharge 1%)<br />etc</p><p>and one for the rest of the world (Exempt)</p><p>And I see how I can link the Customer Branch to the proper Tax Group</p><p>ok and I see the Item Tax type can be used to tax different items at different rates (or exempt)</p><p>(I am enumerating al this in hopes of the example being useful to others)</p><p>Thanks<br />Tom</p><p>ps.</p><p>On<br />http://..../fa/index.php?application=system</p><p>I think &#039;Taxes&#039; should be changed to &#039;Tax Yypes&#039;</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2009-03-27T10:34:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=2085#p2085</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: varying sales tax for a supplier/customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=2084#p2084" />
			<content type="html"><![CDATA[<p>Yes, branch defines delivery address and tax group among others.</p><p>Tax system in FA is somewhat complex, but flexible enough to accommodate nearly every tax rules. The main idea behind this is using intersection of tax sets for given customer and item sold. So first you should define all used tax rates on Taxes page. Then make Tax Groups which define which tax rates are applicable to customers in given group. Next define Item Tax Types grouping all various rates applicable to given category of items. As far as I understand your description, what you need here is something like:<br />- Rates 6% state tax, 0% Surcharge, ..., 1,5% Surcharge<br />- Groups based on location of customer e.g.:<br /> a) 6% State + 0% surcharge<br /> b) 6% State + 1.5% surcharge<br /> ....<br /> z) 0% export<br />- At least one item tax type e.g.<br />Standard Tax: 6% State + 0% surcharge +... +1,5% Surcharge +0% export</p><p>Now when you issue customer invoice&nbsp; right taxes are selected for any item as intersection of Item Tax Group and customer Tax Group.</p><p>Hope it helps<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2009-03-27T09:04:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=2084#p2084</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: varying sales tax for a supplier/customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=2082#p2082" />
			<content type="html"><![CDATA[<p>Ok I am a programmer, not an accountant.</p><p>I am in the USA and I have to collect Sales Tax.</p><p>All of my sales are from my website running osCommerce.</p><p>It correctly collects sales tax based upon the delivery address.</p><p>I do not see how that can be implemented in FA.</p><p>I do see Addng a Customer Account and then Adding a Customer Branch, but there it seems I would need to know what the Tax rates is for each customer.</p><p>The tax collected is State (6%) and then an optional County (0% to 1.5% surcharge)</p><p>Since my long term goal is to have osCommerce feed sales and customer information to FA maybe my answer is to use the osc tax name (FL - Pasco) as a tax group name and be able to look that up when a customer is created. (Florida has 60+ counties!)</p><p>Are the Customer Branches basically SHIPPING Addresses that customer uses?</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2009-03-27T03:59:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=2082#p2082</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: varying sales tax for a supplier/customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1419#p1419" />
			<content type="html"><![CDATA[<p>Thank you Joe. Looking forward to 2.1 </p><p><img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[MozMan]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=247</uri>
			</author>
			<updated>2008-11-17T19:23:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1419#p1419</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: varying sales tax for a supplier/customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1408#p1408" />
			<content type="html"><![CDATA[<p>A Tax Inquiry, based partly on the above script has been added to release 2.1 unstable. It is placed in the Banking and General Ledger tab.<br />Committed to CVS 2.1 unstable.<br />Thanks for the contribution.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2008-11-15T00:56:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1408#p1408</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: varying sales tax for a supplier/customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1407#p1407" />
			<content type="html"><![CDATA[<p>There is something similar at the end of the existing Tax Report. Maybe it should be replaced by your algorithm. I will have a closer look at it.<br />In release 2.1, the tax_code on account is changed from tax_type to tax_group to better handle the eventually multiple tax_types on an account.<br />You should also be glad waiting for this new release. You will be able to put dimension(s) on delivery notes, sales invoices and credit notes, so you can keep track of COGS and Sales for your dimensions.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2008-11-14T22:34:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1407#p1407</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: varying sales tax for a supplier/customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1405#p1405" />
			<content type="html"><![CDATA[<p>Many thanks for the replies.</p><p>Regarding project cost tracking with dimensions, basically what would be needed is to be able to select a dimension for any revenue or expense transaction entered. It&#039;s less important for us to associate a dimension to an Item or Inventory, because costs on any given product or service won&#039;t always be incurred on the same project (dimension). Anyway, I&#039;ll look at it further to see, maybe everything will work for us as is.</p><p>Regarding the tax reports. I understand that the accumulation of the tax GL Lines are shown on the report but we need to be able to show the GST/PST breakdown, rather just one sum.</p><p>It seems all of the tax transactions are included in the &quot;0_gl_trans&quot; table in the database. I was able to write a script that parses the database for sales tax transactions and add up the taxes separately as GST &amp; PST. I&#039;d like to share it because it might help other Canadian companies out there. To use it you would need to enter your own tax accounts as per your chart of accounts on lines 33 and 34. If you upload it to a location other than the main FA directory, you&#039;ll have to change the path to the include files on lines 3 and 4 to match. </p><p>I&#039;m not a programmer and I&#039;m sure there&#039;s a better way of coding it. For example, the tax types from the &quot;0_tax_types&quot; database table could be automatically obtained by the script instead of hard-coding the tax GL codes. The tax codes could then be used to sum up the different tax transactions. Also, the script doesn&#039;t PDF export, it just displays the amounts on the screen.</p><p>The script works for us because we have the same tax account set for &quot;Sales GL Account&quot; and &quot;Purchase GL Account&quot; for each of the taxes. Eg. GST Sales and Purchase GL account is 2310. PST Sales and Purchase GL is 2320</p><p>If anyone has suggestions or comments on how to improve the script, maybe I&#039;ll take another look at it when I have time. Feel free to improve and share it yourself.</p><p>Save the code in a file with a .php extension and upload it to your FA directory. Here it is:<br /></p><div class="codebox"><pre><code>&lt;?php
$page_security = 8;
include_once(&quot;includes/session.inc&quot;);
include_once(&quot;includes/ui.inc&quot;);

$startdate=$_POST[&#039;startdate&#039;];
$enddate=$_POST[&#039;enddate&#039;];
$js = &quot;&quot;;

if ($use_popup_windows)

    $js .= get_js_open_window(900, 500);

if ($use_date_picker)

    $js .= get_js_date_picker();
page(_(&quot;GST/PST sales report&quot;), false, false, &quot;&quot;, $js);


If ($startdate==NULL Or $enddate==NULL)
{
    start_form();
    start_table($table_style);
    table_section_title(_(&quot;Create a sales tax report&quot;));
    start_row();
    date_cells(_(&quot;From:&quot;), &#039;startdate&#039;, &#039;&#039;, null, -30);
    end_row();
    start_row();

    date_cells(_(&quot;To:&quot;), &#039;enddate&#039;);
    end_row();
    submit_row(&#039;submit&#039;, &#039;Generate&#039;);

    end_table();

    end_form();
}
Else
{
//configuration area
$GSTaccount=&quot;2310&quot;; //GST chart of accounts number 
$PSTaccount=&quot;2320&quot;; //PST chart of accounts number
//end of configuration area

$startdate=date2sql($startdate);
$enddate=date2sql($enddate);

$queryGST = &quot;SELECT * FROM 0_gl_trans WHERE account=&#039;$GSTaccount&#039; AND tran_date&gt;=&#039;$startdate&#039; AND tran_date&lt;=&#039;$enddate&#039;&quot;;
$resultGST = db_query($queryGST,&quot;Error&quot;);

$GSTcollectible=0;
$GSTpayable=0;
$netGST=0;

    while($rowGST = mysql_fetch_array($resultGST, MYSQL_ASSOC))
    {
        If ($rowGST[&#039;amount&#039;] &gt; 0)
          {
              $GSTcollectible = $GSTcollectible + $rowGST[&#039;amount&#039;];
          }
          elseif ($rowGST[&#039;amount&#039;] &lt; 0)
          {
              $GSTpayable = $GSTpayable + $rowGST[&#039;amount&#039;];
          }
        $netGST=$netGST + $rowGST[&#039;amount&#039;];
    } 

$PSTcollectible=0;
$PSTpayable=0;
$netPST=0;

$queryPST = &quot;SELECT * FROM 0_gl_trans WHERE account=&#039;$PSTaccount&#039; AND tran_date&gt;=&#039;$startdate&#039; AND tran_date&lt;=&#039;$enddate&#039;&quot;;
$resultPST = mysql_query($queryPST);
    while($rowPST = mysql_fetch_array($resultPST, MYSQL_ASSOC))
    {
        If ($rowPST[&#039;amount&#039;] &gt; 0)
          {
              $PSTcollectible = $PSTcollectible + $rowPST[&#039;amount&#039;];
          }
          elseif ($rowPST[&#039;amount&#039;] &lt; 0)
          {
              $PSTpayable = $PSTpayable + $rowPST[&#039;amount&#039;];
          }
        $netPST=$netPST + $rowPST[&#039;amount&#039;];
    } 

$grandtotal=$netGST + $netPST;

$startdate=sql2date($startdate);
$enddate=sql2date($enddate);

start_table($table_style);    
table_section_title(_(&quot;Tax report ($startdate to $enddate)&quot;));
start_row();
label_cell(&quot;GST charged on sales (Output Tax):&quot;);
amount_cell($GSTpayable, $bold=false);
end_row();
start_row();
label_cell(&quot;GST paid on purchases (Input Tax):&quot;);
amount_cell($GSTcollectible, $bold=false);
end_row();
start_row();
label_cell(&quot;Net GST payable or collectible:&quot;);
amount_cell($netGST, $bold=true);
end_row();

start_row();
label_cell();
label_cell();
end_row();

start_row();
label_cell(&quot;PST paid on purchases (Input Tax):&quot;);
amount_cell($PSTcollectible, $bold=false);
end_row();
start_row();
label_cell(&quot;PST charged on sales (Output Tax):&quot;);
amount_cell($PSTpayable, $bold=false);
end_row();
start_row();
label_cell(&quot;Net PST payable or collectible:&quot;);
amount_cell($netPST, $bold=true);
end_row();

start_row();
label_cell();
label_cell();
end_row();

start_row();
label_cell(&quot;Total payable or refund:&quot;);
amount_cell($grandtotal, $bold=true);
end_row();

end_table();

}
end_page();
?&gt;</code></pre></div><p>Best regards.</p>]]></content>
			<author>
				<name><![CDATA[MozMan]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=247</uri>
			</author>
			<updated>2008-11-14T20:16:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1405#p1405</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: varying sales tax for a supplier/customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1396#p1396" />
			<content type="html"><![CDATA[<p>At the end of the Tax Report, there is an accumulation of the GL Lines where the different taxes have been posted.</p><p>Regarding projects (dimensions) on the invoice etc., we are developing an option to select dimension(s) on the Sales Delivery and Sales Invoice/credit note pages. We do not need it on the Supplier side, because this side only affect the stock/inventory postings. Non items for the supplier can be entered under GL items and you can select dimensions here as well.<br />First when a delivery note is created the COGS accounts are involved. And ev. selected dimension(s) will go with these COGS lines.<br />When the invoice or a credit note is created adn dimension(s) are selected, the Sales accounts will include these dimension(s).<br />These selected dimension(s) will steer over ev. set dimension(s) on the item/cust.branch.<br />What I mean with the (s) in the dimensions is that you can set the company to have 0, 1 or 2 levels of dimensions. Se in dimension forum how this works.</p><p>If you have any opinion about this, please let us know.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2008-11-11T17:53:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1396#p1396</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: varying sales tax for a supplier/customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1395#p1395" />
			<content type="html"><![CDATA[<p>Ya I think FA has it ready for GL accounts to be able to tie in with the tax somehow, but has not been implemented yet. If you put it as GL Items for this Invoice for Tax it should show up at the bottom under General Ledger no? Maybe you have to specify the Tax Groups first or something, did you set it under Tax Types?</p>]]></content>
			<author>
				<name><![CDATA[t2webby]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=182</uri>
			</author>
			<updated>2008-11-11T17:01:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1395#p1395</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: varying sales tax for a supplier/customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1392#p1392" />
			<content type="html"><![CDATA[<p>Thanks for the reply.</p><p>Maybe I&#039;m doing something wrong but I was unable to get the taxes to show up in the &quot;Tax Report&quot; under &quot;Output Tax&quot; and &quot;Input Tax&quot; when entering the taxes manually using the &quot;GL Items for this Invoice&quot;. Nor does it display in the tax report when entering the purchase and GST/PST as a transaction (journal entry or payment) under &quot;Banking and General Ledger&quot;. </p><p>Maybe I&#039;m missing something but is there a way to display the total tax outputs and inputs when entering the tax amounts manually as GL lines? This would be handy when reporting to the government.</p><p>Cheers and thanks again.</p>]]></content>
			<author>
				<name><![CDATA[MozMan]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=247</uri>
			</author>
			<updated>2008-11-11T06:46:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1392#p1392</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: varying sales tax for a supplier/customer]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1391#p1391" />
			<content type="html"><![CDATA[<p>If supplier invoice tax is unique beyond tax on items, what we&#039;ve done to pay utilities, bills, etc through creating an invoice is by adding &quot;GL Items for this Invoice&quot;, then you just choose your Tax Accounts (GST / PST) and manually put the amounts in.</p>]]></content>
			<author>
				<name><![CDATA[t2webby]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=182</uri>
			</author>
			<updated>2008-11-11T04:27:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1391#p1391</id>
		</entry>
</feed>
