<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — How to remove discount column]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=5508</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5508&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to remove discount column.]]></description>
		<lastBuildDate>Wed, 04 Feb 2015 05:14:00 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to remove discount column]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22382#p22382</link>
			<description><![CDATA[<p>A flag variable that enables / disables discount display would be a nice way to go.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 04 Feb 2015 05:14:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22382#p22382</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to remove discount column]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22380#p22380</link>
			<description><![CDATA[<p>Thanks All</p><p>However I have applied the above help on files <strong>reporting/rep111.php </strong> Sales Quotations</p><p>and <strong>reporting/includes/doctext.inc</strong></p><p><strong>carmelr&#039;s</strong> method works perfectly ok.</p><p>FRED</p>]]></description>
			<author><![CDATA[null@example.com (kwebihaf)]]></author>
			<pubDate>Tue, 03 Feb 2015 13:33:51 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22380#p22380</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to remove discount column]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22357#p22357</link>
			<description><![CDATA[<p>While apmuthu&#039;s solution works fine, it leaves a large gap between the Price and the Total.</p><p>I made the following changes to remove the Discount column:</p><p>Edit the file <strong>reporting/includes/doctext.inc</strong> from (line 28):</p><div class="codebox"><pre><code>    // default item column headers
    $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>to:<br /></p><div class="codebox"><pre><code>    // default item column headers
    $this-&gt;headers = array(_(&quot;Item Code&quot;), _(&quot;Item Description&quot;), &quot;&quot;, _(&quot;Quantity&quot;),
         _(&quot;Unit&quot;), _(&quot;Price&quot;), _(&quot;Total&quot;));</code></pre></div><p>Then in <strong>reporting/rep107.php</strong> change the following from (line 58):<br /></p><div class="codebox"><pre><code>    $cols = array(4, 60, 225, 300, 325, 385, 450, 515);

    // $headers in doctext.inc
    $aligns = array(&#039;left&#039;,    &#039;left&#039;,    &#039;right&#039;, &#039;left&#039;, &#039;right&#039;, &#039;right&#039;, &#039;right&#039;);</code></pre></div><p>to:<br /></p><div class="codebox"><pre><code>    $cols = array(4, 60, 225, 300, 365, 385, 450, 515);

    // $headers in doctext.inc
    $aligns = array(&#039;left&#039;,    &#039;left&#039;,    &#039;right&#039;, &#039;right&#039;, &#039;right&#039;, &#039;right&#039;, &#039;right&#039;);</code></pre></div><p>and from (line 119):<br /></p><div class="codebox"><pre><code>                $oldrow = $rep-&gt;row;
                $rep-&gt;TextColLines(1, 2, $myrow2[&#039;StockDescription&#039;], -2);
                $newrow = $rep-&gt;row;
                $rep-&gt;row = $oldrow;
                if ($Net != 0.0 || !is_service($myrow2[&#039;mb_flag&#039;]) || !isset($no_zero_lines_amount) || $no_zero_lines_amount == 0)
                {
                    $rep-&gt;TextCol(2, 3,    $DisplayQty, -2);
                    $rep-&gt;TextCol(3, 4,    $myrow2[&#039;units&#039;], -2);
                    $rep-&gt;TextCol(4, 5,    $DisplayPrice, -2);
                    $rep-&gt;TextCol(5, 6,    $DisplayDiscount, -2);
                    $rep-&gt;TextCol(6, 7,    $DisplayNet, -2);
                }    
                $rep-&gt;row = $newrow;</code></pre></div><p>to:<br /></p><div class="codebox"><pre><code>                    $oldrow = $rep-&gt;row;
                    $rep-&gt;TextColLines(1, 3, $myrow2[&#039;StockDescription&#039;], -2);
                    $newrow = $rep-&gt;row;
                    $rep-&gt;row = $oldrow;
                    if ($Net != 0.0 || !is_service($myrow2[&#039;mb_flag&#039;]) || !isset($no_zero_lines_amount) || $no_zero_lines_amount == 0)
                    {
                        $rep-&gt;TextCol(3, 4,    $DisplayQty, -2);
                        $rep-&gt;TextCol(4, 5,    $myrow2[&#039;units&#039;], -2);
                        $rep-&gt;TextCol(5, 6,    $DisplayPrice, -2);
                        //$rep-&gt;TextCol(5, 6,    $DisplayDiscount, -2);
                        $rep-&gt;TextCol(6, 7,    $DisplayNet, -2);
                    }    
                    $rep-&gt;row = $newrow;</code></pre></div><p>With these modifications you will get more space for the item description as well.</p><p>Hope this helps.<br />Carmelo</p>]]></description>
			<author><![CDATA[null@example.com (carmelr)]]></author>
			<pubDate>Fri, 30 Jan 2015 08:44:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22357#p22357</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to remove discount column]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22341#p22341</link>
			<description><![CDATA[<p>Name the url you see for the forms and the repXXX number you see for the reports - take detailed snapshots and mark the areas you do not want to see, fix a price and put it into the Job/Offers forum topic and wait for someone interested in taking it up.</p><p>If however, you wish to attempt it on your own, then here is the info to start you off. The Invoice script is <strong>reporting/rep107.php</strong> and it&#039;s line 128 can be commented out like:<br /></p><div class="codebox"><pre><code>//                    $rep-&gt;TextCol(5, 6,    $DisplayDiscount, -2);</code></pre></div><p>or just blanked out like:<br /></p><div class="codebox"><pre><code>                    $rep-&gt;TextCol(5, 6,    &quot;&quot;, -2);</code></pre></div><p>and the heading for the column is in <strong>reporting/includes/doctext.inc</strong> in line 30:<br /></p><div class="codebox"><pre><code>        _(&quot;Unit&quot;), _(&quot;Price&quot;), _(&quot;Discount %&quot;), _(&quot;Total&quot;));</code></pre></div><p>where the <strong>Discount %</strong> label may be a blank string or removed out depending on whether you commented out the earlier one or just made it display a blank string as well.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 27 Jan 2015 13:47:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22341#p22341</guid>
		</item>
		<item>
			<title><![CDATA[How to remove discount column]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22334#p22334</link>
			<description><![CDATA[<p>I want to remove discount column in all the sales forms and report.</p><p>How do i go about it?</p><p>Regards,</p><p>FRED</p>]]></description>
			<author><![CDATA[null@example.com (kwebihaf)]]></author>
			<pubDate>Mon, 26 Jan 2015 17:39:28 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22334#p22334</guid>
		</item>
	</channel>
</rss>
