<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Print Journal Entries: coping with multline comments]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=2999</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=2999&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Print Journal Entries: coping with multline comments.]]></description>
		<lastBuildDate>Sat, 21 Apr 2012 09:32:22 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Print Journal Entries: coping with multline comments]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=12305#p12305</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sat, 21 Apr 2012 09:32:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=12305#p12305</guid>
		</item>
		<item>
			<title><![CDATA[Re: Print Journal Entries: coping with multline comments]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=12303#p12303</link>
			<description><![CDATA[<p>Thanx Pete.</p><p>I will have a look at this and incorporate it in core.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sat, 21 Apr 2012 07:59:07 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=12303#p12303</guid>
		</item>
		<item>
			<title><![CDATA[Print Journal Entries: coping with multline comments]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=12301#p12301</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (p2409)]]></author>
			<pubDate>Sat, 21 Apr 2012 07:04:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=12301#p12301</guid>
		</item>
	</channel>
</rss>
