<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Add Transaction type]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6510&amp;type=atom" />
	<updated>2016-10-15T17:18:03Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6510</id>
		<entry>
			<title type="html"><![CDATA[Re: Add Transaction type]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26606#p26606" />
			<content type="html"><![CDATA[<p>@kvvaradha Agree, this is good to have user friendly names also it helps for references to trace transactions. By going more deep I see more functions related to them.</p><p>I should edit FA core code because there are built in functions like payment_person_name() which required modification of my types. <br />But now I have faced with new issue my code is in module and types.inc or gl_trans view files are not call it within FA :S</p><p>So will modify FA and keep logs, no other way to go <img src="https://frontaccounting.com/punbb/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></content>
			<author>
				<name><![CDATA[trecords]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19435</uri>
			</author>
			<updated>2016-10-15T17:18:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26606#p26606</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add Transaction type]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26597#p26597" />
			<content type="html"><![CDATA[<p>The transaction&nbsp; types are a type of transactions we are recording in our FA database.&nbsp; Just remember.&nbsp; We are saving general ledgers in a same table.&nbsp; And we can differentiate&nbsp; the transaction and can be viewed similar transactions from it.&nbsp; Say for example for journal entries are type 0.&nbsp; This can be defined as ST_JOURNAL. It&#039;s easy understanding while you coding.&nbsp; You always need to check the type no.&nbsp; If you use the 0 instead of the transaction type constant.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2016-10-14T02:25:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26597#p26597</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add Transaction type]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26596#p26596" />
			<content type="html"><![CDATA[<p>ST_CUSTPAYMENT &amp;&amp; ST_CUSTCREDIT will not help as I have difference table for clients and contracts with them. I need to process 3 type of payment per company or directly per client.</p><p>There are some usefull functions within FA like submenu_option, submenu_view, submenu_print where as they are but only for internal predefined types.</p><p>Anyway I have decided to copy existing similar type related functions into module and modify them with new types/names.</p><p>Would be better to have more generalized framework which will help to develop functions more easy and faster.</p>]]></content>
			<author>
				<name><![CDATA[trecords]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19435</uri>
			</author>
			<updated>2016-10-13T18:07:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26596#p26596</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add Transaction type]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26573#p26573" />
			<content type="html"><![CDATA[<p>Which version of FA are you referring to - FA 2.3.25+ or 2.4RC1?</p><p>In FA 2.4RC1, the following new defines have been added:<br /></p><div class="codebox"><pre><code>//
//    Depreciation period types
//
define(&#039;FA_MONTHLY&#039;, 0);
define(&#039;FA_YEARLY&#039;, 1);
...
//    Manufacturing types
//

define(&#039;WO_MATERIALS&#039;, 2);
...
// Tax calculation algorithms used in als and purchase (depends on supplier&#039;s invoicing software)

define(&#039;TCA_TOTALS&#039;, 1); // taxes are calculated from respective net totals for all lines
define(&#039;TCA_LINES&#039;, 2); // taxes calculated for every line, then summed
//
//    Bank account owner types
//
define(&#039;BO_UNKNOWN&#039;, 0);
define(&#039;BO_COMPANY&#039;, 1);
define(&#039;BO_CUSTBRANCH&#039;, 2);
define(&#039;BO_SUPPLIER&#039;, 3);
...
// tax register type
define(&#039;TR_OUTPUT&#039;, 0); // sales
define(&#039;TR_INPUT&#039;, 1);    // purchase
...</code></pre></div><p>Quite a few settings in the config.php have been migrated to the <strong>sys_prefs</strong> table on a per company basis.</p><p>You can possibly check the <strong>(ST_CUSTPAYMENT &amp;&amp; ST_CUSTCREDIT)</strong>&nbsp; in your constructs without touching the <strong>include/types.inc</strong> file.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-10-11T03:24:39Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26573#p26573</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Add Transaction type]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=26561#p26561" />
			<content type="html"><![CDATA[<p>Hi,</p><p>I need to add transaction type something like ST_CREDITPAYMENT and define custom actions like delete_comments, void_bank_trans, void_gl_trans. I will add this into types.inc There are some more functions relates to this like systype_db and without hook.</p><p>But what is the reason to create these transaction types? I want to understand the purpose for this. And also why do these types are not database managed but in file.</p><p>Regards.</p>]]></content>
			<author>
				<name><![CDATA[trecords]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19435</uri>
			</author>
			<updated>2016-10-08T15:39:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=26561#p26561</id>
		</entry>
</feed>
