<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Modify ITEM CODE???]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7232&amp;type=atom" />
	<updated>2018-01-07T15:53:28Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7232</id>
		<entry>
			<title type="html"><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30440#p30440" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-01-07T15:53:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30440#p30440</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30439#p30439" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[trafficpest]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42061</uri>
			</author>
			<updated>2018-01-07T11:07:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30439#p30439</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30370#p30370" />
			<content type="html"><![CDATA[<p>https://frontaccounting.com/fawiki/index.php?n=Help.ReportsAndAnalysis</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-01-03T02:29:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30370#p30370</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30364#p30364" />
			<content type="html"><![CDATA[<p>Have you tried the wiki? Before asking a question in the forum its always best to read the wiki first</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2018-01-02T16:55:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30364#p30364</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30359#p30359" />
			<content type="html"><![CDATA[<p>Where can I get the list/menu of repXXX.php reports? (I mean which number report number is for what report?)</p>]]></content>
			<author>
				<name><![CDATA[abuhafss]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42049</uri>
			</author>
			<updated>2018-01-02T14:55:47Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30359#p30359</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30356#p30356" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-01-02T13:52:40Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30356#p30356</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30352#p30352" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[abuhafss]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42049</uri>
			</author>
			<updated>2018-01-02T05:35:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30352#p30352</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30349#p30349" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-01-01T14:38:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30349#p30349</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30347#p30347" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[abuhafss]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42049</uri>
			</author>
			<updated>2018-01-01T09:23:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30347#p30347</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Modify ITEM CODE???]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30345#p30345" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2018-01-01T07:57:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30345#p30345</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Modify ITEM CODE???]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30344#p30344" />
			<content type="html"><![CDATA[<p>Hi</p><p>Is it possible to enable editing of the ITEM CODE?</p>]]></content>
			<author>
				<name><![CDATA[abuhafss]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42049</uri>
			</author>
			<updated>2017-12-31T22:09:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30344#p30344</id>
		</entry>
</feed>
