<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Issuing additional items to WO]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5449&amp;type=atom" />
	<updated>2017-02-15T13:38:48Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5449</id>
		<entry>
			<title type="html"><![CDATA[Re: Issuing additional items to WO]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27528#p27528" />
			<content type="html"><![CDATA[<p>What happens if <strong>$failed_item</strong> is either <strong>false</strong> or <strong>NULL / not set</strong> in some versions of browser / server php?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-02-15T13:38:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27528#p27528</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Issuing additional items to WO]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27524#p27524" />
			<content type="html"><![CDATA[<p>Recently i discovered the bug maybe with some PHP versions about this, the way i fixed is changing it to this:</p><p>if (count($failed_item) &gt; 0)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; display_error(_(&quot;The issue cannot be processed because it would cause negative inventory balance for marked items as of document date or later.&quot;));<br />&nbsp; &nbsp; &nbsp; &nbsp; return false;<br />&nbsp; &nbsp; }</p><p>** Inside the IF statement i validate against the count() of the array instead just direct value.</p><p>Hope this helps.</p>]]></content>
			<author>
				<name><![CDATA[andresamayadiaz]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=16418</uri>
			</author>
			<updated>2017-02-14T18:35:09Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27524#p27524</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Issuing additional items to WO]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22763#p22763" />
			<content type="html"><![CDATA[<p>Lines 101 to 106 in <strong>manufacturing/work_order_issue.php</strong> are:<br /></p><div class="codebox"><pre><code>    $failed_item = $_SESSION[&#039;issue_items&#039;]-&gt;check_qoh($_POST[&#039;Location&#039;], $_POST[&#039;date_&#039;], !$_POST[&#039;IssueType&#039;]);
    if ($failed_item != -1) 
    {
           display_error(_(&quot;The issue cannot be processed because it would cause negative inventory balance for marked items as of document date or later.&quot;));
        return false;
    }</code></pre></div><p>Try to comment out the above lines and see how it proceeds.</p><p>@joe: any variable scope and visibility issues?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-03-03T14:40:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22763#p22763</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Issuing additional items to WO]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22730#p22730" />
			<content type="html"><![CDATA[<p>And me too got problem, how can&nbsp; I issue a WO. I tried a million times and all my quantity have sufficient amount in the stock but stil I can not issue a WO. Here&#039;s the error message given out.&quot;The issue cannot be processed because it would cause negative inventory balance for marked items as of document date or later!&quot;<br />I also tried to follow this instruction -&gt; https://github.com/apmuthu/frontaccounting/blob/master/core/manufacturing/work_order_issue.php and I changed the respective (work_order_issue.php) files but nothing changed. Please Joe and everyone around I need help here.</p>]]></content>
			<author>
				<name><![CDATA[touchman]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19889</uri>
			</author>
			<updated>2015-02-27T14:42:09Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22730#p22730</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Issuing additional items to WO]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22057#p22057" />
			<content type="html"><![CDATA[<p>Please refer <a href="https://frontaccounting.com/punbb/viewtopic.php?pid=22056#p22056">Forum Post</a> and let us know if it fixed it for you.</p><p>The &quot;id&quot; field instead of the &quot;component&quot; field was being compared till now for &quot;update_bom()&quot; function!</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-01-07T04:09:15Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22057#p22057</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Issuing additional items to WO]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22052#p22052" />
			<content type="html"><![CDATA[<p>Hi,</p><p>I installed Front a few weeks ago and I have some problems issuing additional items to work orders.<br />I have plenty stock in hand but everytime I want to add items the system returns me the message: &quot;The issue cannot be processed because it would cause negative inventory balance for marked items as of document date or later.&quot;</p><p>I have also noticed that when I place a Purchase Order that has not been received, I can see the amount to be received in the column &quot;On Order&quot; of the option Inventory Item Status, which I consider normal; but when I create a Work Order, once it has been issued but not yet closed, the required quantities appear in the same column. Therefore, it is impossible to me to separate goods that are to be received, from requirements of Work Orders.</p><p>Any ideas?</p><p>Thanks in advance,</p><p>Max</p>]]></content>
			<author>
				<name><![CDATA[Queijo]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19947</uri>
			</author>
			<updated>2015-01-06T22:22:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22052#p22052</id>
		</entry>
</feed>
