<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Item Edit - Fix error]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=893</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=893&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Item Edit - Fix error.]]></description>
		<lastBuildDate>Tue, 27 Oct 2009 13:48:46 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Item Edit - Fix error]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=3726#p3726</link>
			<description><![CDATA[<p>Thanks andawi,<br />Will be fixed immediately in CVS unstable.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 27 Oct 2009 13:48:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=3726#p3726</guid>
		</item>
		<item>
			<title><![CDATA[Item Edit - Fix error]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=3725#p3725</link>
			<description><![CDATA[<p>Hello,<br />I have seen error when updating any item ,<br />**************<br />DATABASE ERROR : The item could not be updated<br />error code : 1064<br />error message : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;no_sale=&#039;0&#039; WHERE stock_id=&#039;-1&#039;&#039; at line 12<br />sql that failed was : UPDATE 0_stock_master SET long_description=&#039;&#039;, description=&#039;Disciunt0&#039;, category_id=&#039;2&#039;, sales_account=&#039;4510&#039;, inventory_account=&#039;1510&#039;, cogs_account=&#039;5010&#039;, adjustment_account=&#039;5040&#039;, assembly_account=&#039;1530&#039;, dimension_id=&#039;0&#039;, dimension2_id=&#039;0&#039;, tax_type_id=&#039;1&#039; no_sale=&#039;0&#039; WHERE stock_id=&#039;-1&#039;</p><p>*************<br />I have fixed as the following<br />inventory/manage/items.php<br />go to line 17 ,<br />$sql = &quot;UPDATE &quot;.TB_PREF.&quot;stock_master SET long_description=&quot;.db_escape($long_description).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; description=&quot;.db_escape($description).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; category_id=&quot;.db_escape($category_id).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; sales_account=&quot;.db_escape($sales_account).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; inventory_account=&quot;.db_escape($inventory_account).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; cogs_account=&quot;.db_escape($cogs_account).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; adjustment_account=&quot;.db_escape($adjustment_account).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; assembly_account=&quot;.db_escape($assembly_account).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; dimension_id=&quot;.db_escape($dimension_id).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; dimension2_id=&quot;.db_escape($dimension2_id).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; tax_type_id=&quot;.db_escape($tax_type_id).&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; no_sale=&quot;.db_escape($no_sale);<br />replaced by<br />$sql = &quot;UPDATE &quot;.TB_PREF.&quot;stock_master SET long_description=&quot;.db_escape($long_description).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; description=&quot;.db_escape($description).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; category_id=&quot;.db_escape($category_id).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; sales_account=&quot;.db_escape($sales_account).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; inventory_account=&quot;.db_escape($inventory_account).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; cogs_account=&quot;.db_escape($cogs_account).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; adjustment_account=&quot;.db_escape($adjustment_account).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; assembly_account=&quot;.db_escape($assembly_account).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; dimension_id=&quot;.db_escape($dimension_id).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; dimension2_id=&quot;.db_escape($dimension2_id).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; tax_type_id=&quot;.db_escape($tax_type_id).&quot;,<br />&nbsp; &nbsp; &nbsp; &nbsp; no_sale=&quot;.db_escape($no_sale);</p><p>the error was because there is no , after &nbsp; &nbsp; tax_type_id=&quot;.db_escape($tax_type_id).&quot;</p>]]></description>
			<author><![CDATA[null@example.com (amdawi)]]></author>
			<pubDate>Tue, 27 Oct 2009 10:50:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=3725#p3725</guid>
		</item>
	</channel>
</rss>
