<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Show the gross amount per item on sales invoice and credit note]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9873&amp;type=atom" />
	<updated>2022-06-20T15:36:04Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9873</id>
		<entry>
			<title type="html"><![CDATA[Re: Show the gross amount per item on sales invoice and credit note]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41193#p41193" />
			<content type="html"><![CDATA[<p>I have come up with a solution</p><p>1. changed the columns size and added and extra column in line 60 of rep107:<br />&nbsp; &nbsp; $cols = array(4, 60, 195, 260, 285, 325, 390, 450, 515);<br />2. added the Gross amount calcuations ( hardcoded tax multiplier in file, but works for me for now) in rep107 as per below from line 114 onwards:<br />&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; $DisplayPrice = number_format2($myrow2[&quot;unit_price&quot;],$dec);<br />&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; $DisplayQty = number_format2($sign*$myrow2[&quot;quantity&quot;],get_qty_dec($myrow2[&#039;stock_id&#039;]));<br />&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; $DisplayNet = number_format2($Net,$dec);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; //Calculate Gross number<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; $DisplayGross = number_format2($Net*1.16,$dec);&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; if ($myrow2[&quot;discount_percent&quot;]==0)<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $DisplayDiscount =&quot;&quot;;<br />&nbsp; &nbsp;&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $DisplayDiscount = number_format2($myrow2[&quot;discount_percent&quot;]*100,user_percent_dec()) . &quot;%&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;TextCol(0, 1,&nbsp; &nbsp; $myrow2[&#039;stock_id&#039;], -2);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $oldrow = $rep-&gt;row;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;TextColLines(1, 2, $myrow2[&#039;StockDescription&#039;], -2);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $newrow = $rep-&gt;row;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;row = $oldrow;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($Net != 0.0 || !is_service($myrow2[&#039;mb_flag&#039;]) || !isset($no_zero_lines_amount) || $no_zero_lines_amount == 0)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;TextCol(2, 3,&nbsp; &nbsp; $DisplayQty, -2);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;TextCol(3, 4,&nbsp; &nbsp; $myrow2[&#039;units&#039;], -2);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;TextCol(4, 5,&nbsp; &nbsp; $DisplayPrice, -2);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;TextCol(5, 6,&nbsp; &nbsp; $DisplayDiscount, -2);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;TextCol(6, 7,&nbsp; &nbsp; $DisplayNet, -2);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//Display Gross Number<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$rep-&gt;TextCol(7, 8,&nbsp; &nbsp; $DisplayGross, -2);&nbsp; &nbsp; </p><p>3. Change the row descriptions in doctext.inc line 30<br />&nbsp; &nbsp; // default item column headers<br />&nbsp; &nbsp; $this-&gt;headers = array(_(&quot;Item Code&quot;), _(&quot;Item Description&quot;), _(&quot;Quantity&quot;),<br />&nbsp; &nbsp; &nbsp; &nbsp; _(&quot;Unit&quot;), _(&quot;Price&quot;), _(&quot;Discount %&quot;), _(&quot;Net&quot;), _(&quot;Gross&quot;));</p>]]></content>
			<author>
				<name><![CDATA[seend]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20852</uri>
			</author>
			<updated>2022-06-20T15:36:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41193#p41193</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Show the gross amount per item on sales invoice and credit note]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41185#p41185" />
			<content type="html"><![CDATA[<p>This may not be everything you want, but you could sell your items including tax (Select from price list in invoice creation - set up in &quot;Sales Types&quot;)<br />Try it in your training program first.</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2022-06-18T22:36:40Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41185#p41185</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Show the gross amount per item on sales invoice and credit note]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41184#p41184" />
			<content type="html"><![CDATA[<p>I want to show the gross amount per item ( including tax) on the sales invoice and credit note pdfs. So at the item level instead of just after sub total.</p><p>Not sure if this has to be done at the code level in the rep files or is there a setting/flag somewhere to trigger this.<br />Thanks<br />Sam</p>]]></content>
			<author>
				<name><![CDATA[seend]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20852</uri>
			</author>
			<updated>2022-06-18T13:20:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41184#p41184</id>
		</entry>
</feed>
