<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Sale Order Entry- Quantity becomes Zero after 1st Time Add Item 2.4.14]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=10094</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10094&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Sale Order Entry- Quantity becomes Zero after 1st Time Add Item 2.4.14.]]></description>
		<lastBuildDate>Mon, 06 Feb 2023 15:42:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Sale Order Entry- Quantity becomes Zero after 1st Time Add Item 2.4.14]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=42046#p42046</link>
			<description><![CDATA[<p>New order entry not loading on 2.4.14</p>]]></description>
			<author><![CDATA[null@example.com (b.popoola)]]></author>
			<pubDate>Mon, 06 Feb 2023 15:42:19 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=42046#p42046</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sale Order Entry- Quantity becomes Zero after 1st Time Add Item 2.4.14]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41828#p41828</link>
			<description><![CDATA[<p>@sairmalhi</p><p>Well, I cannot reproduce this error too. The parameters passed to add_item_code() are correct, and the &#039;fix&#039; (if I correctly understand your sugestion) boiling out to removing any argument from the call to add_item_code() is not acceptable. </p><p>More over, the add_item() function from /inventory/includes/items_db.inc is used only in inventory database edition, and is not referenced in any of sales modules document pages. There is no way the change in add_item() would fix problem appearing eg in sales_order_entry.php, so I guess this is pure coincidence, and - if the problem has gone - you had to fix it somewhere else.</p><p>J.</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Sat, 10 Dec 2022 13:37:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41828#p41828</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sale Order Entry- Quantity becomes Zero after 1st Time Add Item 2.4.14]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41825#p41825</link>
			<description><![CDATA[<p>I cannot reproduce this error. Anybody else?</p><p>I have asked Itronics to comment on this. Unfortunately he is very busy with other stuff at present. Hopefully he will enter soon.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Fri, 09 Dec 2022 09:14:15 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41825#p41825</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sale Order Entry- Quantity becomes Zero after 1st Time Add Item 2.4.14]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41816#p41816</link>
			<description><![CDATA[<p>@joe: need it?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 09 Dec 2022 03:19:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41816#p41816</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sale Order Entry- Quantity becomes Zero after 1st Time Add Item 2.4.14]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41770#p41770</link>
			<description><![CDATA[<p>Thanks for the Time, please review the code.</p>]]></description>
			<author><![CDATA[null@example.com (sairmalhi)]]></author>
			<pubDate>Fri, 25 Nov 2022 15:31:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41770#p41770</guid>
		</item>
		<item>
			<title><![CDATA[Sale Order Entry- Quantity becomes Zero after 1st Time Add Item 2.4.14]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41769#p41769</link>
			<description><![CDATA[<p>Hi All,<br />I just installed latest FA version it has been working fine but only one problem was that when I input quantity on Sales order, Direct Delivery or direct Invoice after pressing Add Item, input quantity turns 0 and I was getting the Total 0. <br />however I endeavored to find the issue and found that on line# 90<br /> add_item_code($stock_id, $stock_id, $description, $category_id, 1, 0); of file items_db.inc which is residing in&nbsp; <br />\inventory\includes\db <br />requiring&nbsp; $stock_id twice which causing problem to find the item to add in cart line for code on lines 64-65<br />&nbsp; &nbsp; &nbsp; &nbsp; $order-&gt;add_to_cart (count($order-&gt;line_items),$item[&#039;stock_id&#039;], <br />&nbsp; &nbsp; $new_item_qty*$item[&#039;quantity&#039;], $item_price, $discount, 0,0, $description); of file sales_order_ui.inc residing in folder<br />..\sales\includes\ui\sales_order_ui.inc.</p><p>I just removed duplicate $stock_id from add_item_code($stock_id, $stock_id, $description, $category_id, 1, 0); of file items_db.inc and everything seems working fine so far.</p><p>Is it OK or there should be something else which I am missing.</p>]]></description>
			<author><![CDATA[null@example.com (sairmalhi)]]></author>
			<pubDate>Fri, 25 Nov 2022 15:27:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41769#p41769</guid>
		</item>
	</channel>
</rss>
