<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Wrong error text on foreign item entry]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5336&amp;type=atom" />
	<updated>2014-11-25T19:01:23Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5336</id>
		<entry>
			<title type="html"><![CDATA[Wrong error text on foreign item entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21561#p21561" />
			<content type="html"><![CDATA[<p>When we enter a Foreign Item Code without a quantity, the wrong error text is displayed as price instead of quantity - the code fragment that needs to be corrected is in inventory/manage/item_codes.php lines 38 to 43:<br /></p><div class="codebox"><pre><code>       elseif (!input_num(&#039;quantity&#039;))
       {
          $input_error = 1;
          display_error( _(&quot;The price entered was not positive number.&quot;));
        set_focus(&#039;quantity&#039;);
       }</code></pre></div><p>which should be:<br /></p><div class="codebox"><pre><code>       elseif (!input_num(&#039;quantity&#039;))
       {
          $input_error = 1;
          display_error( _(&quot;The quantity entered was not positive number.&quot;));
        set_focus(&#039;quantity&#039;);
       }</code></pre></div><p>This should also allow if a zero (0) is entered as the quantity.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-11-25T19:01:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21561#p21561</id>
		</entry>
</feed>
