<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Partial Delivery - insufficient quantity - Bug?]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7071</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7071&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Partial Delivery - insufficient quantity - Bug?.]]></description>
		<lastBuildDate>Fri, 27 Oct 2017 19:08:50 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Partial Delivery - insufficient quantity - Bug?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29261#p29261</link>
			<description><![CDATA[<p>Everything works as expected. See attachment with files in transaction sequence.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 27 Oct 2017 19:08:50 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29261#p29261</guid>
		</item>
		<item>
			<title><![CDATA[Re: Partial Delivery - insufficient quantity - Bug?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29249#p29249</link>
			<description><![CDATA[<div class="quotebox"><cite>fraserks wrote:</cite><blockquote><p>For the quantity for check_negative_stock (line 568) it uses $line_item-&gt;quantity.&nbsp; I suggest it should be using $line_item-&gt;qty_dispatched.&nbsp; This way it is checking for the amount I am trying to deliver, rather than the amount that is not yet delivered.</p></blockquote></div><p>I&#039;m not sure what you mean. In cart::check_qoh() $line_item-&gt;qty_dispatched is used, and it is about line 588. Which FA version you have installed?</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Fri, 27 Oct 2017 08:21:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29249#p29249</guid>
		</item>
		<item>
			<title><![CDATA[Re: Partial Delivery - insufficient quantity - Bug?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29237#p29237</link>
			<description><![CDATA[<p>@Iraserks</p><p>If you haven&#039;t marked &#039;Allow Negative Stock&#039;, you will get the allowed items as default and a warning that there is insuffient stock for the delivery. That means that you could not deliver all of it and you are allowed to deliver the default items (those in stock)..<br />I had no problems saving this delivery with available stock.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Thu, 26 Oct 2017 22:34:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29237#p29237</guid>
		</item>
		<item>
			<title><![CDATA[Re: Partial Delivery - insufficient quantity - Bug?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29232#p29232</link>
			<description><![CDATA[<p>Hi apmuthu,</p><p>I am pretty sure that allow negative stock is off.&nbsp; However, I show 2 as in stock in FA, and I was trying to deliver 2 so the final stock count would not have been negative.&nbsp; </p><p>If I understood the logic in the functions correctly, it was assuming I was delivering all 10 that the customer had ordered when I was trying to deliver the 2 on hand, and leave 8 on back order until the next shipment from my supplier comes in.&nbsp; I do remember that I had the &quot;leave on backorder&quot; dropdown selected during the delivery process.</p><p>I did not do a dependencies check to see what other functions use the check_negative_stock hence one reason for asking about side effects to making that change long term.</p>]]></description>
			<author><![CDATA[null@example.com (fraserks)]]></author>
			<pubDate>Thu, 26 Oct 2017 19:22:13 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29232#p29232</guid>
		</item>
		<item>
			<title><![CDATA[Re: Partial Delivery - insufficient quantity - Bug?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29210#p29210</link>
			<description><![CDATA[<p>@joe: while fixing this check on any alert thresholds to inform the user that the remaining is out of stock.</p><p>Hope you had enabled the config variable to allow negative stock.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 26 Oct 2017 10:09:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29210#p29210</guid>
		</item>
		<item>
			<title><![CDATA[Partial Delivery - insufficient quantity - Bug?]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29202#p29202</link>
			<description><![CDATA[<p>I have a customer order for 10 items, and I have 2 in stock.&nbsp; When I try to deliver the 2 and Place Delivery, I get an error that there isn&#039;t enough quantity in stock.</p><p>Tracing through the code, I found in customer_delivery.inc it checks $_SESSION[&#039;items&#039;]-&gt;check_qoh which ultimately calls check_negative_stock (cart_class.inc).&nbsp; </p><p>For the quantity for check_negative_stock (line 568) it uses $line_item-&gt;quantity.&nbsp; I suggest it should be using $line_item-&gt;qty_dispatched.&nbsp; This way it is checking for the amount I am trying to deliver, rather than the amount that is not yet delivered.</p><p>Have I understood the variables correctly?&nbsp; Also, are there any side effects from making this change that I may not be aware of?</p>]]></description>
			<author><![CDATA[null@example.com (fraserks)]]></author>
			<pubDate>Wed, 25 Oct 2017 13:54:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29202#p29202</guid>
		</item>
	</channel>
</rss>
