<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — How to remove discount column]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5508&amp;type=atom" />
	<updated>2015-02-04T05:14:00Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5508</id>
		<entry>
			<title type="html"><![CDATA[Re: How to remove discount column]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22382#p22382" />
			<content type="html"><![CDATA[<p>A flag variable that enables / disables discount display would be a nice way to go.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-02-04T05:14:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22382#p22382</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to remove discount column]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22380#p22380" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[kwebihaf]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19165</uri>
			</author>
			<updated>2015-02-03T13:33:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22380#p22380</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to remove discount column]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22357#p22357" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[carmelr]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=13862</uri>
			</author>
			<updated>2015-01-30T08:44:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22357#p22357</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to remove discount column]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22341#p22341" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-01-27T13:47:44Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22341#p22341</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to remove discount column]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22334#p22334" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[kwebihaf]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19165</uri>
			</author>
			<updated>2015-01-26T17:39:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22334#p22334</id>
		</entry>
</feed>
