<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=Verify_Product_Cost_Rollup</id>
	<title>Verify Product Cost Rollup - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://in.compucrete.com/index.php?action=history&amp;feed=atom&amp;title=Verify_Product_Cost_Rollup"/>
	<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Verify_Product_Cost_Rollup&amp;action=history"/>
	<updated>2026-05-15T15:29:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>http://in.compucrete.com/index.php?title=Verify_Product_Cost_Rollup&amp;diff=676&amp;oldid=prev</id>
		<title>WikiAdmin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Verify_Product_Cost_Rollup&amp;diff=676&amp;oldid=prev"/>
		<updated>2023-07-14T13:00:38Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:00, 14 July 2023&lt;/td&gt;
				&lt;/tr&gt;
&lt;!-- diff cache key my_wiki:diff::1.12:old-675:rev-676 --&gt;
&lt;/table&gt;</summary>
		<author><name>WikiAdmin</name></author>
	</entry>
	<entry>
		<id>http://in.compucrete.com/index.php?title=Verify_Product_Cost_Rollup&amp;diff=675&amp;oldid=prev</id>
		<title>Intra&gt;Chanson at 14:52, 16 May 2018</title>
		<link rel="alternate" type="text/html" href="http://in.compucrete.com/index.php?title=Verify_Product_Cost_Rollup&amp;diff=675&amp;oldid=prev"/>
		<updated>2018-05-16T14:52:59Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category: Inventory]]&lt;br /&gt;
[[Category: SQL]]&lt;br /&gt;
&lt;br /&gt;
All Products&lt;br /&gt;
&amp;lt;pre&amp;gt;select p1.product_class,p1.product_code,p1.description_1,p1.standard_cost, &lt;br /&gt;
  sum(qty_assembly*p2.standard_cost) &amp;quot;Calc Std Cost&amp;quot;, &lt;br /&gt;
  (sum(qty_assembly*p2.standard_cost))-p1.standard_cost &amp;quot;Diff&amp;quot; &lt;br /&gt;
from artprod p1 &lt;br /&gt;
inner join artprstr x on p1.product_code=x.assy_product_code inner join artprod p2 &lt;br /&gt;
     on x.comp_product_code=p2.product_code &lt;br /&gt;
group by p1.product_class, p1.product_code,p1.description_1,p1.standard_cost order by 1 ,2&lt;br /&gt;
order by 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Products with cost mis-match&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
select p1.product_class,p1.product_code,p1.description_1,p1.standard_cost,&lt;br /&gt;
  sum(qty_assembly*p2.standard_cost) &amp;quot;Calc Std Cost&amp;quot;,&lt;br /&gt;
  (sum(qty_assembly*p2.standard_cost))-p1.standard_cost &amp;quot;Diff&amp;quot;&lt;br /&gt;
from artprod p1&lt;br /&gt;
inner join artprstr x on p1.product_code=x.assy_product_code&lt;br /&gt;
inner join artprod p2 on x.comp_product_code=p2.product_code&lt;br /&gt;
where abs(p1.standard_cost-&lt;br /&gt;
     (select sum(x2.qty_assembly*p3.standard_cost) from artprstr x2&lt;br /&gt;
     inner join artprod p3 on x2.comp_product_code=p3.product_code&lt;br /&gt;
     where p1.product_code=x2.assy_product_code ))&amp;gt; .0001&lt;br /&gt;
group by p1.product_class, p1.product_code,p1.description_1,p1.standard_cost&lt;br /&gt;
order by 1 ,2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Intra&gt;Chanson</name></author>
	</entry>
</feed>