<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Show the gross amount per item on sales invoice and credit note]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=9873</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9873&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Show the gross amount per item on sales invoice and credit note.]]></description>
		<lastBuildDate>Mon, 20 Jun 2022 15:36:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Show the gross amount per item on sales invoice and credit note]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41193#p41193</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (seend)]]></author>
			<pubDate>Mon, 20 Jun 2022 15:36:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41193#p41193</guid>
		</item>
		<item>
			<title><![CDATA[Re: Show the gross amount per item on sales invoice and credit note]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41185#p41185</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Sat, 18 Jun 2022 22:36:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41185#p41185</guid>
		</item>
		<item>
			<title><![CDATA[Show the gross amount per item on sales invoice and credit note]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41184#p41184</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (seend)]]></author>
			<pubDate>Sat, 18 Jun 2022 13:20:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41184#p41184</guid>
		</item>
	</channel>
</rss>
