<?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 amend Purchase Order PDF]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=5582</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5582&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to amend Purchase Order PDF.]]></description>
		<lastBuildDate>Tue, 03 Mar 2015 13:19:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to amend Purchase Order PDF]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22753#p22753</link>
			<description><![CDATA[<p>Which version of FA are you on? Your &quot;==&quot; should be &quot;!=&quot;.<br />Also $Addr2 will always be an array and be available and you are comparing an array to a scalar value.<br />Where do you get &#039;NA&#039; for the value of $Addr2 ?<br />Lines 160 to 164 currently are:<br /></p><div class="codebox"><pre><code>// address2
        $this-&gt;row = $temp;
        $this-&gt;Text($mcol, $Addr2[&#039;name&#039;]);
        $this-&gt;NewLine();
        $this-&gt;TextWrapLines($mcol, $this-&gt;rightMargin - $mcol, $Addr2[&#039;address&#039;]);</code></pre></div><p>and the change you probably you wanted is:<br /></p><div class="codebox"><pre><code>// address2
        $this-&gt;row = $temp;
        // Added by Steve to not print company name if N/A
        if ($Addr2[&quot;name&quot;] != &quot;&quot;) {
            $this-&gt;Text($mcol, $Addr2[&#039;name&#039;]);
            $this-&gt;NewLine();
        }
        $this-&gt;TextWrapLines($mcol, $this-&gt;rightMargin - $mcol, $Addr2[&#039;address&#039;]);</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 03 Mar 2015 13:19:19 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22753#p22753</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to amend Purchase Order PDF]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22721#p22721</link>
			<description><![CDATA[<p>I have managed to sort this. Just for everybodies info I amended page /reporting/includes/header2.inc line 156 and changed to:-<br />// address2<br />&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;row = $temp;<br />&nbsp; &nbsp; &nbsp; &nbsp; // Added by Steve to not print company name if N/A<br />&nbsp; &nbsp; &nbsp; &nbsp; if ($Addr2 == &quot;N/A&quot;) {<br />&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;Text($mcol, $Addr2[&#039;name&#039;]);<br />&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;NewLine();<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;TextWrapLines($mcol, $this-&gt;rightMargin - $mcol, $Addr2[&#039;address&#039;]);<br />Regards,<br />Steve</p>]]></description>
			<author><![CDATA[null@example.com (shbrown100)]]></author>
			<pubDate>Thu, 26 Feb 2015 20:36:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22721#p22721</guid>
		</item>
		<item>
			<title><![CDATA[How to amend Purchase Order PDF]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=22719#p22719</link>
			<description><![CDATA[<p>Hi,</p><p>I need to amend the layout of the Purchase Orders very slightly. When we have a different delivery address the system always prints out the customer name as the first line. When we place orders for drop ship direct to customers, we don&#039;t want our company name appearing. I want to set up the code to print the company name if this section is blank (or N/A which is the default) anything else in this section should just be what&#039;s been entered. What file needs to be amended for this please.</p><p>Thanks,</p><p>Steve</p>]]></description>
			<author><![CDATA[null@example.com (shbrown100)]]></author>
			<pubDate>Thu, 26 Feb 2015 18:38:22 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=22719#p22719</guid>
		</item>
	</channel>
</rss>
