<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Inventory valuation report. 301 unit decimal -1 issue.]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10131&amp;type=atom" />
	<updated>2022-12-23T10:31:46Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=10131</id>
		<entry>
			<title type="html"><![CDATA[Re: Inventory valuation report. 301 unit decimal -1 issue.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41890#p41890" />
			<content type="html"><![CDATA[<p>Perfect.&nbsp; I thought to say the user qty dec. But used price dec there by mistake.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2022-12-23T10:31:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41890#p41890</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inventory valuation report. 301 unit decimal -1 issue.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41889#p41889" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2022-12-23T08:42:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41889#p41889</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inventory valuation report. 301 unit decimal -1 issue.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41888#p41888" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2022-12-23T04:49:21Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41888#p41888</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Inventory valuation report. 301 unit decimal -1 issue.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41883#p41883" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2022-12-22T15:25:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41883#p41883</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Inventory valuation report. 301 unit decimal -1 issue.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41881#p41881" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2022-12-22T08:35:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41881#p41881</id>
		</entry>
</feed>
