User authentication is temporarily unavailable. If this situation persists, please inform your Wiki Admin.

Textarea for Invoice Preference pages

In the menu : Invoice Preferences → Edit or Add:

The field Invoice detail line can be made a TEXTAREA type with RichText WYSIWYG capability to ease formatting. To do so, the following text replacements are needed:-

In file /templates/default/preferences/add.tpl Replace Line 53

	<td><input type=text name="p_inv_detail_line"  value="{$smarty.post.p_inv_detail_line}" size=75></td>

With

	<td><textarea input type=text name="p_inv_detail_line" rows="8" cols="75">{$smarty.post.p_inv_detail_line}</textarea></td>

In file /templates/default/preferences/details.tpl Replace Line 89

                        <td class='details_screen'>Invoice detail line <a href="docs.php?t=help&p=inv_pref_invoice_detail_line" rel="gb_page_center[450, 450]"><img src="./images/common/help-small.png"></img></a></td><td><input type=text name='pref_inv_detail_line' value='{$preference.pref_inv_detail_line}' size=75></td>

With

                        <td class='details_screen'>Invoice detail line <a href="docs.php?t=help&p=inv_pref_invoice_detail_line" rel="gb_page_center[450, 450]"><img src="./images/common/help-small.png"></img></a></td><td><textarea input type=text name="pref_inv_detail_line" rows="8" cols="75">{$preference.pref_inv_detail_line}</textarea></td>

Download the add.tpl and details.tpl files here

Created and Tested on SI_20071116 by Ap.Muthu

 
 | wiki/invoice_preference_-_textarea.txt · Last modified: 2016/10/11 06:15 (external edit)