<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Items vs. Foreign Item Codes]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=5124</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5124&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Items vs. Foreign Item Codes.]]></description>
		<lastBuildDate>Tue, 02 Sep 2014 05:20:34 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Items vs. Foreign Item Codes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=20624#p20624</link>
			<description><![CDATA[<p>In <strong>Items and Inventory -&gt; Items</strong> the primary database entries (assuming company #2) are:</p><div class="codebox"><pre><code>insert  into `2_item_codes`(`id`,`item_code`,`stock_id`,`description`,`category_id`,`quantity`,`is_foreign`,`inactive`)
 values 
(1,&#039;TUNEV1&#039;,&#039;TUNEV1&#039;,&#039;A Tune a Day for Violin - Book 1&#039;,1,1,0,0);

insert  into `2_loc_stock`(`loc_code`,`stock_id`,`reorder_level`)
 values 
(&#039;DEF&#039;,&#039;TUNEV1&#039;,0);

insert  into `2_stock_master`(`stock_id`,`category_id`,`tax_type_id`,`description`,`long_description`,`units`,`mb_flag`,`sales_account`,`cogs_account`,`inventory_account`,`adjustment_account`,`assembly_account`,`dimension_id`,`dimension2_id`,`actual_cost`,`last_cost`,`material_cost`,`labour_cost`,`overhead_cost`,`inactive`,`no_sale`,`editable`)
 values 
(&#039;TUNEV1&#039;,1,2,&#039;A Tune a Day for Violin - Book 1&#039;,&#039;A Tune a Day for Violin - Book 1 by C. Paul Herfurth packed full of lessons, illustrations, fingering charts, daily practice records, test questions, and manuscript paper for homework.&#039;,&#039;each&#039;,&#039;B&#039;,&#039;4010&#039;,&#039;5010&#039;,&#039;1510&#039;,&#039;5040&#039;,&#039;1530&#039;,0,0,0,0,0,0,0,0,0,0);</code></pre></div><p>When the sales price gets entered:</p><div class="codebox"><pre><code>insert  into `2_prices`(`id`,`stock_id`,`sales_type_id`,`curr_abrev`,`price`)
 values 
(1,&#039;TUNEV1&#039;,1,&#039;SGD&#039;,12);</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 02 Sep 2014 05:20:34 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=20624#p20624</guid>
		</item>
		<item>
			<title><![CDATA[Items vs. Foreign Item Codes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=20617#p20617</link>
			<description><![CDATA[<p>In <strong>Items and Inventory -&gt; Items</strong> there is <em>no place to enter the open stock</em> of the Item and the <strong>item_code = stock_id</strong> and the hardcoded <strong>quantity = 1</strong> whilst <strong>is_foreign = 0</strong>.</p><p>In <strong>Items and Inventory -&gt; Foreign Item Codes</strong> there is a place to enter stock and the <strong>item_code</strong> can be blank or be set to the ISBN13 code (or EAN/UPC) whilst the <strong>stock_id</strong> can be non unique since the primary key is the <strong>id</strong> field and the <strong>is_foreign = 1</strong>.</p><p>Both these entries get into the same table <strong>#_items</strong> and are treated individually and both forms have the <strong>category</strong> field - so the same <strong>stock_id</strong> can belong to 2 different categories if they come from different forms above.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 01 Sep 2014 07:14:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=20617#p20617</guid>
		</item>
	</channel>
</rss>
