<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Add custom fields into item]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=4343</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4343&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Add custom fields into item.]]></description>
		<lastBuildDate>Fri, 06 Oct 2017 17:41:50 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Add custom fields into item]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28889#p28889</link>
			<description><![CDATA[<p>@apmuthu.<br />Thanks.. all clear now.</p>]]></description>
			<author><![CDATA[null@example.com (Alaa)]]></author>
			<pubDate>Fri, 06 Oct 2017 17:41:50 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28889#p28889</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add custom fields into item]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28880#p28880</link>
			<description><![CDATA[<p>You need to create a new item for each combination of attributes. Otherwise, there is no place other than in the description to place your attribute specifics.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 06 Oct 2017 16:50:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28880#p28880</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add custom fields into item]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28865#p28865</link>
			<description><![CDATA[<p>@apmuthu<br />the items are purchased..<br />So how do i add item attributes so that at item creation i have multible text boxes to add the needed data for each item.</p><p>@cristiart<br />i am trying to add special field for each item.. i dont want to add color and width in the describtion.<br />maybe we could use item type and have special set of fields for each item type.</p>]]></description>
			<author><![CDATA[null@example.com (Alaa)]]></author>
			<pubDate>Thu, 05 Oct 2017 16:52:32 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28865#p28865</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add custom fields into item]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28864#p28864</link>
			<description><![CDATA[<p>the workaround in your case might be: when you add new item, make sure &quot;Editable description:&quot; is checked. Than you can alter each item description as needed.<br />Otherwise you&#039;ll have to do what apmuthu said above.</p>]]></description>
			<author><![CDATA[null@example.com (cristiart)]]></author>
			<pubDate>Thu, 05 Oct 2017 14:26:15 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28864#p28864</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add custom fields into item]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28862#p28862</link>
			<description><![CDATA[<p>These are product attributes. You can make one item for each combination of colour and width. That way you will be able to manage it&#039;s stock individually too.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 05 Oct 2017 13:51:30 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28862#p28862</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add custom fields into item]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28846#p28846</link>
			<description><![CDATA[<p>this sounds good.. but i dont know if it works in my case...<br />what i want is a field when i add a new product.. where i can add color and width to each product i enter.. so i guess altering db is a must.</p>]]></description>
			<author><![CDATA[null@example.com (Alaa)]]></author>
			<pubDate>Thu, 05 Oct 2017 06:39:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28846#p28846</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add custom fields into item]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28844#p28844</link>
			<description><![CDATA[<p>for better page view, you also might want to change line 52 into this:<br />&nbsp; $cols = array(4, 60, 300, 375, 400, 450, 490, 525);</p>]]></description>
			<author><![CDATA[null@example.com (cristiart)]]></author>
			<pubDate>Wed, 04 Oct 2017 21:03:58 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28844#p28844</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add custom fields into item]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28843#p28843</link>
			<description><![CDATA[<p>here&#039;s how I did something similar without altering sql<br />I created 2 new items - item# none -and- item#003 (both editable)<br />the result you can see here: https://ibb.co/nNFpab</p><p>Then in rep109.php line 122 I replaced with:<br />if($myrow2[&#039;stk_code&#039;] !=&quot;none&quot; &amp;&amp; $myrow2[&#039;stk_code&#039;] !=&quot;003&quot; ){<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rep-&gt;TextCol(0, 1,&nbsp; &nbsp; $myrow2[&#039;stk_code&#039;], -2);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $oldrow = $rep-&gt;row; }</p><p>the result you can see here: https://ibb.co/nNFpab</p><p>so by adding item#&quot;none&quot; in your sales order, you can have as much info as you like without PDF file showing item# in file.</p>]]></description>
			<author><![CDATA[null@example.com (cristiart)]]></author>
			<pubDate>Wed, 04 Oct 2017 21:01:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28843#p28843</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add custom fields into item]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28841#p28841</link>
			<description><![CDATA[<p>would you please share the code ?? <br />i need to add Color , height &amp; width to the item..<br />so is there some tutorial to do it? or some extension?</p><p>Regards.</p>]]></description>
			<author><![CDATA[null@example.com (Alaa)]]></author>
			<pubDate>Wed, 04 Oct 2017 18:54:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28841#p28841</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add custom fields into item]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=17760#p17760</link>
			<description><![CDATA[<p>Wouldn&#039;t you want to share how you did it?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 12 Sep 2013 12:16:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=17760#p17760</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add custom fields into item]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=17701#p17701</link>
			<description><![CDATA[<p>Successfully added the extra fields today.&nbsp; Thank you for all the help.</p>]]></description>
			<author><![CDATA[null@example.com (johnyu2012)]]></author>
			<pubDate>Sat, 07 Sep 2013 08:54:58 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=17701#p17701</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add custom fields into item]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=17682#p17682</link>
			<description><![CDATA[<p>Thank you for the clearance.</p>]]></description>
			<author><![CDATA[null@example.com (johnyu2012)]]></author>
			<pubDate>Fri, 06 Sep 2013 07:51:34 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=17682#p17682</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add custom fields into item]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=17679#p17679</link>
			<description><![CDATA[<p>FA v2.3.x does not use the Foriegn Keys as yet (aka CASCADE ON DELETE, ON UPDATE, etc). It will be implemented only in FA v2.4. In PHP, the SQL statement will manually connect the tables using the JOIN syntax only. The keys will be there and the indexes will be available to speed up the execution.</p><p>The ERD is to show what links to what but is used to understand and frame the SQLs only.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 06 Sep 2013 06:55:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=17679#p17679</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add custom fields into item]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=17677#p17677</link>
			<description><![CDATA[<p>If you don&#039;t use foreign key and references to link the table, how do you link all the tables with relationship?&nbsp; When I look at the Entity relationship diagram, it does have relationships between tables.</p>]]></description>
			<author><![CDATA[null@example.com (johnyu2012)]]></author>
			<pubDate>Fri, 06 Sep 2013 06:47:23 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=17677#p17677</guid>
		</item>
		<item>
			<title><![CDATA[Re: Add custom fields into item]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=17665#p17665</link>
			<description><![CDATA[<p>FA has an <strong>includes</strong> folder in each major functionality&#039;s folder (sales, reporting, etc) besides a common one in the webroot. Each <strong>db</strong> folder in the major functionality&#039;s folders are basically <strong>models</strong> in the MVC architecture where themes serve the <strong>views</strong>, the actions coming from the URL <strong>GET</strong> parameters and the ACLs from the session variables.</p><p>Using a trigger to make the extra fields get inserted when the primary table&#039;s insert succeeds is one way to avoid writing php code.</p><p>As for docs, what little I have culled out is placed in the Wiki which would benefit from better organization as I have been left on a limb quite often when searching for my own nuggets hidden there in not very intuitive key word search terms.</p><p>Where possible, I have cross referenced in the wiki pages, the forum posts that pertain to it but not vice-versa very much.</p><p>Foreign Keys and references are due in FA v2.4 only.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 06 Sep 2013 05:32:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=17665#p17665</guid>
		</item>
	</channel>
</rss>
