<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Handling Negative Inventory]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9421&amp;type=atom" />
	<updated>2021-08-14T22:14:58Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9421</id>
		<entry>
			<title type="html"><![CDATA[Handling Negative Inventory]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39867#p39867" />
			<content type="html"><![CDATA[<p>We have a function handle_negative_inventory() in includes/db/inventory_db.inc.</p><p>This function performs action when inventory of an stock is going to be negative or ZERO with following condition.</p><p> if ($qoh + $quantity &lt;= 0 &amp;&amp; $qoh &gt; 0) //Positive inventory turning zero/negative</p><p>But I think this should only check if Inventory is going to be negative. Zero Inventory is not an issue while Negative inventory is an issue.</p><p>I may be wrong in a broader scenarios but in one recent scenario I found the condition to be as below.</p><p> if ($qoh + $quantity &lt; 0 &amp;&amp; $qoh &gt; 0) //Positive inventory turning negative</p><p>Just putting it here so that may get some expert advices.</p><p>Regards.</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2021-08-14T22:14:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39867#p39867</id>
		</entry>
</feed>
