<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Modify ITEM CODE???]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7232</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7232&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Modify ITEM CODE???.]]></description>
		<lastBuildDate>Sun, 07 Jan 2018 15:53:28 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30440#p30440</link>
			<description><![CDATA[<p><a href="https://github.com/FrontAccountingERP/FA/blob/master/reporting/rep107.php#L146">Line 146</a> in <strong>reporting/rep107.php</strong> calls the function <strong>get_customer_trans_details()</strong> defined at the top of <strong>includes/db/cust_trans_details_db.inc</strong>. In the said function definition, change <a href="https://github.com/FrontAccountingERP/FA/blob/master/sales/includes/db/cust_trans_details_db.inc#L21">line 21</a>:<br /></p><div class="codebox"><pre><code>        line.description As StockDescription,</code></pre></div><p>to be:<br /></p><div class="codebox"><pre><code>        line.description AS StockDescription, item.long_description AS FullDescription,</code></pre></div><p>and now change the <a href="https://github.com/FrontAccountingERP/FA/blob/master/reporting/rep107.php#L166">line 166</a> in <strong>reporting/rep107.php</strong>:<br /></p><div class="codebox"><pre><code>                $rep-&gt;TextColLines($c++, $c, $myrow2[&#039;StockDescription&#039;], -2);</code></pre></div><p>to be:<br />[</p><div class="codebox"><pre><code>                $rep-&gt;TextColLines($c++, $c, (($myrow2[&#039;FullDescription&#039;] != &#039;&#039;) ? $myrow2[&#039;FullDescription&#039;] : $myrow2[&#039;StockDescription&#039;]), -2);</code></pre></div><p>The field <strong>long_description</strong> may be available in multiple tables denoting other contexts. The existing <strong>StockDescription</strong> is retained as a fallback.</p><p><strong><span class="bbu">Caveat:</span></strong> Note that as <strong>FullDescription</strong> is taken from the <strong>stock_master</strong> table&#039;s <strong>long_description</strong> field, it may not be consistently available especially if changed or deleted in it later, whereas, the <strong>StockDescription</strong> will be available even without it from the <strong>stock_master</strong> table. It may be prudent to use both when the <strong>FullDescription</strong> is available.</p><p>@joe: would you like to commit the first code change in <strong>cust_trans_details_db.inc</strong> making the <strong>long_description</strong> for those who want it as well?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 07 Jan 2018 15:53:28 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30440#p30440</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30439#p30439</link>
			<description><![CDATA[<p>I as well want the &#039;long_description&#039; on the invoice but I can&#039;t find it in the tables? inventory/manage/items.php says its called &#039;long_decription&#039; I tried to replace </p><div class="codebox"><pre><code>$rep-&gt;TextColLines($c++, $c, $myrow2[&#039;StockDescription&#039;], -2);
to:
$rep-&gt;TextColLines($c++, $c, $myrow2[&#039;long_description&#039;], -2);</code></pre></div><p>in /reporting/rep107.php but I get a blank spot on the invoice so, when I checked the DB I couldn&#039;t find it in the item_codes table <br />Where is it held?&nbsp; Am I totally wrong?</p>]]></description>
			<author><![CDATA[null@example.com (trafficpest)]]></author>
			<pubDate>Sun, 07 Jan 2018 11:07:49 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30439#p30439</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30370#p30370</link>
			<description><![CDATA[<p>https://frontaccounting.com/fawiki/index.php?n=Help.ReportsAndAnalysis</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 03 Jan 2018 02:29:52 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30370#p30370</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30364#p30364</link>
			<description><![CDATA[<p>Have you tried the wiki? Before asking a question in the forum its always best to read the wiki first</p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Tue, 02 Jan 2018 16:55:49 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30364#p30364</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30359#p30359</link>
			<description><![CDATA[<p>Where can I get the list/menu of repXXX.php reports? (I mean which number report number is for what report?)</p>]]></description>
			<author><![CDATA[null@example.com (abuhafss)]]></author>
			<pubDate>Tue, 02 Jan 2018 14:55:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30359#p30359</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30356#p30356</link>
			<description><![CDATA[<p>The same item (stock_id) may be referred to as different items by different suppliers.<br />Suppress the item code display in the reports (invoices) by editing out the line items in the appropriate reports (reporting/repXXX.php)</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 02 Jan 2018 13:52:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30356#p30356</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30352#p30352</link>
			<description><![CDATA[<div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>Is it that you want to change the item itself in say an invoice or sales order? Editing them are available in FA.</p></blockquote></div><p>Actually my requirement is to show only the Item name and its Description on the Invoices, not the item code.</p><div class="quotebox"><blockquote><p>The item_code like the stock_id are identifying keys in the tables and foreign keys in others like the transaction tables.</p></blockquote></div><p>I had guessed the same. But instead the identifying key of the ITEMS table should have been used, as normal practice.</p><div class="quotebox"><blockquote><p>Only the relations are set in the sql command in MySQL.</p></blockquote></div><p>Yeah, this and PHP are the main issues for me, unfortunately.<br />I am trying to acquaint myself with SQL commands from online tutorials but php is time consuming.</p>]]></description>
			<author><![CDATA[null@example.com (abuhafss)]]></author>
			<pubDate>Tue, 02 Jan 2018 05:35:50 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30352#p30352</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30349#p30349</link>
			<description><![CDATA[<p>Is it that you want to change the item itself in say an invoice or sales order? Editing them are available in FA.</p><p>After you have made transactions using one item code, you cannot change the item code in the stock_master, but you can change it&#039;s name description to suit the correct one. You can also make a new item code for another item and then edit the old transactions accordingly. The item_code like the stock_id are identifying keys in the tables and foreign keys in others like the transaction tables.</p><p>MySQL and dBASE III / FoxPro are the same as far as data storage visibility are concerned. Only the relations are set in the sql command in MySQL. The relations are set as separate statements in dBASE III / FoxPro in the operational area.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 01 Jan 2018 14:38:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30349#p30349</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30347#p30347</link>
			<description><![CDATA[<p>I am experienced programmer of dBASE III Plus and FoxPro but no experience of SQL.</p><p>I am sorry, but it is not understandable how the program can be affected with user input data. <img src="https://frontaccounting.com/punbb/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p><p>If the user inputs wrong item code, and then record some transactions. Later he notices that he had done some mistake, how would he make the correction.</p><p>Creating a new item and making the old item inactive is not appropriate solution. Old transactions cannot be linked with the new item!</p>]]></description>
			<author><![CDATA[null@example.com (abuhafss)]]></author>
			<pubDate>Mon, 01 Jan 2018 09:23:51 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30347#p30347</guid>
		</item>
		<item>
			<title><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30345#p30345</link>
			<description><![CDATA[<p>With the help of item code. everything programmed. So its not good to change. If you wish to change, you have to do it manually with mysql queries.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Mon, 01 Jan 2018 07:57:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30345#p30345</guid>
		</item>
		<item>
			<title><![CDATA[Modify ITEM CODE???]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30344#p30344</link>
			<description><![CDATA[<p>Hi</p><p>Is it possible to enable editing of the ITEM CODE?</p>]]></description>
			<author><![CDATA[null@example.com (abuhafss)]]></author>
			<pubDate>Sun, 31 Dec 2017 22:09:48 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30344#p30344</guid>
		</item>
	</channel>
</rss>
