<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Items vs. Foreign Item Codes]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5124&amp;type=atom" />
	<updated>2014-09-02T05:20:34Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5124</id>
		<entry>
			<title type="html"><![CDATA[Re: Items vs. Foreign Item Codes]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20624#p20624" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-09-02T05:20:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20624#p20624</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Items vs. Foreign Item Codes]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20617#p20617" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-09-01T07:14:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20617#p20617</id>
		</entry>
</feed>
