<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — &$dec deprecated - report 301 bad dec]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3556&amp;type=atom" />
	<updated>2012-11-21T14:36:48Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=3556</id>
		<entry>
			<title type="html"><![CDATA[Re: &$dec deprecated - report 301 bad dec]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14366#p14366" />
			<content type="html"><![CDATA[<p>Thanks Joe.</p><p>Setting 2 dec places in <strong>Items and Inventory -&gt; Standard Costs</strong> did the job. <a href="https://frontaccounting.com/fawiki/index.php?n=Help.InventoryValuationReport"><strong>Wiki</strong></a>ed it.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-11-21T14:36:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14366#p14366</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: &$dec deprecated - report 301 bad dec]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14362#p14362" />
			<content type="html"><![CDATA[<p>Yes, it was <a href="https://frontaccounting.com/fawiki/index.php?n=Help.SupplierPurchasingData">wikied</a>.</p><p>/Joe:</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2012-11-21T07:17:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14362#p14362</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: &$dec deprecated - report 301 bad dec]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14360#p14360" />
			<content type="html"><![CDATA[<p>The cost prices can be entered&nbsp; with more than user_price_dec decimals. This was implemented a couple of years ago, to compensate for huge rounding problems.<br />If you buy items from your supplier, you maybe buy in boxes with 100 or more items.<br />But you sell in 1 items. If you use user_price_dec decimals for your own price you may end up in huge differences in GL inventory.</p><p>If this is a problem, you can correct this in Items and Inventory tab, Cost Update. Just enter the cost with user_price_dec decimals for the items that has more than user_price_dec decimals.</p><p>I am not sure if this is wikied.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2012-11-21T06:38:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14360#p14360</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: &$dec deprecated - report 301 bad dec]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14356#p14356" />
			<content type="html"><![CDATA[<p>Yes I figured that out and filed <a href="http://mantis.frontaccounting.com/view.php?id=1906">Bug 1906</a> since the <strong>prices_dec</strong> field in the <strong>#_users</strong> table was not being respected for displaying the Unit Cost in the Inventory Valuation Report (rep301.php) as seen from the attachement in the first post in this topic for one item that has 10 decimals in it&#039;s Unit Cost.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-11-21T04:35:06Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14356#p14356</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: &$dec deprecated - report 301 bad dec]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14354#p14354" />
			<content type="html"><![CDATA[<p>No, No, the function price_decimal_format gets the $dec parameter updated from the decimals in the $number variable.</p><p>Everything is at it should be. price_decimal_format returns the formatted amount with de newly found decimals.</p><p>The decimal values returned in the $dec parameter can be used later for other things.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2012-11-20T21:48:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14354#p14354</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: &$dec deprecated - report 301 bad dec]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14350#p14350" />
			<content type="html"><![CDATA[<p>I am not at my work station at present. The decimals in the cost price is very important due to exactly calculation.</p><p>I am not sure what this is about. Will have a look at this later.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2012-11-20T18:49:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14350#p14350</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: &$dec deprecated - report 301 bad dec]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14348#p14348" />
			<content type="html"><![CDATA[<p>Attempting to fix includes/current_user.inc by replacing Line 310:<br /></p><div class="codebox"><pre><code>function price_decimal_format($number, &amp;$dec)</code></pre></div><p>with<br /></p><div class="codebox"><pre><code>function price_decimal_format($number, $dec)</code></pre></div><p>by omitting the pass by reference, the Unit Cost column now has no decimals.</p><p>Even any forced value of $dec in Line 312 does not provide any decimals at all in the above attempted fix.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-11-20T17:25:39Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14348#p14348</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[&$dec deprecated - report 301 bad dec]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14342#p14342" />
			<content type="html"><![CDATA[<p>FA v2.3.13 Mer 3109</p><p>File: reporting/rep301.php lines 148 to 158 place the individual detail entries for the <strong>Inventory Valuation Report</strong>. The decimal formatting is not respected as the deprecated </p><div class="codebox"><pre><code>&amp;$dec</code></pre></div><p> is used.</p><p>Lines 310 - 312 of includes/current_user.inc:<br /></p><div class="codebox"><pre><code>function price_decimal_format($number, &amp;$dec)
{
    $dec = user_price_dec();</code></pre></div><p>clearly do not take in the $dec from the function parameter.</p><p>This results in the kind of multi-decimal output in the report snapshot attached.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2012-11-20T16:10:55Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14342#p14342</id>
		</entry>
</feed>
