<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Bug in Inventory Item Cost Update]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=190</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=190&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Bug in Inventory Item Cost Update.]]></description>
		<lastBuildDate>Thu, 10 Apr 2008 13:42:11 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Bug in Inventory Item Cost Update]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=551#p551</link>
			<description><![CDATA[<p>No bug is no problem <img src="https://frontaccounting.com/punbb/img/smilies/wink.png" width="15" height="15" alt="wink" />.</p><p>BTW. To avoid troubles you should have exactly one tax type definition with Tax Shipping option set to on.</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Thu, 10 Apr 2008 13:42:11 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=551#p551</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bug in Inventory Item Cost Update]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=550#p550</link>
			<description><![CDATA[<p>I seem to have found something.</p><p>The first item, the PP3, seems to have status D (service) in the db, but i&#039;m almost sure i set it up as a purcharge.</p><p>I&#039;ll make a item-table-dump and try to add a &quot;first&quot; item again to see if there is in fact a bug or user error <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><br /><p>EDIT:<br />Seems to be user error this time.<br />Sorry for the fuzz.<br />/EDIT</p><p>/Rikard</p>]]></description>
			<author><![CDATA[null@example.com (rini)]]></author>
			<pubDate>Thu, 10 Apr 2008 11:01:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=550#p550</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bug in Inventory Item Cost Update]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=549#p549</link>
			<description><![CDATA[<p>I think so.</p><p>I sent you pm with url and login to my setup.<br />There is no live data in the current setup so you can&#039;t break anything <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>/Rikard</p>]]></description>
			<author><![CDATA[null@example.com (rini)]]></author>
			<pubDate>Thu, 10 Apr 2008 10:38:24 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=549#p549</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bug in Inventory Item Cost Update]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=548#p548</link>
			<description><![CDATA[<p>Hello</p><p>Hmm, the sql result is ok, the procedure creating selector from the query is straight forward and I can see nothing what can cause skipping of some options.</p><p>Are you sure that when editing PP3 in Items&amp;Inventory/Items you have set item type for PP3 to Purchased or Manufactured and not Service ?</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Thu, 10 Apr 2008 06:47:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=548#p548</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bug in Inventory Item Cost Update]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=547#p547</link>
			<description><![CDATA[<p>Hi and thanks,</p><p>SQL echoed is<br /></p><div class="codebox"><pre><code>SELECT stock_id, 0_stock_master.description, 0_stock_category.description FROM 0_stock_master,0_stock_category WHERE 0_stock_master.category_id=0_stock_category.category_id AND mb_flag !=&#039;D&#039;</code></pre></div><p>And the resultset from phpmyadmin is:</p><div class="codebox"><pre><code>stock_id description description
IX67PH2 Intertex 67 PH2 HÃ¥rdvara
IX67PH2AIR Intertex 67 PH2 Air HÃ¥rdvara
DPD16_10 FÃ¶retagspaket 16 10kg Frakt
DPD16_3 FÃ¶retagspaket 16 3kg Frakt
DPD16_35 FÃ¶retagspaket 16 35kg Frakt
DPD16_5 FÃ¶retagspaket 16 5kg Frakt
DPD16_7 FÃ¶retagspaket 16 7kg Frakt
PP10 Postpaket 10kg Frakt
PP20 Postpaket 20kg Frakt
PP5 Postpaket 5kg Frakt
PP7 Postpaket 7kg Frakt</code></pre></div><p>What i did to the inventory is a deleted everything from the webgui, and then inputed my own stuff.</p><p>Is there anything else i can post or extract to make debugging easier?</p><p>I&#039;m running latest cvs version.</p><p>/Rikard</p>]]></description>
			<author><![CDATA[null@example.com (rini)]]></author>
			<pubDate>Thu, 10 Apr 2008 05:58:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=547#p547</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bug in Inventory Item Cost Update]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=542#p542</link>
			<description><![CDATA[<p>Well, I cannot reply the issue on my own data set, so only way to track it is to make some test with your kind support.</p><p>If you have some time and really want to found the bug we can go this way:</p><p>The item droplist is created in function stock_costable_items_list() in file /include/ui/ui_lists.php. When you put into line 996 the following call:</p><p>&nbsp; echo $sql;</p><p>you will notice something like:<br /></p><div class="codebox"><pre><code>SELECT stock_id, 0_stock_master.description, 0_stock_category.description
 FROM 0_stock_master,0_stock_category 
WHERE 0_stock_master.category_id=0_stock_category.category_id 
AND mb_flag !=&#039;D&#039;</code></pre></div><p>on the screen.</p><p>This is exactly the sql phrase which is used to create the item list. Now you can copy-paste this from FA&nbsp; page into PhpMyAdmin SQL box and execute. <br />If sql query result would differ from the the selector content we would have to dig deeper to find source of troubles.</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Wed, 09 Apr 2008 19:10:50 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=542#p542</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bug in Inventory Item Cost Update]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=541#p541</link>
			<description><![CDATA[<p>Hi</p><p>I wasn&#039;t aware about the update-thingie but it&#039;s clear now.</p><p>For the droplist however, view the sql-dump below:</p><div class="codebox"><pre><code>+------------+-------------+------------------------+-------+
| stock_id   | category_id | description            | units |
+------------+-------------+------------------------+-------+
| DPD16_10   |           5 | FÃ¶retagspaket 16 10kg | st    |
| DPD16_3    |           5 | FÃ¶retagspaket 16 3kg  | st    |
| DPD16_35   |           5 | FÃ¶retagspaket 16 35kg | st    |
| DPD16_5    |           5 | FÃ¶retagspaket 16 5kg  | st    |
| DPD16_7    |           5 | FÃ¶retagspaket 16 7kg  | st    |
| IX67PH2    |           6 | Intertex 67 PH2        | st    |
| IX67PH2AIR |           6 | Intertex 67 PH2 Air    | st    |
| PP10       |           5 | Postpaket 10kg         | st    |
| PP20       |           5 | Postpaket 20kg         | st    |
| PP3        |           5 | Postpaket 3kg          | st    |
| PP5        |           5 | Postpaket 5kg          | st    |
| PP7        |           5 | Postpaket 7kg          | st    |
+------------+-------------+------------------------+-------+</code></pre></div><p>with the source from the droplist:</p><div class="codebox"><pre><code>&lt;option value=&#039;IX67PH2&#039;&gt;Hårdvara&amp;nbsp;-&amp;nbsp;Intertex 67 PH2&lt;/option&gt;
&lt;option value=&#039;IX67PH2AIR&#039;&gt;Hårdvara&amp;nbsp;-&amp;nbsp;Intertex 67 PH2 Air&lt;/option&gt;
&lt;option value=&#039;DPD16_10&#039;&gt;Frakt&amp;nbsp;-&amp;nbsp;Företagspaket 16 10kg&lt;/option&gt;
&lt;option value=&#039;DPD16_3&#039;&gt;Frakt&amp;nbsp;-&amp;nbsp;Företagspaket 16 3kg&lt;/option&gt;
&lt;option value=&#039;DPD16_35&#039;&gt;Frakt&amp;nbsp;-&amp;nbsp;Företagspaket 16 35kg&lt;/option&gt;
&lt;option value=&#039;DPD16_5&#039;&gt;Frakt&amp;nbsp;-&amp;nbsp;Företagspaket 16 5kg&lt;/option&gt;
&lt;option value=&#039;DPD16_7&#039;&gt;Frakt&amp;nbsp;-&amp;nbsp;Företagspaket 16 7kg&lt;/option&gt;
&lt;option value=&#039;PP10&#039;&gt;Frakt&amp;nbsp;-&amp;nbsp;Postpaket 10kg&lt;/option&gt;
&lt;option value=&#039;PP20&#039;&gt;Frakt&amp;nbsp;-&amp;nbsp;Postpaket 20kg&lt;/option&gt;
&lt;option value=&#039;PP5&#039;&gt;Frakt&amp;nbsp;-&amp;nbsp;Postpaket 5kg&lt;/option&gt;
&lt;option selected value=&#039;PP7&#039;&gt;Frakt&amp;nbsp;-&amp;nbsp;Postpaket 7kg&lt;/option&gt;</code></pre></div><p>As you can see i don&#039;t get the PP3 in the drop-list, while it&#039;s in the DB.</p><p>It seems it skips one row when creating the drop-list.<br />PP3 was the first new item to be added.</p><p>EDIT: Perhaps freight is a service ans not something purcharged. I got it as purcharged in this setup tho.</p><p>/EDIT</p>]]></description>
			<author><![CDATA[null@example.com (rini)]]></author>
			<pubDate>Wed, 09 Apr 2008 14:11:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=541#p541</guid>
		</item>
		<item>
			<title><![CDATA[Re: Bug in Inventory Item Cost Update]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=540#p540</link>
			<description><![CDATA[<p>Hi Rikard,</p><div class="quotebox"><cite>rini wrote:</cite><blockquote><p>When setting a new cost, all items updates to the new cost.</p></blockquote></div><p>This is not a bug, this is a feature. On the cost update page you have ability to adjust current stock items value, normally calculated as weighted average for qoh and received quantity on every purchase.<br /></p><div class="quotebox"><cite>rini wrote:</cite><blockquote><p>Also, not all items show in the drop-list.<br />Seems to list with 1 in offset.</p></blockquote></div><p>Yes, dummy items as services are not physical items and therefore are not included in selector list. You cannot adjust inventory value for dummy items because they have no inventory quantities.</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Wed, 09 Apr 2008 13:56:45 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=540#p540</guid>
		</item>
		<item>
			<title><![CDATA[Bug in Inventory Item Cost Update]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=539#p539</link>
			<description><![CDATA[<p>When setting a new cost, all items updates to the new cost.</p><p>Also, not all items show in the drop-list.<br />Seems to list with 1 in offset.</p><p>Using latest cvs update from this afternoon.</p><p>/Rikard</p>]]></description>
			<author><![CDATA[null@example.com (rini)]]></author>
			<pubDate>Wed, 09 Apr 2008 12:33:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=539#p539</guid>
		</item>
	</channel>
</rss>
