<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Editable Item Description's Input is TextBox. How to Enable TextArea]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7615&amp;type=atom" />
	<updated>2019-10-30T02:56:15Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7615</id>
		<entry>
			<title type="html"><![CDATA[Re: Editable Item Description's Input is TextBox. How to Enable TextArea]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36312#p36312" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>boxygen wrote:</cite><blockquote><p>I can see this <a href="https://github.com/FrontAccountingERP/FA/commit/41bdd7820211334cef5c087889e6cd5e6e45af86">commit</a> by @joe for Item Editable Description. I have applied this but I couldn&#039;t find any change in Behaviour of Editable Item Description. Any Idea how shall I expect the change?</p></blockquote></div><br /><p>to view in pages and PDF add -nl2br- in -&gt; sales\includes\ui\sales_order_ui.inc -&gt; around line 183</p><p>label_cell($stock_item-&gt;item_description);</p><p>to</p><p>label_cell(nl2br($stock_item-&gt;item_description) );</p><br /><br /><p>you also want to replace in sales\includes\ui\sales_order_ui.inc around line 492</p><p>text_cells(null,&#039;item_description&#039;, null, 45, 150);</p><p>to</p><p>textarea_cells(null, &#039;item_description&#039;, null, &#039;45&#039; , 5,&nbsp; $title = null);</p>]]></content>
			<author>
				<name><![CDATA[cristiart]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17592</uri>
			</author>
			<updated>2019-10-30T02:56:15Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36312#p36312</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Editable Item Description's Input is TextBox. How to Enable TextArea]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32510#p32510" />
			<content type="html"><![CDATA[<p>@kvvaradha, thanks got it.</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2018-08-20T17:59:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32510#p32510</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Editable Item Description's Input is TextBox. How to Enable TextArea]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32505#p32505" />
			<content type="html"><![CDATA[<p>@boxygen -&nbsp; The commit code was adjusted by myself. it was <a href="https://frontaccounting.com/punbb/viewtopic.php?id=7569">discussed here</a>. I hope you understand, when you check this thread.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2018-08-20T04:27:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32505#p32505</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Editable Item Description's Input is TextBox. How to Enable TextArea]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32499#p32499" />
			<content type="html"><![CDATA[<p>Try clearing the js and other browser cache and try it.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-08-19T04:37:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32499#p32499</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Editable Item Description's Input is TextBox. How to Enable TextArea]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32497#p32497" />
			<content type="html"><![CDATA[<p>I can see this <a href="https://github.com/FrontAccountingERP/FA/commit/41bdd7820211334cef5c087889e6cd5e6e45af86">commit</a> by @joe for Item Editable Description. I have applied this but I couldn&#039;t find any change in Behaviour of Editable Item Description. Any Idea how shall I expect the change?</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2018-08-19T03:57:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32497#p32497</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Editable Item Description's Input is TextBox. How to Enable TextArea]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32208#p32208" />
			<content type="html"><![CDATA[<p>I like this too<br />Notes:-<br /></p><ol class="decimal"><li><p>Editable desc is stored in sales_order_details &amp; debtor_trans_details which are both tinytext so 255 char max</p></li><li><p>@apmuthu it should only affect combo_input fields which are editable.</p></li><li><p>When selecting an editable desc item in purchases the textarea is only visible after selecting quantity or price - Is anyone else getting this?</p></li></ol>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2018-07-13T14:32:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32208#p32208</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Editable Item Description's Input is TextBox. How to Enable TextArea]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32205#p32205" />
			<content type="html"><![CDATA[<p>@boxygen ,&nbsp; I gave it as simple and stand to replace the textbox with textarea.&nbsp; But it requires to save the multi lines as like it inputted.&nbsp; For that, we need to change some more to take effect. Also it may possible to add a option to change it either textbox or textarea</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2018-07-13T12:49:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32205#p32205</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Editable Item Description's Input is TextBox. How to Enable TextArea]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32198#p32198" />
			<content type="html"><![CDATA[<p>A screenshot using the standard default theme (and not the dashboard/canvas) theme would be better for design purposes.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-07-13T07:31:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32198#p32198</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Editable Item Description's Input is TextBox. How to Enable TextArea]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32197#p32197" />
			<content type="html"><![CDATA[<p>I have set the cols=&#039;35&#039; and rows=&#039;3&#039; and now its OK for me</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2018-07-13T07:30:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32197#p32197</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Editable Item Description's Input is TextBox. How to Enable TextArea]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32196#p32196" />
			<content type="html"><![CDATA[<p>I have tested the recommended code of @kvvaradha. It is working fine and data is correctly displayed even in reports. The only problem mentioned in this <a href="https://prnt.sc/k5xah4"> screen short</a></p><p>The TextArea is encompassing the second column</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2018-07-13T07:07:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32196#p32196</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Editable Item Description's Input is TextBox. How to Enable TextArea]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32194#p32194" />
			<content type="html"><![CDATA[<p>@joe: a nice functionality but may affect a lot more tables fields / scripts.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-07-13T05:59:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32194#p32194</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Editable Item Description's Input is TextBox. How to Enable TextArea]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32193#p32193" />
			<content type="html"><![CDATA[<p>Open ui_list.inc&nbsp; and goto line number 259 around and find the below code.</p><div class="codebox"><pre><code>.&quot;&lt;input type=&#039;text&#039; $disabled name=&#039;{$name}_text&#039; id=&#039;{$name}_text&#039; size=&#039;&quot;.
                $opts[&#039;editable&#039;].&quot;&#039; maxlength=&#039;&quot;.$opts[&#039;max&#039;].&quot;&#039; $rel value=&#039;$edit&#039;&gt;\n&quot;;</code></pre></div><p>and replace with below one.<br /></p><div class="codebox"><pre><code>.&quot;&lt;textarea $disabled name=&#039;{$name}_text&#039; id=&#039;{$name}_text&#039; cols=&#039;35&#039; rows=&#039;5&quot;    .($name ? &quot; title=&#039;$name&#039;&quot; : &#039;&#039;)    .&quot;&gt;$edit&lt;/textarea&gt;\n&quot;;</code></pre></div><p>this is code helps you to change it multi-line input(TextArea).&nbsp; But it wont save them like multi lines. There are few other files needs to be edited to allow it to process multi line inputs</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2018-07-13T02:06:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32193#p32193</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Editable Item Description's Input is TextBox. How to Enable TextArea]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32191#p32191" />
			<content type="html"><![CDATA[<p>this should be a great feature, resizable textarea instead of textbox. I think this post should move to Wish List...</p>]]></content>
			<author>
				<name><![CDATA[cristiart]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17592</uri>
			</author>
			<updated>2018-07-12T16:44:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32191#p32191</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Editable Item Description's Input is TextBox. How to Enable TextArea]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32186#p32186" />
			<content type="html"><![CDATA[<p>The following function returns a TextBox to Edit Item Description if Item is Editable. Some Item Descriptions needs to be multi lines. How can this function returns TextArea for Editable Items.</p><div class="codebox"><pre><code>function sales_items_list_cells($label, $name, $selected_id=null, $all_option=false, $submit_on_change=false, $editkey=false)
{
    if ($editkey)
        set_editor(&#039;item&#039;, $name, $editkey);

    if ($label != null)
        echo &quot;&lt;td&gt;$label&lt;/td&gt;\n&quot;;
    echo sales_items_list($name, $selected_id, $all_option, $submit_on_change,
        &#039;&#039;, array(&#039;cells&#039;=&gt;true));
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2018-07-12T12:40:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32186#p32186</id>
		</entry>
</feed>
