<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — stock_id and item_code relationships]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=5332</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5332&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in stock_id and item_code relationships.]]></description>
		<lastBuildDate>Sun, 23 Nov 2014 13:05:33 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[stock_id and item_code relationships]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=21553#p21553</link>
			<description><![CDATA[<p>Updated the <a href="https://frontaccounting.com/fawiki/index.php?n=Devel.ERDiagram23">Wiki</a> with the <strong>stock_id</strong> and <strong>item_code</strong> table relationships.</p><p><span class="bbu">Item Coding:</span><br /></p><ul><li><p>Any combination of numbers and letter is fine as long as it is in the Item Short Label field (item_code / stock_id)</p></li><li><p>The table <strong>item_codes</strong> is used to store <em><span class="bbu">normal</span></em> items <strong>(stock_id</strong> = <strong>item_code</strong>)</p></li><li><p>It is also used to store<em> <span class="bbu">foreign items</span></em> (<strong>stock_id</strong> need not be the same as<strong> item_code</strong>), a flag for<strong> is_foreign</strong> is set</p></li><li><p>In any case, the <strong>id</strong> field should be unique and will be an auto generated<strong> unsigned integer value</strong></p></li><li><p>The combination of <strong>stock_id</strong> and <strong>item_code</strong> should be unique</p></li><li><p><strong>item_code</strong> and <strong>stock_id</strong> are VARCHAR(20)</p></li><li><p>Vendor and PO searches are by <strong>item_code</strong> and warehouse lookups use <strong>stock_id</strong></p></li><li><p>Hence &quot;<strong><em>stock_id&quot;</em></strong> is &quot;<em><strong>our</strong></em>&quot; inventory code and &quot;<em><span class="bbu"><strong>item_code&quot;</strong></span></em> is for &quot;<strong><em>vendor/account</em></strong>&quot; based reference.</p></li><li><p>All bought out items come into <strong>foreign item</strong>s type with their own UPC/EAN/ISBN type numbering</p></li><li><p>All items must first be entered as Normal Items and then assign them as foreign items if needed.</p></li><li><p><strong>Foreign Item&#039;</strong>s data cannot be entered if it does not exist as a normal item in the table.</p></li><li><p>Apart from the <strong>item_codes</strong> table, the<strong> item_code</strong> field is used in Goods Receipt Notes (<strong>grn_items</strong>) and in the <strong>purch_order_details</strong> tables.</p></li><li><p>Hence <strong>item_code</strong> is limited to the accounting side. Definitely your vendors are not going to understand your own item references (<strong>stock_id</strong>). Hence you need to use their reference numbers (<strong>item_code</strong>) when interacting with them. Although your <strong>stock_id</strong> referencing may be similar to those from your vendors, yours may/can have some prefixed characters to denote the vendor you are referring to, to alleviate the condition when the same part number straddles across vendors possibly denoting even eniterly different items.</p></li><li><p>Please note that there is no reference to any <strong>stock_id</strong> where <strong>item_code</strong> is used except in the<strong> item_codes</strong> lookup table.</p></li></ul>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 23 Nov 2014 13:05:33 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=21553#p21553</guid>
		</item>
	</channel>
</rss>
