<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — How to amend Purchase Order PDF]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5582&amp;type=atom" />
	<updated>2015-03-03T13:19:19Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5582</id>
		<entry>
			<title type="html"><![CDATA[Re: How to amend Purchase Order PDF]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22753#p22753" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2015-03-03T13:19:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22753#p22753</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to amend Purchase Order PDF]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22721#p22721" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[shbrown100]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19476</uri>
			</author>
			<updated>2015-02-26T20:36:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22721#p22721</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to amend Purchase Order PDF]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=22719#p22719" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[shbrown100]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19476</uri>
			</author>
			<updated>2015-02-26T18:38:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=22719#p22719</id>
		</entry>
</feed>
