<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Displaying the Sales group ID; sales/manage/sales_groups.php]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=1406</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1406&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Displaying the Sales group ID; sales/manage/sales_groups.php.]]></description>
		<lastBuildDate>Sat, 26 Jun 2010 16:52:20 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Displaying the Sales group ID; sales/manage/sales_groups.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6315#p6315</link>
			<description><![CDATA[<p>Great !</p><p>Thanks Joe</p><p>Gaston</p>]]></description>
			<author><![CDATA[null@example.com (huotg01)]]></author>
			<pubDate>Sat, 26 Jun 2010 16:52:20 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6315#p6315</guid>
		</item>
		<item>
			<title><![CDATA[Re: Displaying the Sales group ID; sales/manage/sales_groups.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6314#p6314</link>
			<description><![CDATA[<p>Hello Gaston,</p><p>This change is made in 2.3. The id is presented before the description.<br />When editing an existing, the id is also presented read-only.</p><p>Thanks for your proposal.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sat, 26 Jun 2010 16:21:52 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6314#p6314</guid>
		</item>
		<item>
			<title><![CDATA[Displaying the Sales group ID; sales/manage/sales_groups.php]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6312#p6312</link>
			<description><![CDATA[<p>Hello</p><p>Sales groups don&#039;t have Id, or short name. There is just a description.<br />Would it be possible to also display the table Id ? That would help to point out a specific record, because the description can change.<br />I have modified the module to load customers, adding many fields including the sales group and I wanted the ID of the sales group instead of the description.</p><p>In sales/manage/sales_groups.php,<br />one line to change:</p><p>&nbsp; &nbsp; &nbsp; &nbsp; $th = array(_(&quot;Group Name&quot;),&quot;&quot;, &quot;&quot;, &quot;id&quot;);</p><p>and one line to add:</p><p> &nbsp; &nbsp; label_cell($myrow[&quot;id&quot;]);</p><p>The full code is:</p><div class="codebox"><pre><code>//-------------------------------------------------------------------------------------------------

$sql = &quot;SELECT * FROM &quot;.TB_PREF.&quot;groups&quot;;
if (!check_value(&#039;show_inactive&#039;)) $sql .= &quot; WHERE !inactive&quot;;
$sql .= &quot; ORDER BY description&quot;;
$result = db_query($sql,&quot;could not get groups&quot;);

start_form();
start_table(&quot;$table_style width=30%&quot;);
$th = array(_(&quot;Group Name&quot;),&quot;&quot;, &quot;&quot;, &quot;id&quot;);
inactive_control_column($th);

table_header($th);
$k = 0; 

while ($myrow = db_fetch($result)) 
{
    
    alt_table_row_color($k);
        
    label_cell($myrow[&quot;description&quot;]);
    inactive_control_cell($myrow[&quot;id&quot;], $myrow[&quot;inactive&quot;], &#039;groups&#039;, &#039;id&#039;);
     edit_button_cell(&quot;Edit&quot;.$myrow[&quot;id&quot;], _(&quot;Edit&quot;));
     delete_button_cell(&quot;Delete&quot;.$myrow[&quot;id&quot;], _(&quot;Delete&quot;));
     label_cell($myrow[&quot;id&quot;]);
    end_row();
}

inactive_control_row($th);
end_table();

echo &#039;&lt;br&gt;&#039;;

//-------------------------------------------------------------------------------------------------</code></pre></div><p>Gaston</p>]]></description>
			<author><![CDATA[null@example.com (huotg01)]]></author>
			<pubDate>Sat, 26 Jun 2010 16:05:03 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6312#p6312</guid>
		</item>
	</channel>
</rss>
