<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — How to round total selling price from $1,499.94 to $1,500]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9734&amp;type=atom" />
	<updated>2023-09-16T03:57:53Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9734</id>
		<entry>
			<title type="html"><![CDATA[Re: How to round total selling price from $1,499.94 to $1,500]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42564#p42564" />
			<content type="html"><![CDATA[<p>Add a negative discount of 6 cents</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2023-09-16T03:57:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42564#p42564</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to round total selling price from $1,499.94 to $1,500]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42540#p42540" />
			<content type="html"><![CDATA[<p>I&#039;m trying to round total selling price from $1,499.94 to $1,500 in direct invoice under sale module but it doesn&#039;t work and I tried it in the Direct supplier invoice under purchase module and is working.</p><p>Please someone should help me on how to achieve the same result with direct invoice under sale</p>]]></content>
			<author>
				<name><![CDATA[gabbropee]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=46208</uri>
			</author>
			<updated>2023-08-31T14:27:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42540#p42540</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to round total selling price from $1,499.94 to $1,500]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41439#p41439" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>gabbropee wrote:</cite><blockquote><p>I have an item for sale, the unit price is 83.33.<br />If I sell 18 pcs it will be 1,499,94 but I want to round it to 1,500.</p><p>Please I need help on how to round the total price to 1,500</p><p>Thank you in advance</p></blockquote></div><p>You may be better off using a &#039;kit&#039; for this scenario, read about kits in the wiki - <a href="https://frontaccounting.com/fawiki/index.php?n=Help.SalesKitsAndAliasCodes">https://frontaccounting.com/fawiki/inde … AliasCodes</a></p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2022-09-10T19:48:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41439#p41439</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to round total selling price from $1,499.94 to $1,500]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41428#p41428" />
			<content type="html"><![CDATA[<p>I have told the rounding trick above.&nbsp; But this&nbsp; unit mapping is a different concept. That we have coded here like this. Each unit will have a separate price for it and also both purchase and sales prices are available to update and use it&nbsp; </p><p>This video will help you to understand it.</p><p>https://youtu.be/MM415WT-kZY</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2022-09-08T18:25:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41428#p41428</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to round total selling price from $1,499.94 to $1,500]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41427#p41427" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>kvvaradha wrote:</cite><blockquote><p>This is something we need to round and check it.<br />There are two scenarios here. </p><p>1,499.94</p><p>And </p><p>1500.09</p><p>For both cases we have to round it to 1500. </p><p>Lets workout this way.</p><p>$amount = 1499.94<br />$rounded_amount = round(1499.94); // 1500 here</p><p>&nbsp; ov discount = rounded_amount- amount </p><p>// here this will get the discount in both negative and positive.&nbsp; You should&nbsp; store it on ov discount.&nbsp; I guess it was not used from last updates. Use it by updating the code. If you need you can add discount gl for the discount given.</p></blockquote></div><p>Please can you explain this further.<br />We have a product that it&#039;s unit price is 83.333 but we sell in carton. 18 PCs in 1 carton and the carton price is 1500.<br />I have not really figured out the best way to handle this. Please help me if you know the best way to go about it.<br />Thank you</p>]]></content>
			<author>
				<name><![CDATA[gabbropee]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=46208</uri>
			</author>
			<updated>2022-09-08T13:35:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41427#p41427</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to round total selling price from $1,499.94 to $1,500]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40787#p40787" />
			<content type="html"><![CDATA[<p>This is something we need to round and check it.<br />There are two scenarios here. </p><p>1,499.94</p><p>And </p><p>1500.09</p><p>For both cases we have to round it to 1500. </p><p>Lets workout this way.</p><p>$amount = 1499.94<br />$rounded_amount = round(1499.94); // 1500 here</p><p>&nbsp; ov discount = rounded_amount- amount </p><p>// here this will get the discount in both negative and positive.&nbsp; You should&nbsp; store it on ov discount.&nbsp; I guess it was not used from last updates. Use it by updating the code. If you need you can add discount gl for the discount given.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2022-03-31T13:37:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40787#p40787</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to round total selling price from $1,499.94 to $1,500]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40782#p40782" />
			<content type="html"><![CDATA[<p>Add .06 as shipping cost.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2022-03-30T03:35:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40782#p40782</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to round total selling price from $1,499.94 to $1,500]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40780#p40780" />
			<content type="html"><![CDATA[<p>I have an item for sale, the unit price is 83.33.<br />If I sell 18 pcs it will be 1,499,94 but I want to round it to 1,500.</p><p>Please I need help on how to round the total price to 1,500</p><p>Thank you in advance</p>]]></content>
			<author>
				<name><![CDATA[gabbropee]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=46208</uri>
			</author>
			<updated>2022-03-29T23:35:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40780#p40780</id>
		</entry>
</feed>
