<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Disable input or change some objects in customer invoice]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6231</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6231&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Disable input or change some objects in customer invoice.]]></description>
		<lastBuildDate>Tue, 26 Apr 2016 07:53:52 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Disable input or change some objects in customer invoice]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25409#p25409</link>
			<description><![CDATA[<p>you can call this function by adding last parameter `true`, than it will be disabled.&nbsp; Try it.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Tue, 26 Apr 2016 07:53:52 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25409#p25409</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable input or change some objects in customer invoice]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25408#p25408</link>
			<description><![CDATA[<p>try this way, i am just explaining you the way to&nbsp; do it for first one. `sales_types_list_row`. you can do it others manually. </p><div class="codebox"><pre><code> 

function sales_types_list($name, $selected_id=null, $submit_on_change=false, $special_option=false, $disabled=false)
{
    $sql = &quot;SELECT id, sales_type, inactive FROM &quot;.TB_PREF.&quot;sales_types&quot;;

    return combo_input($name, $selected_id, $sql, &#039;id&#039;, &#039;sales_type&#039;,
    array(
        &#039;spec_option&#039; =&gt; $special_option===true ? _(&quot;All Sales Types&quot;) : $special_option,
        &#039;spec_id&#039; =&gt; 0,
        &#039;select_submit&#039;=&gt; $submit_on_change,
                &#039;disabled&#039;  =&gt; $disabled, 
    //      &#039;async&#039; =&gt; false,
    ) );
}

function sales_types_list_cells($label, $name, $selected_id=null, $submit_on_change=false, $special_option=false, $disabled=false)
{
    if ($label != null)
        echo &quot;&lt;td&gt;$label&lt;/td&gt;\n&quot;;
    echo &quot;&lt;td&gt;&quot;;
    echo sales_types_list($name, $selected_id, $submit_on_change, $special_option, $disabled);
    echo &quot;&lt;/td&gt;\n&quot;;
}

function sales_types_list_row($label, $name, $selected_id=null, $submit_on_change=false, $special_option=false, $disabled=false)
{
    echo &quot;&lt;tr&gt;&lt;td class=&#039;label&#039;&gt;$label&lt;/td&gt;&quot;;
    sales_types_list_cells(null, $name, $selected_id, $submit_on_change, $special_option, $disabled);
    echo &quot;&lt;/tr&gt;\n&quot;;
}</code></pre></div><p>Here I just added additional parameter `$disabled`. and forwarded to combo_input call.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Tue, 26 Apr 2016 07:52:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25408#p25408</guid>
		</item>
		<item>
			<title><![CDATA[Disable input or change some objects in customer invoice]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25404#p25404</link>
			<description><![CDATA[<p>How can i disable input or change some objects in customer invoice? such as:</p><p>sales_types_list_row<br />price<br />payment_terms_list_cells<br />Amount<br />Shipping Cost</p><p>And dont allow user to input or change these?</p>]]></description>
			<author><![CDATA[null@example.com (kolegut)]]></author>
			<pubDate>Sat, 23 Apr 2016 12:12:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25404#p25404</guid>
		</item>
	</channel>
</rss>
