<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Adding Assets Classes fails]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8747&amp;type=atom" />
	<updated>2022-05-07T06:31:45Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8747</id>
		<entry>
			<title type="html"><![CDATA[Re: Adding Assets Classes fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41010#p41010" />
			<content type="html"><![CDATA[<p>Fixed and committed to stable repo.</p><p>A fixed file can be downloaded <a href="https://sourceforge.net/p/frontaccounting/git/ci/master/tree/fixed_assets/fixed_asset_classes.php">here</a>.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2022-05-07T06:31:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41010#p41010</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Adding Assets Classes fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40987#p40987" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>kvvaradha wrote:</cite><blockquote><p>Looks like the input_num function issue.</p></blockquote></div><p>@joe Update this on fixed_asset_classes.php</p><div class="codebox"><pre><code>$input_error = 0;
if(input_num(&#039;depreciation_rate&#039;) &gt; 100){
    display_error(_(&quot;The depreciation rate can&#039;t be greater than 100%&quot;));
    $input_error = 1;
}</code></pre></div><p>and also in the <strong>update_fixed_asset_class,add_fixed_asset_class</strong> last parameter change it to input_num from $_POST.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2022-05-05T11:19:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40987#p40987</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Adding Assets Classes fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40926#p40926" />
			<content type="html"><![CDATA[<p>Looks like the input_num function issue.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2022-04-25T01:13:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40926#p40926</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Adding Assets Classes fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40923#p40923" />
			<content type="html"><![CDATA[<p>I can confirm now the above<br />If under preferences the &quot;Decimal Separator&quot; is set to a comma, I cannot add a class<br />Changing the &quot;Decimal Separator&quot; to a point, I can add a class.</p><p>Looks like a bug to me.</p>]]></content>
			<author>
				<name><![CDATA[Zilvermeeuw]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17887</uri>
			</author>
			<updated>2022-04-24T08:25:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40923#p40923</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Adding Assets Classes fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37270#p37270" />
			<content type="html"><![CDATA[<p>You still may have a problem - the error warning states 20,0 not 20.0</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2020-04-16T19:14:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37270#p37270</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Adding Assets Classes fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37269#p37269" />
			<content type="html"><![CDATA[<p>No.<br />But..... When I open the preferences, click on &quot;update&quot; without changing something, it works.</p><p>Thanks for pointing me to the right direction!</p>]]></content>
			<author>
				<name><![CDATA[Zilvermeeuw]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17887</uri>
			</author>
			<updated>2020-04-16T18:07:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37269#p37269</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Adding Assets Classes fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37268#p37268" />
			<content type="html"><![CDATA[<p>Have you changed the character used for a decimal point?</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2020-04-16T16:52:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37268#p37268</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Adding Assets Classes fails]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37267#p37267" />
			<content type="html"><![CDATA[<p>I have a fresh install, logged in as &quot;System administrator&quot;. In &quot;Access Setup&quot; all the rows are marked.</p><p>If I add a &quot;Fixed Asset classes&quot; with:<br />Parent class: rr<br />Fixed asset clarr: tt<br />Description: fafasdf<br />Log description: dfsdfsjkljkjlfsdsf<br />Basic Depreciation Rate: 20</p><p>No class is created.<br />With &quot;$show_sql&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 1;&quot; and &quot;$go_debug&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 1;&quot; it gives: <br /></p><div class="codebox"><pre><code>DATABASE ERROR : The fixed asset class could not be added
error code : 1265
error message : Data truncated for column &#039;depreciation_rate&#039; at row 1
sql that failed was : INSERT INTO 0_stock_fa_class (fa_class_id, parent_id, description, long_description, depreciation_rate) VALUES (&#039;tt&#039;, &#039;rr&#039;, &#039;fafasdf&#039;, &#039;dfsdfsjkljkjlfsdsf&#039;, &#039;20,0&#039;)</code></pre></div><p>Note the quotes arond 20.0.<br />In the database (mariadb), the table &quot;0_stock_fa_class&quot;, row name &quot;depreciation_rate&quot; has type &quot;double&quot;. If I change this to &quot;text&quot; I can add an &quot;Assets class&quot;.</p><p>Is this a bug, or is there a CEBKAC?</p>]]></content>
			<author>
				<name><![CDATA[Zilvermeeuw]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17887</uri>
			</author>
			<updated>2020-04-16T14:25:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37267#p37267</id>
		</entry>
</feed>
