<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Can't Enter Supplier Invoice]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6880&amp;type=atom" />
	<updated>2018-11-14T04:33:58Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6880</id>
		<entry>
			<title type="html"><![CDATA[Re: Can't Enter Supplier Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=33251#p33251" />
			<content type="html"><![CDATA[<p>Now I can click the add button and the items will automatically be selected to enter the invoice.<br />But Quantity Received and Quantity Invoiced be zero. I force to click enter invoice button, but nothing to happens.</p><p>Please advice</p><br /><p><a href="https://drive.google.com/file/d/1_ytiN20U8caSBNQPRk3XYrBDbXvdZ-qc">Supplier Invoice 2.png</a></p>]]></content>
			<author>
				<name><![CDATA[hakim]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20165</uri>
			</author>
			<updated>2018-11-14T04:33:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=33251#p33251</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't Enter Supplier Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30384#p30384" />
			<content type="html"><![CDATA[<p>In the original code, if <strong>$_POST[&#039;order_price&#039;.$n] == 0</strong>, then a <em>divide by zero error</em> would still not occur as the second part is not evaluated at all. But the error stated in the first post here would occur.</p><p>In your code, what if a negative <em>order_price</em> got in along with a negative <em>ChgPrice</em>?</p><p>The &quot;!=0&quot; should be &quot;&gt;0&quot; in your code with a possible <em>abs()</em> for the LHS of the second check.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-01-03T15:50:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30384#p30384</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't Enter Supplier Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30381#p30381" />
			<content type="html"><![CDATA[<p>What is the presumption to include this way the zero price in this check???<br /></p><div class="codebox"><pre><code>if ($_POST[&#039;order_price&#039;.$n]==0 ||
                input_num(&#039;ChgPrice&#039;.$n)/$_POST[&#039;order_price&#039;.$n] &gt;
                (1 + ($margin/ 100)))</code></pre></div><p>Isn&#039;t it better like this<br /></p><div class="codebox"><pre><code>if ($_POST[&#039;order_price&#039;.$n] !=0 &amp;&amp;
                input_num(&#039;ChgPrice&#039;.$n)/$_POST[&#039;order_price&#039;.$n] &gt;
                (1 + ($margin/ 100)))</code></pre></div><p>The original way you are stuck if the order is with zero price...</p>]]></content>
			<author>
				<name><![CDATA[stefan]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20008</uri>
			</author>
			<updated>2018-01-03T13:05:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30381#p30381</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't Enter Supplier Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28340#p28340" />
			<content type="html"><![CDATA[<p>Clear all browser cache and try it.<br />That is the setting that should do it unless it is a scope / visibility issue.<br />@joe?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-08-07T14:00:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28340#p28340</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't Enter Supplier Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28336#p28336" />
			<content type="html"><![CDATA[<p>I have done according to the above steps, but I still can&#039;t make Supplier Invoice.<br />Now if I hit Enter Invoice, then nothing happen. Just move from the bottom to the top of the same page.</p>]]></content>
			<author>
				<name><![CDATA[hakim]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20165</uri>
			</author>
			<updated>2017-08-07T04:42:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28336#p28336</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't Enter Supplier Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28244#p28244" />
			<content type="html"><![CDATA[<p>If you want to turn off this warning, then in your <strong>config.php</strong> file, set the variable:<br /></p><div class="codebox"><pre><code>    $check_price_charged_vs_order_price = false;</code></pre></div><p>The <strong>function over_charge_allowance()</strong> (in the file <em>includes/prefs/sysprefs.inc</em>) returns the margin (default = 10%) using the per company variable <strong>po_over_charge</strong> in the <strong>sys_prefs</strong> table.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-07-24T10:43:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28244#p28244</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't Enter Supplier Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28240#p28240" />
			<content type="html"><![CDATA[<p>I use FA 2.4.1 version.</p><p><a href="https://drive.google.com/open?id=0BwcMoFjG8vYta3ZGQ2JORU1kak0">Supplier Invoice.png</a></p>]]></content>
			<author>
				<name><![CDATA[hakim]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20165</uri>
			</author>
			<updated>2017-07-24T09:45:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28240#p28240</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Can't Enter Supplier Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28224#p28224" />
			<content type="html"><![CDATA[<p>Which version of FA are you using - v2.3.x or v2.4.x?<br />What is your OS platform / MySQL / PHP for the server and version?<br />Which client browser and version are you using?</p><p>The said message emanates from Line 273 of <strong>purchasing/supplier_invoice.php</strong>.<br />If you want to brute force it then comment out the lines 266-279 in it.<br />Check the settings in your <strong>sys_prefs</strong> table / config settings for the real fix.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-07-21T16:39:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28224#p28224</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Can't Enter Supplier Invoice]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28216#p28216" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p><span style="color: red"><em>The price being invoiced is more than the purchase order price by more than the allowed over-charge percentage. The system is set up to prohibit this. See the system administrator to modify the set up parameters if necessary.The over-charge percentage allowance is :10%</em></span></p></blockquote></div><p>The message appears when I will click add items in Supplier Invoice.<br />Please help to resolve this.</p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[hakim]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20165</uri>
			</author>
			<updated>2017-07-20T02:01:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28216#p28216</id>
		</entry>
</feed>
