<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Sale Order Entry- Quantity becomes Zero after 1st Time Add Item 2.4.14]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10094&amp;type=atom" />
	<updated>2023-02-06T15:42:19Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=10094</id>
		<entry>
			<title type="html"><![CDATA[Re: Sale Order Entry- Quantity becomes Zero after 1st Time Add Item 2.4.14]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42046#p42046" />
			<content type="html"><![CDATA[<p>New order entry not loading on 2.4.14</p>]]></content>
			<author>
				<name><![CDATA[b.popoola]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=46853</uri>
			</author>
			<updated>2023-02-06T15:42:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42046#p42046</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sale Order Entry- Quantity becomes Zero after 1st Time Add Item 2.4.14]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41828#p41828" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2022-12-10T13:37:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41828#p41828</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sale Order Entry- Quantity becomes Zero after 1st Time Add Item 2.4.14]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41825#p41825" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2022-12-09T09:14:15Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41825#p41825</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sale Order Entry- Quantity becomes Zero after 1st Time Add Item 2.4.14]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41816#p41816" />
			<content type="html"><![CDATA[<p>@joe: need it?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2022-12-09T03:19:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41816#p41816</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sale Order Entry- Quantity becomes Zero after 1st Time Add Item 2.4.14]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41770#p41770" />
			<content type="html"><![CDATA[<p>Thanks for the Time, please review the code.</p>]]></content>
			<author>
				<name><![CDATA[sairmalhi]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41874</uri>
			</author>
			<updated>2022-11-25T15:31:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41770#p41770</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Sale Order Entry- Quantity becomes Zero after 1st Time Add Item 2.4.14]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41769#p41769" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[sairmalhi]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41874</uri>
			</author>
			<updated>2022-11-25T15:27:47Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41769#p41769</id>
		</entry>
</feed>
