<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Work order give me a error in my Standard cost]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6953&amp;type=atom" />
	<updated>2017-09-03T06:04:35Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6953</id>
		<entry>
			<title type="html"><![CDATA[Re: Work order give me a error in my Standard cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28556#p28556" />
			<content type="html"><![CDATA[<p>Works ok now. Thanks @karl1234 for detecting this bug. And also thanks for your suggestion.</p><p>Janusz has updated the Official 2.4 <a href="https://sourceforge.net/p/frontaccounting/git/ci/master/tree/manufacturing/includes/db/work_order_produce_items_db.inc">repo</a>.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-09-03T06:04:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28556#p28556</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Work order give me a error in my Standard cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28555#p28555" />
			<content type="html"><![CDATA[<p>@karl1234: good work!</p><p><a href="https://github.com/FrontAccountingERP/FA/commit/fcf15181965c266c81d7f142cd5e92e7818e958e">Committed</a>.</p><p>FA 2.3.x not affected.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-09-03T00:56:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28555#p28555</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Work order give me a error in my Standard cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28554#p28554" />
			<content type="html"><![CDATA[<p>I think I have solved the problem.</p><p>In <strong>function work_order_produce()</strong> in file&nbsp; <strong>manufacturing/includes/db/work_order_produce_items_db.inc</strong>, change lines 84-87:</p><div class="codebox"><pre><code>add_stock_move(ST_WORKORDER, $product[&quot;stock_id&quot;], $woid,
    $product[&quot;loc_code&quot;], $date_, $ref, $product[&#039;units_issued&#039;]+$quantity, $unit_cost); 

update_material_cost($product[&#039;stock_id&#039;], $product[&#039;units_issued&#039;]+$quantity, $unit_cost, $date_);</code></pre></div><p>to</p><div class="codebox"><pre><code>update_material_cost($product[&#039;stock_id&#039;], $product[&#039;units_issued&#039;]+$quantity, $unit_cost, $date_);
        
add_stock_move(ST_WORKORDER, $product[&quot;stock_id&quot;], $woid,
    $product[&quot;loc_code&quot;], $date_, $ref, $product[&#039;units_issued&#039;]+$quantity, $unit_cost); </code></pre></div><p>You need to do this because the <strong>$qoh</strong> in the <strong>function update_material_cost()</strong> is required to be the original <em>qoh</em> before the stock move in <strong>add_stock_move()</strong>.</p><p>Hope this helps.</p>]]></content>
			<author>
				<name><![CDATA[karl1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41732</uri>
			</author>
			<updated>2017-09-02T20:02:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28554#p28554</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Work order give me a error in my Standard cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28550#p28550" />
			<content type="html"><![CDATA[<p>Yes, this is a bug. I will have Janusz to look at this. He rewrote a lot of routines in the Manufacturing for 2.4.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-09-02T12:26:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28550#p28550</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Work order give me a error in my Standard cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28548#p28548" />
			<content type="html"><![CDATA[<p>I will do, but we have never had any troubles with these costs, have we?</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-09-02T10:39:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28548#p28548</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Work order give me a error in my Standard cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28544#p28544" />
			<content type="html"><![CDATA[<p>There is certainly no decimals issue in using all hard currencies and the SA Rand.</p><p>Posting as Guest has been hopefully disabled by now.</p><p>The kit is formed in Assembly like a bunch of items sold together as a pack. It will have another Stock ID as well and hence placing them in stock should be no issue.</p><p>Items and Inventory =&gt; Sales Kits</p><p>@joe: Does this warrant a check? <s>Assign the first post in this thread to user: @karl1234.</s> (done)</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-09-02T09:22:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28544#p28544</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Work order give me a error in my Standard cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28541#p28541" />
			<content type="html"><![CDATA[<p>Hello, Yes I posted as a guest, but all registered now. </p><p>Thank you for the reply.&nbsp; I&#039;m not/can&#039;t use sales kits because once the the item is complete it must be placed in stock. And then it gets transferred to a consignment location.</p><p>Any idea why i get this random number showing in my Unit cost?&nbsp; &nbsp;I can send you some screen shots.</p>]]></content>
			<author>
				<name><![CDATA[karl1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41732</uri>
			</author>
			<updated>2017-09-02T07:28:05Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28541#p28541</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Work order give me a error in my Standard cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28540#p28540" />
			<content type="html"><![CDATA[<p>It appears that your email id is not available and your credentials are wrong. Kindly contact the board admin (@joe) for account validation.</p><p>Sell the Necklace as a Kit of 2 items - a sort of package.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-09-02T04:32:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28540#p28540</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Work order give me a error in my Standard cost]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28539#p28539" />
			<content type="html"><![CDATA[<p>Hi All</p><p>I&#039;m having some issues with my Work Order updating my standard cost with some random number.&nbsp; Can someone identify what I am doing wrong. </p><p>I have a BOM with only 2 item in it.<br />1x Chain<br />1x Pendant<br />Result: 1 x Necklace</p><p>I am adding no Labour or Overhead cost.</p><p>My costed BOM says.&nbsp; &nbsp;<br />1x Chain @ 39.1249<br />1x Pendant @ 44.3617<br />Result: 1 x Necklace @ 83.4866</p><p>I run the Work Order. All correct amounts are removed on the GL Side</p><p>However when I go to the Necklace in Invertory/Items it gives me a Standard cost, Unit Cost of :44.198770588336</p><p>It does this for all my work orders</p><p>HELP</p>]]></content>
			<author>
				<name><![CDATA[Karl1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41732</uri>
			</author>
			<updated>2017-09-01T20:55:33Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28539#p28539</id>
		</entry>
</feed>
