<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Cash account cannot be $0?]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4077&amp;type=atom" />
	<updated>2013-05-16T10:40:23Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4077</id>
		<entry>
			<title type="html"><![CDATA[Re: Cash account cannot be $0?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16672#p16672" />
			<content type="html"><![CDATA[<p>@twitty1437<br />Sure, as usually fix will be included in next release.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2013-05-16T10:40:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16672#p16672</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cash account cannot be $0?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16626#p16626" />
			<content type="html"><![CDATA[<p>Still getting used to PHP and FA&#039;s setup...</p>]]></content>
			<author>
				<name><![CDATA[BrianKuehn]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=7224</uri>
			</author>
			<updated>2013-05-10T09:22:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16626#p16626</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cash account cannot be $0?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16625#p16625" />
			<content type="html"><![CDATA[<p>Changing the line works.</p><p>Thanks.</p><p>But the same thing needs to be changed for &quot;Payment entry&quot; as well&nbsp; so that paying the exact same amount as the Cash Account has is possible.</p><p>Will this be fix in the next release?</p>]]></content>
			<author>
				<name><![CDATA[twitty1437]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=14470</uri>
			</author>
			<updated>2013-05-10T09:16:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16625#p16625</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cash account cannot be $0?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16621#p16621" />
			<content type="html"><![CDATA[<p>@BrianKuehn<br />Using &lt;=&nbsp; would just raise the error when amount is equal to limit.</p><p>Seems this is rounding error, try change the line to:<br /></p><div class="codebox"><pre><code>if ($limit != null &amp;&amp; floatcmp($limit,$amnt_tr)&lt;0)</code></pre></div><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2013-05-10T06:45:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16621#p16621</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cash account cannot be $0?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16618#p16618" />
			<content type="html"><![CDATA[<p>Shouldn&#039;t $limit &lt;= $amnt_tr work? There shouldn&#039;t be a reason why a transfer can&#039;t be the same amount as the $limit</p><p>Plus it should be that you can&#039;t take out more than you have in your account (unless you have some type of credit maybe)</p><p>Brian</p>]]></content>
			<author>
				<name><![CDATA[BrianKuehn]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=7224</uri>
			</author>
			<updated>2013-05-10T05:12:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16618#p16618</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cash account cannot be $0?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16615#p16615" />
			<content type="html"><![CDATA[<p>It shouldn&#039;t be a rounding error because all the amount keyed in was in 2 decimal place.<br />And I have just changed the decimal place to 4, the amount i have is exactly 216.8500</p><p>If i transfer 1 cent less: 216.84, it&#039;s ok.</p><p>this is the code that i extracted from bank_transfer.php, not sure if it helps:</p><p>$limit = get_bank_account_limit($_POST[&#039;FromBankAccount&#039;], $_POST[&#039;DatePaid&#039;]);<br />&nbsp; &nbsp; if ($limit != null &amp;&amp; ($limit &lt; $amnt_tr))<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; display_error(sprintf(_(&quot;The total bank amount exceeds allowed limit (%s) for source account.&quot;), price_format($limit)));<br />&nbsp; &nbsp; &nbsp; &nbsp; set_focus(&#039;amount&#039;);<br />&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />&nbsp; &nbsp; }</p>]]></content>
			<author>
				<name><![CDATA[twitty1437]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=14470</uri>
			</author>
			<updated>2013-05-09T23:50:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16615#p16615</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cash account cannot be $0?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16614#p16614" />
			<content type="html"><![CDATA[<p>It&#039;s probably a rounding error (so 216.85- 216.85 is not exactly equal to zero).<br />add $1 or 1cent&nbsp; in the cash account (in FA and physically ) it see if it solve the problem.</p><p>I know it&#039;s not ideal, but that&#039;s the only thing you can do at the moment.</p><p>/Elax</p>]]></content>
			<author>
				<name><![CDATA[elax]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=6206</uri>
			</author>
			<updated>2013-05-09T15:39:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16614#p16614</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Cash account cannot be $0?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16613#p16613" />
			<content type="html"><![CDATA[<p>Someone please help??</p>]]></content>
			<author>
				<name><![CDATA[twitty1437]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=14470</uri>
			</author>
			<updated>2013-05-09T15:11:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16613#p16613</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Cash account cannot be $0?]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16600#p16600" />
			<content type="html"><![CDATA[<p>I have $216.85 in the cash account and i want to transfer all the amount into a saving account. I did it at &quot;Bank Account Transfers&quot;</p><p>I get the following error message: <br />The total bank amount exceeds allowed limit (216.85) for source account.</p><br /><p>What happened?</p><p>How can i do the transfer correctly?</p>]]></content>
			<author>
				<name><![CDATA[twitty1437]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=14470</uri>
			</author>
			<updated>2013-05-08T15:38:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16600#p16600</id>
		</entry>
</feed>
