<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Decimal places of prices]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=2471&amp;type=atom" />
	<updated>2016-05-15T21:15:12Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=2471</id>
		<entry>
			<title type="html"><![CDATA[Re: Decimal places of prices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25498#p25498" />
			<content type="html"><![CDATA[<p>I just tried what you suggested and it is not working for me at all.&nbsp; It either rounds the unit price to 2 decimal places if I have the display setup settings to 2 for price/amounts or if I set it to 3 and then click add item it keeps that the line total at 3 decimal places and the amount total at 3 decimal places when I need both of them to do the calculations and then round up to 2 decimal places.</p><p>What am I missing on getting this to work?&nbsp; Thanks</p>]]></content>
			<author>
				<name><![CDATA[myhandgunpursedotcom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18003</uri>
			</author>
			<updated>2016-05-15T21:15:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25498#p25498</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Decimal places of prices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25040#p25040" />
			<content type="html"><![CDATA[<p>You will have to logout and login again after clearing browser cache.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-01-18T14:28:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25040#p25040</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Decimal places of prices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25039#p25039" />
			<content type="html"><![CDATA[<p>I still don&#039;t understand what that function is supposed to be doing. Why would the increase in precision differ depending on whether a precision parameter has been passed to the function or taken from some configuration setting?</p><p>Not that it would matter, because as far as I could tell that function is never called.</p>]]></content>
			<author>
				<name><![CDATA[tm]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17873</uri>
			</author>
			<updated>2016-01-18T01:47:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25039#p25039</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Decimal places of prices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25038#p25038" />
			<content type="html"><![CDATA[<p>Thanks for looking into this issue.&nbsp; I tried the suggestion above but FA still rounds to 2dp.&nbsp; </p><p>I changed the dec+2 to dec+4 in the ui_input.inc file, and changed the database x_prices table &quot;price&quot; column to DECIMAL(6,4). The database shows the 4dp but the values are still rounded to 2dp.</p><p>Please let me know where I&#039;m going wrong.</p>]]></content>
			<author>
				<name><![CDATA[mawulitse]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17632</uri>
			</author>
			<updated>2016-01-17T23:59:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25038#p25038</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Decimal places of prices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=24933#p24933" />
			<content type="html"><![CDATA[<p>Have a look at <strong>includes/ui/ui_input.inc</strong> lines 768 to 775:<br /></p><div class="codebox"><pre><code>//JAM  Allow entered unit prices to be fractional
function unit_amount_cells($label, $name, $init=null, $params=null, $post_label=null, $dec=null)
{
    if (!isset($dec))
          $dec = user_price_dec()+2;

    amount_cells_ex($label, $name, 15, 15, $init, $params, $post_label, $dec+2);
}</code></pre></div><p>Either 2 or 4 more decimal places are used when evaluating the unit amount.</p><p>If you extend the number of decimal places in the db table fields for unit price, the you can do all computations on unit_price with such more decimal places.</p><p>@joe: Is this issue addressed in FA 2.4?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-12-15T15:48:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=24933#p24933</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Decimal places of prices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=24928#p24928" />
			<content type="html"><![CDATA[<p>I have this problem too, and would appreciate some help.&nbsp; </p><p>It&#039;s odd that we can purchase items with prices to several decimal places but can sell only to two decimals.&nbsp; I have items that are bought and sold in large volumes for fractions of pennies.</p>]]></content>
			<author>
				<name><![CDATA[mawulitse]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17632</uri>
			</author>
			<updated>2015-12-14T22:12:44Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=24928#p24928</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Decimal places of prices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=23621#p23621" />
			<content type="html"><![CDATA[<p>@Joe and @Apmuthu, any kind of response or at least tell me how I can fix it myself.&nbsp; Anything would be helpful.&nbsp; Thank you</p>]]></content>
			<author>
				<name><![CDATA[redoctober83]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20428</uri>
			</author>
			<updated>2015-05-31T04:30:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=23621#p23621</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Decimal places of prices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=23583#p23583" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>@joe: can @redoctober83&#039;s suggestion be taken into revising the formulae used in FA? Multiply rate with quantity first and then round off...</p></blockquote></div><p>Bump.&nbsp; Is this possible?&nbsp; If it is, I would be so very very happy <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; Thanks.</p>]]></content>
			<author>
				<name><![CDATA[redoctober83]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20428</uri>
			</author>
			<updated>2015-05-23T18:17:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=23583#p23583</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Decimal places of prices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=23572#p23572" />
			<content type="html"><![CDATA[<p>@joe: can @redoctober83&#039;s suggestion be taken into revising the formulae used in FA? Multiply rate with quantity first and then round off...</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-05-22T02:02:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=23572#p23572</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Decimal places of prices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=23564#p23564" />
			<content type="html"><![CDATA[<p>I&#039;m having the same problem as the original poster.&nbsp; Does anyone have an answer or solution to this problem?&nbsp; When I enter in fuel charges that have a rate that has 3 decimals and I have the system set at 2, it rounds the cost per unit and then multiplies that number by the total units so the grand total of that line item is off.</p><p>Instead, it should take the total number of units, multiply it by the unit price out to however many decimmals that price is and then round the total price to 2 decimals.&nbsp; Is ther a way to do that?</p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[redoctober83]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20428</uri>
			</author>
			<updated>2015-05-20T23:01:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=23564#p23564</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Decimal places of prices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=20502#p20502" />
			<content type="html"><![CDATA[<p>This would definitely be a useful amendment to the system. We have a supplier who&nbsp; have unit prices of products to 4 decimal places but the line total is 2 decimal places. Obviously when you are dealing with pricing you can&#039;t have partial pennies (more that 2 decimal places) but you often find product unit prices to have 3 or 4 places.</p><p>We are new to FA (but find it an all round great product) and our old system worked in this way. This way you always have posted invoices on the system that match your suppliers.</p><p>Would be grateful if you could consider this for a future update.</p><p>Steve</p>]]></content>
			<author>
				<name><![CDATA[shbrown100]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19476</uri>
			</author>
			<updated>2014-08-12T23:32:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=20502#p20502</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Decimal places of prices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=10567#p10567" />
			<content type="html"><![CDATA[<p>It almost sounds like a second setting would really be needed.</p><p>DECIMAL_PLACES_INTERNAL (accounting use) and DECIMAL_PLACES_EXTERNAL (seen by customers)</p><p>The problem is that at some point you need to actually round from 3 places to 2 places so that when you deal with<br />the ledger you never have partial pennies, invoices and payments need to be exact.</p><p>These 3 decimal place costed items, do you often sell 1 or 2?</p><p>sounds like money... are you dealing with 1/8ths?</p><p>tom</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2011-10-26T11:35:55Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=10567#p10567</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Decimal places of prices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=10544#p10544" />
			<content type="html"><![CDATA[<p>Hi,</p><p>Unfortunately that is not an option. What if I created a seperate&nbsp; price_decimal_format function and used that for unit price??</p><br /><p>Mike</p>]]></content>
			<author>
				<name><![CDATA[mike]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=9250</uri>
			</author>
			<updated>2011-10-24T13:19:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=10544#p10544</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Decimal places of prices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=10541#p10541" />
			<content type="html"><![CDATA[<p>No it is not. Maybe you should consider selling your items in bigger pieces.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2011-10-24T06:20:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=10541#p10541</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Decimal places of prices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=10535#p10535" />
			<content type="html"><![CDATA[<p>Hello everyone,</p><p>Some of our items are purchased at a unit price that contains 3 decimal places. Changing decimal places of prices/amounts in display setup changes all values throughout the system, and doesn&#039;t look good when most of your numbers only need to be 2 places.</p><p>Is it possible to have 3 decimal places on the unit price line and then 2 for all the totals or something along these lines??</p><p>Thanks,<br />Mike</p>]]></content>
			<author>
				<name><![CDATA[mike]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=9250</uri>
			</author>
			<updated>2011-10-23T23:04:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=10535#p10535</id>
		</entry>
</feed>
