<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — How to add a new parameter to custom report]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6791&amp;type=atom" />
	<updated>2017-05-28T15:33:15Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6791</id>
		<entry>
			<title type="html"><![CDATA[Re: How to add a new parameter to custom report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27917#p27917" />
			<content type="html"><![CDATA[<p>The changed order of the parameters may have altered functioning of your report.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-05-28T15:33:15Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27917#p27917</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to add a new parameter to custom report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27912#p27912" />
			<content type="html"><![CDATA[<p>I guess you have missed something in the parameters list first in the report function.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-05-28T06:51:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27912#p27912</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to add a new parameter to custom report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27911#p27911" />
			<content type="html"><![CDATA[<p>Hello I need help on this</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2017-05-28T06:42:39Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27911#p27911</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to add a new parameter to custom report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=27855#p27855" />
			<content type="html"><![CDATA[<p>I am trying to create a custom report for inventory conversion.</p><p>I added a parameter in custom report as below</p><p>global $reports;</p><br /><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $reports-&gt;addReport(RC_INVENTORY, &#039;_inventory_conversion&#039;, _(&#039;Invetory Conversion&#039;),<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; array(&nbsp; &nbsp; _(&#039;Start Date&#039;) =&gt; &#039;DATEBEGINM&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _(&#039;End Date&#039;) =&gt; &#039;DATEENDM&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _(&#039;Inventory Category&#039;) =&gt; &#039;CATEGORIES&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _(&#039;Location&#039;) =&gt; &#039;LOCATIONS&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _(&#039;Sales Folk&#039;) =&gt; &#039;SALESMEN&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _(&#039;Conversion UOM&#039;) =&gt; &#039;UOM&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _(&#039;Show Service Items&#039;) =&gt; &#039;YES_NO&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _(&#039;Comments&#039;) =&gt; &#039;TEXTBOX&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _(&#039;Orientation&#039;) =&gt; &#039;ORIENTATION&#039;,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _(&#039;Destination&#039;) =&gt; &#039;DESTINATION&#039;));</p><p>The new Parameter is UOM</p><p>Then I added following lines in reports_classes.inc</p><p>case &#039;UOM&#039;:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return stock_units_list(_(&#039;Units of Measure:&#039;), &#039;units&#039;, null);</p><p>But When I try to run report it gives following error</p><br /><p>Unknown report parameter type:UOM<br />D:\xampp\htdocs\boxygen\includes\ui\ui_msgs.inc:14:&nbsp; &nbsp; trigger_error(&#039;Unknown report parameter type:UOM&#039;,&#039;256&#039;)<br />D:\xampp\htdocs\boxygen\reporting\includes\reports_classes.inc:153:&nbsp; &nbsp; display_error(&#039;Unknown report parameter type:UOM&#039;)<br />D:\xampp\htdocs\boxygen\reporting\includes\reports_classes.inc:103:&nbsp; &nbsp; (BoxReports Object)-&gt;getOptions((Array[10]),&#039;_inventory_conversion&#039;)<br />D:\xampp\htdocs\boxygen\reporting\reports_main.php:530:&nbsp; &nbsp; (BoxReports Object)-&gt;getDisplay()</p><p>Please see the screen shot</p><p><a href="http://prntscr.com/f9xvus">See Error</a></p><p>What am I missing?</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2017-05-20T05:00:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=27855#p27855</id>
		</entry>
</feed>
