<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Wrong unit cost for AP Surf Set in demo data]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7554</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7554&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Wrong unit cost for AP Surf Set in demo data.]]></description>
		<lastBuildDate>Mon, 18 Jun 2018 11:46:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31936#p31936</link>
			<description><![CDATA[<p>@joe: Thanks. That was a real re-write! The <strong>0_refs</strong> did not need an update - is it?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 18 Jun 2018 11:46:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31936#p31936</guid>
		</item>
		<item>
			<title><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31935#p31935</link>
			<description><![CDATA[<p>The demo file, en_US-demo.sql, has now been corrected and <a href="https://github.com/FrontAccountingERP/FA/commit/5107ceab65e06486e878c9013dbb3c5036618b95">committed</a> to repo.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 18 Jun 2018 09:53:02 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31935#p31935</guid>
		</item>
		<item>
			<title><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31878#p31878</link>
			<description><![CDATA[<p>Should there be any change in the <strong>0_refs</strong> table as well?<br />Also the <strong>wo_requirements</strong> costs are listed as 0 for WO # 1.</p><p>The <strong>type</strong> field in the <strong>gl_trans table</strong> too needs to be set to 29:<br /></p><div class="codebox"><pre><code>UPDATE 0_gl_trans SET `type`=&#039;29&#039; WHERE `counter`=&#039;13&#039;; 
UPDATE 0_gl_trans SET `type`=&#039;29&#039; WHERE `counter`=&#039;14&#039;; 
UPDATE 0_gl_trans SET `type`=&#039;29&#039; WHERE `counter`=&#039;15&#039;; </code></pre></div><p>and lines 908-910 in <strong>en_US-demo.sql</strong> should be:<br /></p><div class="codebox"><pre><code>(&#039;13&#039;, &#039;29&#039;, &#039;1&#039;, &#039;2017-05-05&#039;, &#039;1510&#039;, &#039;1 * iPad Air 2 16GB&#039;, &#039;-400&#039;, &#039;0&#039;, &#039;0&#039;, NULL, NULL),
(&#039;14&#039;, &#039;29&#039;, &#039;1&#039;, &#039;2017-05-05&#039;, &#039;1510&#039;, &#039;1 * iPhone 6 64GB&#039;, &#039;-300&#039;, &#039;0&#039;, &#039;0&#039;, NULL, NULL),
(&#039;15&#039;, &#039;29&#039;, &#039;1&#039;, &#039;2017-05-05&#039;, &#039;1510&#039;, &#039;1 * iPhone Cover Case&#039;, &#039;-20&#039;, &#039;0&#039;, &#039;0&#039;, NULL, NULL),</code></pre></div><p>At the moment, any zero amount item (like Support in the WO #0) will be treated as Work in Progress and have it&#039;s amount set to total value of all inputs and later contra-ed on finished product receival. See Anatomy SQL in previous post. Wonder what happens when there are more than one zero cost input items!</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 14 Jun 2018 01:52:07 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31878#p31878</guid>
		</item>
		<item>
			<title><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31877#p31877</link>
			<description><![CDATA[<p>one more record is missing for table <strong>wo_manufacture</strong></p><div class="codebox"><pre><code>INSERT INTO `0_wo_manufacture` VALUES (1, &#039;001/2017&#039;, 1, 2, &#039;2017-05-05&#039;);</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (notrinos)]]></author>
			<pubDate>Thu, 14 Jun 2018 01:23:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31877#p31877</guid>
		</item>
		<item>
			<title><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31876#p31876</link>
			<description><![CDATA[<p>Even after the last commit, there is however no change in the WO_Production Costs for WO #1 shown in the attachment in the <a href="https://frontaccounting.com/punbb/viewtopic.php?pid=31849#p31849">Post #2</a> in this thread. Everything still remains in the finished product receival part of the view instead of the input items being part of issues.</p><p>The complete anatomy of an Assembly Work Order is listed <a href="https://github.com/FrontAccountingERP/FA/commit/95f98ed74ac6379b95e2ceb1eb0c9bbcd36fd4a9#commitcomment-29357367">here</a> and attached as well.</p><br /><p>The time of entry is available only in the <strong>audit_trail</strong> table.<br />The amounts are <em>not rounded off</em> in the <strong>stock_moves</strong> and <strong>wo_requirements</strong> tables.<br />The amounts are <em>rounded off</em> in the <strong>gl_trans</strong> and <strong>stock_master</strong> tables.<br />The <strong>stock_master.material_cost</strong> field is computed as the <em>weighted average</em> of existing stock quantity and value and those of the currently produced item (or any other chosen programmed means).</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 14 Jun 2018 01:07:03 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31876#p31876</guid>
		</item>
		<item>
			<title><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31864#p31864</link>
			<description><![CDATA[<p>@apmuthu</p><p>I guess your sharp eyes have spotted an issue belonging to the old 2.3 release.</p><p>Will have a look at it later.</p><p>Joe</p><p><a href="https://github.com/FrontAccountingERP/FA/commit/95f98ed74ac6379b95e2ceb1eb0c9bbcd36fd4a9">Committed</a>.</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 12 Jun 2018 18:52:30 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31864#p31864</guid>
		</item>
		<item>
			<title><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31860#p31860</link>
			<description><![CDATA[<p>In the same vein, shouldn&#039;t the other entries be type=29 (ST_MANURECEIVE) instead of the current type=26?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 12 Jun 2018 11:27:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31860#p31860</guid>
		</item>
		<item>
			<title><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31858#p31858</link>
			<description><![CDATA[<p>@notrinos</p><p>Sorry you are absolutely right. But a good thing is that we got hand of the additional_costs in the 0_workorders table <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p><a href="https://github.com/FrontAccountingERP/FA/commit/32700e43822b5d4afc03747849bd21ff1cd82ea5">Committed</a>.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 12 Jun 2018 05:47:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31858#p31858</guid>
		</item>
		<item>
			<title><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31856#p31856</link>
			<description><![CDATA[<p>@Joe<br />No, the mentioned table is 0_stock_moves not the workorders table.</p>]]></description>
			<author><![CDATA[null@example.com (notrinos)]]></author>
			<pubDate>Tue, 12 Jun 2018 04:42:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31856#p31856</guid>
		</item>
		<item>
			<title><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31852#p31852</link>
			<description><![CDATA[<p>The last field in the workorders table is additional_costs and it seems redundant after our 2.4 release.</p><p>It is not used any more. The material costs, overhead_costs etc. is on the stock_moves and stock_master tables.</p><p>We will remove this field when releasing the 2.5 version.</p><p>So the value of 0 is ok at the moment.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 11 Jun 2018 21:19:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31852#p31852</guid>
		</item>
		<item>
			<title><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31850#p31850</link>
			<description><![CDATA[<p>I will have a look at it later.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 11 Jun 2018 19:36:50 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31850#p31850</guid>
		</item>
		<item>
			<title><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31849#p31849</link>
			<description><![CDATA[<p>001/2017 can be of different types.<br />In this case it is type=26, a WorkOrder.<br />Check to see if it has been voided - No, it is not.</p><p>Attached is the default Demo data of Work Order and a new work order&#039;s entries for comparison.</p><p>@joe: does the Demo Data need any change?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 11 Jun 2018 18:06:34 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31849#p31849</guid>
		</item>
		<item>
			<title><![CDATA[Wrong unit cost for AP Surf Set in demo data]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31848#p31848</link>
			<description><![CDATA[<p>In <strong>en_US-demo.sql</strong> line 1947, unit cost of item 202 should be 360 instead of 0</p><p>So this line needs to be replaced with:</p><div class="codebox"><pre><code>(&#039;10&#039;, &#039;1&#039;, &#039;201&#039;, &#039;26&#039;, &#039;DEF&#039;, &#039;2017-05-05&#039;, &#039;0&#039;, &#039;001/2017&#039;, &#039;2&#039;, &#039;360&#039;),</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (notrinos)]]></author>
			<pubDate>Mon, 11 Jun 2018 15:38:36 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31848#p31848</guid>
		</item>
	</channel>
</rss>
