<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Negative Stock]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5110&amp;type=atom" />
	<updated>2014-09-22T17:09:24Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5110</id>
		<entry>
			<title type="html"><![CDATA[Re: Negative Stock]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20925#p20925" />
			<content type="html"><![CDATA[<p>Fixes needed for negative stock to work and other cosmetic changes:</p><p>File: includes/db/sql_functions.inc<br />Fix: missing end of file closing php tag &quot;?&gt;&quot;</p><p>File:&nbsp; inventory/transfers.php<br />Fix: Change line 79 from:<br /> global $Refs;<br />to<br /> global $Refs, $SysPrefs;</p><p>File: sales/includes/ui/sales_order_ui.inc<br />Fix: Remove Line 138:<br />&nbsp; &nbsp; global $SysPrefs;&#039;<br />as it is no longer needed.</p><p>****** All these issues and others have been addressed in the <a href="http://devel.frontaccounting.com/git/?p=fa-stable.git;a=commitdiff;h=86b4fb041e5eb3963d40b55387a77198e3fd6844;hp=ec51d9a922df61d39de8444cd0a3aaf51ebcbf2b">subsequent</a> commit. *******</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-09-22T17:09:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20925#p20925</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Negative Stock]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20904#p20904" />
			<content type="html"><![CDATA[<p>Hello Mark,</p><p>Janusz has now fixed this. Not only testing on item lines, but also finally in multi user Environment. HG repository updated and fixes is included in next minor release.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2014-09-21T21:30:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20904#p20904</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Negative Stock]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20896#p20896" />
			<content type="html"><![CDATA[<p>Hello Mark. <br />Janusz, our chief developer, is about to fix a better solution. He will rewrite something this weekend, so please stay put until he is ready.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2014-09-20T08:56:55Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20896#p20896</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Negative Stock]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20895#p20895" />
			<content type="html"><![CDATA[<p>Hi Joe</p><p>I tested the fix for negative stock.<br />It works correctly now, except for the error message....which does not show the correct qty on hand</p><p>Here is my test data:</p><p>1. 25.8.14 purchased 1000 units<br />2. 25.8.14 sold 500 units leaving a balance of 500 units<br />3. 20.9.14 sold 100 units leaving a balance of 400 units<br />4. 26.8.14 back dated a sale of 500 units</p><p>As expected, I could not process the sale of 500 units, but the error message below is incorrect.</p><p>The delivery cannot be processed because there is an insufficient quantity for item: testneg - testneg - Quantity On Hand = 500</p><p>The qty on hand is 400, not 500.&nbsp; </p><p>It looks like the routine for checking stock levels used by the error message needs to be updated from historical levels on 25.8.14 to actual stock levels at 26.8.14 (current date).&nbsp; </p><p>Mark</p>]]></content>
			<author>
				<name><![CDATA[MarkAndrew]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17490</uri>
			</author>
			<updated>2014-09-20T08:44:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20895#p20895</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Negative Stock]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20886#p20886" />
			<content type="html"><![CDATA[<p>Yes it will go to the next minor release.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2014-09-19T04:51:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20886#p20886</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Negative Stock]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20884#p20884" />
			<content type="html"><![CDATA[<p>thanks Joe.<br />Appreciated!<br />Will this fix go to the next release and I can download then?<br />Mark</p>]]></content>
			<author>
				<name><![CDATA[MarkAndrew]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17490</uri>
			</author>
			<updated>2014-09-19T04:28:44Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20884#p20884</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Negative Stock]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20883#p20883" />
			<content type="html"><![CDATA[<p>This item has now been fixed and the HG repository has been updated.</p><p>You can download /sales/sales_order_entry.php <a href="http://https:/sourceforge.net/p/frontaccounting/mercurial/ci/default/tree/sales/sales_order_entry.php">here</a>:</p><p>/joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2014-09-19T00:15:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20883#p20883</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Negative Stock]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20882#p20882" />
			<content type="html"><![CDATA[<p>Mark, I am sorry that I didn&#039;t see the problem at first.</p><p>Of course, we should not allow the delivery. We should not test the stock availability by the document delivery date, but we should test for Todays date.</p><p>I will try to fix this asap.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2014-09-18T23:41:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20882#p20882</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Negative Stock]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20576#p20576" />
			<content type="html"><![CDATA[<p>By not ticking the box called &quot;allow negative inventory&quot; in system and general ledger set up I thought that negative inventory would not be allowed, so as not cause &quot;troubles.&quot;<br />But, in the example I gave in previous post, negative inventory was allowed.&nbsp; Like I&#039;ve said before, I can&#039;t code. Logically speaking, there needs to be a routine in the code that checks today&#039;s stock quantity before allowing me to process a back dated delivery or direct invoice that exceeds today&#039;s qty and results in negative stock.&nbsp; As it is now, one thinks that by not ticking allow negative inventory the troubles are avoided, but they are not.</p>]]></content>
			<author>
				<name><![CDATA[MarkAndrew]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17490</uri>
			</author>
			<updated>2014-08-26T02:51:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20576#p20576</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Negative Stock]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20572#p20572" />
			<content type="html"><![CDATA[<p>You. Should not elaborate between allow and disallow negative stock. It will cause troubles.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2014-08-25T10:37:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20572#p20572</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Negative Stock]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20570#p20570" />
			<content type="html"><![CDATA[<p>The following concerning negative inventory was noted:<br />1. In System and General Ledger Setup, allow negative inventory was not checked to allow negative inventory.<br />2. Today, qty on hand was 500 units of inventory item, on 25 July there were 1000 units on hand<br />3. When we backdate a sale to 25 July of 600 units, the sale is processed<br />4. But as of today&#039;s date 100 units of negative stock will appear, despite the fact that we did not allow negative inventory in system and GL set up.<br />5. No warning was displayed to disallow (or at least alert) the negative balance.</p>]]></content>
			<author>
				<name><![CDATA[MarkAndrew]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17490</uri>
			</author>
			<updated>2014-08-25T10:21:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20570#p20570</id>
		</entry>
</feed>
