<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Significance of field sys_types.type_no]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=5348</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5348&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Significance of field sys_types.type_no.]]></description>
		<lastBuildDate>Fri, 28 Nov 2014 15:39:58 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Significance of field sys_types.type_no]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=21591#p21591</link>
			<description><![CDATA[<p>Hence is it safe to ignore the <strong>type_no</strong> field in the <strong>#_sys_prefs</strong> table and assume the <strong>trans_no</strong> / <strong>type_no</strong> fields in invoices and other tables are independent of the value in the <strong>type_no</strong> field in the <strong>#_sys_prefs</strong> table?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 28 Nov 2014 15:39:58 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=21591#p21591</guid>
		</item>
		<item>
			<title><![CDATA[Re: Significance of field sys_types.type_no]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=21589#p21589</link>
			<description><![CDATA[<p>The type_no and trans_no fields both refer to the same transaction number. The reference numbers is a better way to display the outgoing document numbers. These reference numbers can be set forward in the form setup. You can combine letters and numbers here. The invoices etc do still have the trans_no fields for secondary keys in other tables.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Fri, 28 Nov 2014 15:30:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=21589#p21589</guid>
		</item>
		<item>
			<title><![CDATA[Significance of field sys_types.type_no]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=21586#p21586</link>
			<description><![CDATA[<p>The table #_sys_types has 3 fields, viz., type_id, type_no, next_reference.</p><p>The first one - <strong>type_id</strong> - serves to be the input form field suffix for the form textbox input element&#039;s name attribute in <strong>Setup</strong> =&gt; <strong>Forms Setup</strong>.</p><p>The last one - <strong>next_reference</strong> - serves to be the next ID number available for a new record in the appropriately related table.</p><p>All references in sql statements in FA refer to only these fields in the WHERE clauses. </p><p>In <strong>includes/db/references_db.inc</strong>:</p><p>function save_next_reference($type, $reference) =&gt; Updates the next_reference field<br />function get_next_reference($type) =&gt; Obtains the next_reference field</p><p>In <strong>includes/systypes.inc</strong>:<br />function get_systypes() =&gt; &quot;SELECT * FROM &quot;.TB_PREF.&quot;sys_types&quot;;</p><p>Where does the middle field &quot;<strong>type_no</strong>&quot; get used in?</p><p>The function <strong>get_systypes()</strong> gets called in the file <strong>admin/forms_setup.php</strong> only and that too once for displaying the form and then for saving the form values.</p><p>There appears to be nowhere that the field <strong>type_no</strong> is used.</p><p>Does the <strong>sys_prefs.type_no</strong> have anything to do with the <strong>type_no</strong> and <strong>trans_no</strong> in various related tables?</p><p><strong>case 31</strong> refers to the non existent &quot;<strong>service_orders</strong>&quot; table in <strong>function get_systype_db_info()</strong> in <strong>includes/systypes.inc</strong>.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 28 Nov 2014 13:35:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=21586#p21586</guid>
		</item>
	</channel>
</rss>
