<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Adding a new field in Direct Sales Invoice page]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4443&amp;type=atom" />
	<updated>2013-10-11T02:59:49Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4443</id>
		<entry>
			<title type="html"><![CDATA[Re: Adding a new field in Direct Sales Invoice page]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18086#p18086" />
			<content type="html"><![CDATA[<p>The file <strong>includes/ui/ui_lists.inc</strong> has:<br /></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><p>The file <strong>sales/includes/ui/sales_order_ui.inc</strong> uses it in:<br /></p><div class="codebox"><pre><code>    else    // prepare new line
    {
        sales_items_list_cells(null,&#039;stock_id&#039;, null, false, true, true);
        if (list_updated(&#039;stock_id&#039;)) {
                $Ajax-&gt;activate(&#039;price&#039;);
                $Ajax-&gt;activate(&#039;units&#039;);
                $Ajax-&gt;activate(&#039;qty&#039;);
                $Ajax-&gt;activate(&#039;line_total&#039;);
        }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-10-11T02:59:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18086#p18086</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Adding a new field in Direct Sales Invoice page]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18028#p18028" />
			<content type="html"><![CDATA[<p>how to adding a new field, Part code field after Item Code field?<br />I can&#039;t understand in line sales_items_list_cells(null,&#039;stock_id&#039;, null, false, true);<br />That script fusing Item Code and Item Description, it can&#039;t inseparable.</p>]]></content>
			<author>
				<name><![CDATA[rendifajri]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18579</uri>
			</author>
			<updated>2013-10-04T03:12:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18028#p18028</id>
		</entry>
</feed>
