<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — New rep308.php submitted with updations.]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4039&amp;type=atom" />
	<updated>2013-04-21T05:23:33Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4039</id>
		<entry>
			<title type="html"><![CDATA[Re: New rep308.php submitted with updations.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16430#p16430" />
			<content type="html"><![CDATA[<p>It appears that the <strong>rep308.php</strong> should be the way it is in <a href="https://frontaccounting.hg.sourceforge.net/hgweb/frontaccounting/frontaccounting/rev/552cd9537824">HG 3224</a>.</p><p>This is so because the class variable <strong>$headers2</strong> displays first and then the class variable <strong>$headers</strong> is displayed in the class method <strong>FrontReport::Info()</strong> in <strong>pdf_reports.inc</strong> lines 358-367:<br /></p><div class="codebox"><pre><code>        if ($this-&gt;headers2 != null)
        {
            $count = count($this-&gt;headers2);
            for ($i = 0; $i &lt; $count; $i++)
                $this-&gt;TextCol2($i, $i + 1,    $this-&gt;headers2[$i]);
            $this-&gt;NewLine();
        }
        $count = count($this-&gt;headers);
        for ($i = 0; $i &lt; $count; $i++)
            $this-&gt;TextCol($i, $i + 1, $this-&gt;headers[$i]);</code></pre></div><p>Some involuted logic in the FrontReport class method Info() indeed!</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-04-21T05:23:33Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16430#p16430</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: New rep308.php submitted with updations.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16428#p16428" />
			<content type="html"><![CDATA[<p>Thanks for the updated version now in the FA Core as of <a href="https://frontaccounting.hg.sourceforge.net/hgweb/frontaccounting/frontaccounting/rev/552cd9537824">HG 3224</a>.</p><p>Line 164 in <strong>rep308.php</strong>:<br /></p><div class="codebox"><pre><code>    $rep-&gt;Info($params, $cols, $headers2, $aligns, $cols, $headers, $aligns);</code></pre></div><p>should be:<br /></p><div class="codebox"><pre><code>    $rep-&gt;Info($params, $cols, $headers, $aligns, $cols, $headers2, $aligns);</code></pre></div><p>The <strong>$headers</strong> and <strong>$headers2</strong> variables got swapped.</p><p>function Info is defined in <strong>reporting/includes/pdf_report.inc</strong> as<br /></p><div class="codebox"><pre><code> function Info($params, $cols, $headers, $aligns,
  $cols2 = null, $headers2 = null, $aligns2 = null,
  $companylogoenable = false, $footerenable = false, $footertext = &#039;&#039;)</code></pre></div><p>A new string is needed in <strong>empty.po</strong>:<br /></p><div class="codebox"><pre><code>C&amp;osted Inventory Movement Report</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-04-21T01:16:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16428#p16428</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[New rep308.php submitted with updations.]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=16418#p16418" />
			<content type="html"><![CDATA[<p>The erstwhile <a href="https://github.com/apmuthu/frontaccounting/tree/master/extensions/Extensions/rep_stock_movement"><strong>rep_stock_movement</strong></a> extension for FA has Standard Costs as one of the parameters in the SQL and material cost was computed in it. When the extension was merged into the FA core as <strong>rep307.php</strong> on 2013-01-24, the Standard Material Costs got left out due to paucity of space on the standard A4 and Letter paper sizes and was called Inventory <strong>M</strong>ovement Report.</p><p>Another report, <strong>rep308.php</strong> was made by Janusz/Joe around the same time but was not included in the FA core. Attached herewith is the improved version which is fully functional:</p><p>1. Commented out hardcoding of $orientation.<br />2. Retained UOM (units).<br />3. Moved extra function below regular function just as in rep307.php<br />4. Adjusted the indent values of the displayed fields - set for A4 but should work for Letter as well.<br />5. Ordered the report ids in the reports_main.php</p><p>Kindly include it in the FA Core. I have named it C<strong>o</strong>sted Inventory Movement Report for now.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-04-20T11:29:40Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=16418#p16418</id>
		</entry>
</feed>
