<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Wrong unit cost for AP Surf Set in demo data]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7554&amp;type=atom" />
	<updated>2018-06-18T11:46:40Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7554</id>
		<entry>
			<title type="html"><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31936#p31936" />
			<content type="html"><![CDATA[<p>@joe: Thanks. That was a real re-write! The <strong>0_refs</strong> did not need an update - is it?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-06-18T11:46:40Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31936#p31936</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31935#p31935" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2018-06-18T09:53:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31935#p31935</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31878#p31878" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-06-14T01:52:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31878#p31878</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31877#p31877" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[notrinos]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36772</uri>
			</author>
			<updated>2018-06-14T01:23:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31877#p31877</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31876#p31876" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-06-14T01:07:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31876#p31876</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31864#p31864" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2018-06-12T18:52:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31864#p31864</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31860#p31860" />
			<content type="html"><![CDATA[<p>In the same vein, shouldn&#039;t the other entries be type=29 (ST_MANURECEIVE) instead of the current type=26?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-06-12T11:27:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31860#p31860</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31858#p31858" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2018-06-12T05:47:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31858#p31858</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31856#p31856" />
			<content type="html"><![CDATA[<p>@Joe<br />No, the mentioned table is 0_stock_moves not the workorders table.</p>]]></content>
			<author>
				<name><![CDATA[notrinos]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36772</uri>
			</author>
			<updated>2018-06-12T04:42:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31856#p31856</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31852#p31852" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2018-06-11T21:19:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31852#p31852</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31850#p31850" />
			<content type="html"><![CDATA[<p>I will have a look at it later.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2018-06-11T19:36:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31850#p31850</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Wrong unit cost for AP Surf Set in demo data]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31849#p31849" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-06-11T18:06:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31849#p31849</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Wrong unit cost for AP Surf Set in demo data]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31848#p31848" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[notrinos]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36772</uri>
			</author>
			<updated>2018-06-11T15:38:36Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31848#p31848</id>
		</entry>
</feed>
