<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Inventory valuation report. 301 unit decimal -1 issue.]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=10131</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10131&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Inventory valuation report. 301 unit decimal -1 issue..]]></description>
		<lastBuildDate>Fri, 23 Dec 2022 10:31:46 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Inventory valuation report. 301 unit decimal -1 issue.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41890#p41890</link>
			<description><![CDATA[<p>Perfect.&nbsp; I thought to say the user qty dec. But used price dec there by mistake.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Fri, 23 Dec 2022 10:31:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41890#p41890</guid>
		</item>
		<item>
			<title><![CDATA[Re: Inventory valuation report. 301 unit decimal -1 issue.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41889#p41889</link>
			<description><![CDATA[<p>Yes, now I see it. In this specific case the line was not there. Thanks for observing this.</p><p>To retrieve the user unit dec, the function user_qty_dec() is uset, not user_price_dec() <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" />.</p><p>This has now been committed to stable repo. A fixed file can be downloaded <a href="https://sourceforge.net/p/frontaccounting/git/ci/master/tree/reporting/rep301.php">here</a> and replaced on your server.</p><br /><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Fri, 23 Dec 2022 08:42:51 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41889#p41889</guid>
		</item>
		<item>
			<title><![CDATA[Re: Inventory valuation report. 301 unit decimal -1 issue.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41888#p41888</link>
			<description><![CDATA[<p>The situation you need to reproduce.</p><p>You should have one item with only one digit stock balance and which is also only one entry.&nbsp; </p><p>And try the valuation report again.&nbsp; &nbsp;That specific item won&#039;t be in the list.</p><p>And ofcourse logically&nbsp; we said -1 means user decimal quantity.&nbsp; &nbsp;Is that not right to put that in the query to get properly decimal valued stock. ?</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Fri, 23 Dec 2022 04:49:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41888#p41888</guid>
		</item>
		<item>
			<title><![CDATA[Re: Inventory valuation report. 301 unit decimal -1 issue.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41883#p41883</link>
			<description><![CDATA[<p>Strange, I cannot reproduce this. Have tried with &#039;User Quantity Decimals (-1) and stock with single digit. And tried in PHP 7.1.33 and 8.1. No problems. It works perfectly here. Others having problems?</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Thu, 22 Dec 2022 15:25:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41883#p41883</guid>
		</item>
		<item>
			<title><![CDATA[Inventory valuation report. 301 unit decimal -1 issue.]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41881#p41881</link>
			<description><![CDATA[<p>Yes, while making the inventory valuation report and if the stock is in single digit and the decimal for that item unit set -1. then the item won&#039;t appear in the report. </p><p>Line no 120&nbsp; <br /></p><div class="codebox"><pre><code>HAVING ROUND(SUM(move.qty), units.decimals) != 0&quot;;</code></pre></div><p>has to be like this. </p><div class="codebox"><pre><code>$dec= user_price_dec();
...
...
..
HAVING ROUND(SUM(move.qty), IF(units.decimals=-1, &quot;.$dec.&quot;, units.decimals) != 0&quot;;</code></pre></div><p>Joe check this</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Thu, 22 Dec 2022 08:35:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41881#p41881</guid>
		</item>
	</channel>
</rss>
