<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Item Adjustments Note disable rounding of Unit Cost]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9108&amp;type=atom" />
	<updated>2020-12-18T10:28:12Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9108</id>
		<entry>
			<title type="html"><![CDATA[Re: Item Adjustments Note disable rounding of Unit Cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38783#p38783" />
			<content type="html"><![CDATA[<p>Hello and thanks to @islamsaeid3, @notrinos and @apmuthu for seeing this.</p><p>This has been fixed and committed to stable repo (?). I think we are close to a 2.4.10 release <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>You can download the fixed file <a href="https://sourceforge.net/p/frontaccounting/git/ci/master/tree/inventory/includes/item_adjustments_ui.inc">here</a> and replace in /inventory/includes/item_adjustments_ui.inc.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2020-12-18T10:28:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38783#p38783</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Adjustments Note disable rounding of Unit Cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38780#p38780" />
			<content type="html"><![CDATA[<p>@joe: Please check and correct it:<br />Line 202 in <strong>inventory/includes/item_adjustments_ui.inc</strong>:<br /></p><div class="codebox"><pre><code>            amount_cells(null, &#039;std_cost&#039;, null, null, null, $dec);</code></pre></div><p>needs to be replaced with:<br /></p><div class="codebox"><pre><code>            amount_cells(null, &#039;std_cost&#039;, null, null, null, $dec2);</code></pre></div><p>This line was introduced in commit on 2019-06-28 as Line 194:<br /><a href="https://github.com/FrontAccountingERP/FA/commit/ead8970cab93706f8ffdd430236e81b61af31baa"> Inventory Adjustment: negative adjustment should always use current average item cost.</a></p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-12-18T04:50:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38780#p38780</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Adjustments Note disable rounding of Unit Cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38779#p38779" />
			<content type="html"><![CDATA[<p>I confirm the rounding problem.<br />Fix: line 202 of item_adjustment_ui.inc should be<br /></p><div class="codebox"><pre><code>amount_cells(null, &#039;std_cost&#039;, null, null, null, $dec2);</code></pre></div><p>The last passed variable should be $dec2 not $dec, $dec is for quantity decimal</p>]]></content>
			<author>
				<name><![CDATA[notrinos]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36772</uri>
			</author>
			<updated>2020-12-18T02:22:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38779#p38779</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Adjustments Note disable rounding of Unit Cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38764#p38764" />
			<content type="html"><![CDATA[<p>Try with FA 2.4.9+ and see if the issue persists.<br />Also, state your PHP/MySQL/Platform versions.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-12-17T16:04:33Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38764#p38764</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Adjustments Note disable rounding of Unit Cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38755#p38755" />
			<content type="html"><![CDATA[<p>Frontaccounting V 2.4.8<br />@joe @apmuthu</p>]]></content>
			<author>
				<name><![CDATA[islamsaeid3]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=44904</uri>
			</author>
			<updated>2020-12-16T19:25:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38755#p38755</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Adjustments Note disable rounding of Unit Cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38751#p38751" />
			<content type="html"><![CDATA[<p>I&nbsp; am also unable to reproduce the issue. But I am strongly suggesting something to make changes In our program. As I seeing some of moderate companies are asking me why FA&nbsp; gives cost update entry by wrong. It happens because of the decimal values and we have double in MySql field type. That allows more decimal values to the system.&nbsp; That&#039;s really some dangerous values to a single item which definitely&nbsp; won&#039;t have that much huge value.&nbsp; I will get you the sample when I get similar scenario with clients. Usually the decimal values are not properly controlled from our side. We should make some changes for it.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2020-12-16T08:45:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38751#p38751</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Adjustments Note disable rounding of Unit Cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38745#p38745" />
			<content type="html"><![CDATA[<p>I cannot reproduce this error. Which version?</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2020-12-15T17:22:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38745#p38745</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Adjustments Note disable rounding of Unit Cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38742#p38742" />
			<content type="html"><![CDATA[<p>@joe: why is this?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-12-15T16:13:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38742#p38742</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Adjustments Note disable rounding of Unit Cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38727#p38727" />
			<content type="html"><![CDATA[<p>Hello @islamsaeid3, </p><p>Its good to hear. I will check the function as well. Thank you.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2020-12-12T13:35:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38727#p38727</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Adjustments Note disable rounding of Unit Cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38726#p38726" />
			<content type="html"><![CDATA[<p>Hi Kvvaradha,</p><p>Thank you for your response. I tried this option by preferences but not solved..</p><p>I solved it by editing <strong>inventory/includes/item_adjustments_ui.inc</strong>&nbsp; like this:</p><p>Replace this code:&nbsp; <br /></p><div class="codebox"><pre><code>amount_cells(null,&#039;std_cost&#039;,null,null,null,$dec);</code></pre></div><p>with:<br /></p><div class="codebox"><pre><code>amount_cells(null,&#039;std_cost&#039;);</code></pre></div><p>It has worked for me.</p>]]></content>
			<author>
				<name><![CDATA[islamsaeid3]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=44904</uri>
			</author>
			<updated>2020-12-12T12:05:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38726#p38726</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Item Adjustments Note disable rounding of Unit Cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38718#p38718" />
			<content type="html"><![CDATA[<p>There is rounding option available in Preference page. Did you change it to apply more. So it would affect here better..</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2020-12-08T19:24:21Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38718#p38718</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Item Adjustments Note disable rounding of Unit Cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38715#p38715" />
			<content type="html"><![CDATA[<p>Hi Every one <br />At the first, I would like to thank you for the great effort that you have made to develop this great software .. When I read your blogs about what you have faced in terms of issues and how to communicate to find solutions and provide support, you made me proud of you all.<br />Secondly, i&#039;m asking your help and support to solve this Issue : <br />1-Open Inventory Module.<br />2-Open Inventory Adjustments.<br />3-Select item and fill QTY.<br />4- Fill Unit Cost by 100.56 But system rounding Unit cost automaticly to 101<br />So Kindly suuport me to disable Auto Rounding for Unit cost on Item Adjustment Note.<br />your quick response is appreciated.<br />Regards</p>]]></content>
			<author>
				<name><![CDATA[islamsaeid3]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=44904</uri>
			</author>
			<updated>2020-12-08T14:02:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38715#p38715</id>
		</entry>
</feed>
