<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — SQL error when updating items FOR 2.1]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=435&amp;type=atom" />
	<updated>2008-12-22T13:44:13Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=435</id>
		<entry>
			<title type="html"><![CDATA[Re: SQL error when updating items FOR 2.1]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1563#p1563" />
			<content type="html"><![CDATA[<p>Both the fixes just have been uploaded to unstable CVS.</p><p>Thanx&nbsp; Pete</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2008-12-22T13:44:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1563#p1563</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[SQL error when updating items FOR 2.1]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=1560#p1560" />
			<content type="html"><![CDATA[<p>Here&#039;s the quick description:</p><p>Line 18 of item_codes_db.inc should probably read:</p><p>&nbsp; &nbsp; $sql .= &quot;item_code = &quot;.db_escape($item_code) </p><p>rather than </p><p>&nbsp; &nbsp; &quot;item_code = &quot;.db_escape($item_code) </p><br /><br /><p>This was causing sql error when updating items.</p><p>ALSO....<br />I think items_db.inc needed the same mod I made before but at line 24 ie.<br />update the call to update_item_code to include $category:</p><p>update_item_code(-1, $stock_id, $stock_id, $description,$category_id, 1, 0);</p><p>The calls to update_item_code and add_item_code in sales_kits.php look OK, although I haven&#039;t tested them.</p>]]></content>
			<author>
				<name><![CDATA[p2409]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=267</uri>
			</author>
			<updated>2008-12-22T11:45:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=1560#p1560</id>
		</entry>
</feed>
