<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Print Journal Entries: coping with multline comments]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=2999&amp;type=atom" />
	<updated>2012-04-21T09:32:22Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=2999</id>
		<entry>
			<title type="html"><![CDATA[Re: Print Journal Entries: coping with multline comments]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=12305#p12305" />
			<content type="html"><![CDATA[<p>Hello again,</p><p>it is not necessary to do all the lines that Pete suggested. You can just change line 107 and 108 from<br /></p><div class="codebox"><pre><code>            $rep-&gt;TextCol(3, 6, $coms);
            $rep-&gt;NewLine(2);</code></pre></div><p>to<br /></p><div class="codebox"><pre><code>            $rep-&gt;TextColLines(3, 6, $coms);
            $rep-&gt;NewLine();</code></pre></div><p>That will do it.</p><p>Is changed in HG repository to go to next minor.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2012-04-21T09:32:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=12305#p12305</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Print Journal Entries: coping with multline comments]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=12303#p12303" />
			<content type="html"><![CDATA[<p>Thanx Pete.</p><p>I will have a look at this and incorporate it in core.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2012-04-21T07:59:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=12303#p12303</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Print Journal Entries: coping with multline comments]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=12301#p12301" />
			<content type="html"><![CDATA[<p>THe current journal entries report (rep702.php), and possible a few other reports, don&#039;t cope with multiline comments in your transactions.<br />As a quick fix, you can do this kind of modification which will split out the comment lines on the report so you can see them all:</p><p>Around line 99 of rep702.php, modifiy the code so it looks like the following:<br /></p><div class="codebox"><pre><code>            $memo = get_comments_string($myrow[&#039;type&#039;], $myrow[&#039;type_no&#039;]);
            // Pete: multline journal display.
            $replines = array();
            if ($memo != &#039;&#039;)
            {
                if ($coms == &quot;&quot;)
                    $coms = $memo;
                else
                    $coms .= &quot; / &quot;.$memo;
                // turn memo text into multiline array for printing
                $replines = explode(&quot;\n&quot;,$coms);
            }
            // Print each line of comment separately, rather than a single line
            foreach ($replines as $repline) {
                $rep-&gt;TextCol(3,6,$repline);
                $rep-&gt;NewLine();
            }</code></pre></div><p>This is a very quick fix, I can&#039;t vouch for the quality of it as PDF report modification can be hard, but it should get you going if you desperately need it.</p><p>Pete</p>]]></content>
			<author>
				<name><![CDATA[p2409]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=267</uri>
			</author>
			<updated>2012-04-21T07:04:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=12301#p12301</id>
		</entry>
</feed>
