<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Add custom fields into item]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4343&amp;type=atom" />
	<updated>2017-10-06T17:41:50Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4343</id>
		<entry>
			<title type="html"><![CDATA[Re: Add custom fields into item]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28889#p28889" />
			<content type="html"><![CDATA[<p>@apmuthu.<br />Thanks.. all clear now.</p>]]></content>
			<author>
				<name><![CDATA[Alaa]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20274</uri>
			</author>
			<updated>2017-10-06T17:41:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28889#p28889</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add custom fields into item]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28880#p28880" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-06T16:50:44Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28880#p28880</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add custom fields into item]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28865#p28865" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alaa]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20274</uri>
			</author>
			<updated>2017-10-05T16:52:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28865#p28865</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add custom fields into item]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28864#p28864" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[cristiart]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17592</uri>
			</author>
			<updated>2017-10-05T14:26:15Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28864#p28864</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add custom fields into item]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28862#p28862" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-05T13:51:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28862#p28862</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add custom fields into item]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28846#p28846" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alaa]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20274</uri>
			</author>
			<updated>2017-10-05T06:39:44Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28846#p28846</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add custom fields into item]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28844#p28844" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[cristiart]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17592</uri>
			</author>
			<updated>2017-10-04T21:03:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28844#p28844</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add custom fields into item]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28843#p28843" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[cristiart]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17592</uri>
			</author>
			<updated>2017-10-04T21:01:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28843#p28843</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add custom fields into item]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28841#p28841" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Alaa]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20274</uri>
			</author>
			<updated>2017-10-04T18:54:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28841#p28841</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add custom fields into item]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17760#p17760" />
			<content type="html"><![CDATA[<p>Wouldn&#039;t you want to share how you did it?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-09-12T12:16:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17760#p17760</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add custom fields into item]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17701#p17701" />
			<content type="html"><![CDATA[<p>Successfully added the extra fields today.&nbsp; Thank you for all the help.</p>]]></content>
			<author>
				<name><![CDATA[johnyu2012]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18402</uri>
			</author>
			<updated>2013-09-07T08:54:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17701#p17701</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add custom fields into item]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17682#p17682" />
			<content type="html"><![CDATA[<p>Thank you for the clearance.</p>]]></content>
			<author>
				<name><![CDATA[johnyu2012]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18402</uri>
			</author>
			<updated>2013-09-06T07:51:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17682#p17682</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add custom fields into item]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17679#p17679" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-09-06T06:55:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17679#p17679</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add custom fields into item]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17677#p17677" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[johnyu2012]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18402</uri>
			</author>
			<updated>2013-09-06T06:47:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17677#p17677</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add custom fields into item]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=17665#p17665" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-09-06T05:32:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=17665#p17665</id>
		</entry>
</feed>
