<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — How to add a new parameter to custom report]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6791</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6791&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to add a new parameter to custom report.]]></description>
		<lastBuildDate>Sun, 28 May 2017 15:33:15 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to add a new parameter to custom report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=27917#p27917</link>
			<description><![CDATA[<p>The changed order of the parameters may have altered functioning of your report.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 28 May 2017 15:33:15 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=27917#p27917</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to add a new parameter to custom report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=27912#p27912</link>
			<description><![CDATA[<p>I guess you have missed something in the parameters list first in the report function.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sun, 28 May 2017 06:51:45 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=27912#p27912</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to add a new parameter to custom report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=27911#p27911</link>
			<description><![CDATA[<p>Hello I need help on this</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Sun, 28 May 2017 06:42:39 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=27911#p27911</guid>
		</item>
		<item>
			<title><![CDATA[How to add a new parameter to custom report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=27855#p27855</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Sat, 20 May 2017 05:00:37 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=27855#p27855</guid>
		</item>
	</channel>
</rss>
