<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Negative Inventory Adjustments not working anymore (2.4.8)]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8734&amp;type=atom" />
	<updated>2020-10-26T21:06:37Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8734</id>
		<entry>
			<title type="html"><![CDATA[Re: Negative Inventory Adjustments not working anymore (2.4.8)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38545#p38545" />
			<content type="html"><![CDATA[<p>@joe: thanks for getting to the root cause of this bug.<br />Did you also check that the cost are correctly calculated, since they had been also wrong.</p>]]></content>
			<author>
				<name><![CDATA[incocare]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17294</uri>
			</author>
			<updated>2020-10-26T21:06:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38545#p38545</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Negative Inventory Adjustments not working anymore (2.4.8)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37882#p37882" />
			<content type="html"><![CDATA[<p>Hello all.</p><p>I have been looking at this and espect a PHP bug. The code is handling it correctly. Explanation:</p><p>In file <strong>/inventory/includes/db/item_adjust_db.inc</strong>, <em>function add_stock_adjustment</em>. The <strong>line_item-&gt;quantity</strong> is assigned to another variable,&nbsp; <strong>$chg</strong>.<br />This variable is sent to another <em>function calculate_reorder_level</em> with the address of $chg (this variable has been changed to positive qty for calculation), but the original variable line_item-&gt;quantity should remain unchanged. But for some reason the address of both variables is shared. Strange!!<br />I have now saved the line_item-&gt;quantity in a $tmp variable during the calculate_reorder_level and restored after. Now it is working.</p><p>As mentioned by @dtejada this is only happening when the <strong>&#039;Location Notifications&#039;</strong> was checked.</p><p>I will upload the corrected file, item_adj_db.inc, for replacement.<br />The fix will be committed to stable repo asap.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2020-07-31T08:02:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37882#p37882</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Negative Inventory Adjustments not working anymore (2.4.8)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37877#p37877" />
			<content type="html"><![CDATA[<p>A friend of mine that is&nbsp; FA expert (Patricio) solved it!! just unchecking the &quot;Location Notifications&quot; at the System and General GL Setup page. It works fine now.</p>]]></content>
			<author>
				<name><![CDATA[dtejada]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45518</uri>
			</author>
			<updated>2020-07-30T20:55:43Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37877#p37877</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Negative Inventory Adjustments not working anymore (2.4.8)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37828#p37828" />
			<content type="html"><![CDATA[<p>@joe: is this a real issue?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-07-23T16:48:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37828#p37828</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Negative Inventory Adjustments not working anymore (2.4.8)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37808#p37808" />
			<content type="html"><![CDATA[<p>Hi to all. I have the same issue, but a little odd. I&#039;ve instaled 2.4.8 from scratch, and did one negative adjustment and everything in the GL went well. The second adjustment (negative/egress) was booked as positive, and also positive income in the item movement. I dont know what to do.</p>]]></content>
			<author>
				<name><![CDATA[dtejada]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45518</uri>
			</author>
			<updated>2020-07-17T18:40:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37808#p37808</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Negative Inventory Adjustments not working anymore (2.4.8)]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=37230#p37230" />
			<content type="html"><![CDATA[<p>Since 2.4.8 any negative adjustments are booked as positive adjustments!<br />Was working fine in 2.4.7.</p><p>Seems as if one of these fixes broke something:<br /> ** Inventory Adjustment: fixed error in adjustment entry when inventory notifications are switched on.<br /> ** Inventory Adjustment: negative adjustment should always use current average item cost.</p><p>Downgraded temporarily to 2.4.7 to get end of business year stock adjustments done.<br />Would be great if this could be fixed soon.</p><p>https://www.dropbox.com/s/3iprw57lmi1xra4/Screenshot_2020-04-05%20Item%20Adjustments%20Note.png?dl=0<br />https://www.dropbox.com/s/tjv09kctyzhpt7k/Screenshot_2020-04-05%20View%20Inventory%20Adjustment.png?dl=0</p>]]></content>
			<author>
				<name><![CDATA[incocare]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17294</uri>
			</author>
			<updated>2020-04-05T08:45:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=37230#p37230</id>
		</entry>
</feed>
