<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — No Delivery Address on Purchase Order report]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1190&amp;type=atom" />
	<updated>2010-03-12T02:44:28Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=1190</id>
		<entry>
			<title type="html"><![CDATA[Re: No Delivery Address on Purchase Order report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5250#p5250" />
			<content type="html"><![CDATA[<p>OK I got it, been working with 2.2.6 (why is it tat every time I install an open source product, a new version issues the next day?)</p><p>Header2.inc needs following changes</p><div class="quotebox"><blockquote><p>if ($sales_order != NULL)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;row = $temp;<br />//<br />// These modifications By RodW 12 March 2010 to make delivery Address Print On Purchase order<br />//<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($doctype == ST_PURCHORDER){<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // RodW - Comment out following two lines if you don&#039;t want to print your own Company name<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //$this-&gt;Text($mcol, $this-&gt;company[&#039;coy_name&#039;]);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //$this-&gt;NewLine();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // RodW - Prints Delivery Address here<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;TextWrapLines($mcol, $this-&gt;rightMargin - $mcol, $sales_order[&#039;delivery_address&#039;]);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />//<br />// End RodW&#039;s Modifications<br />//<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; elseif ($doctype != ST_SUPPAYMENT &amp;&amp; isset($sales_order[&#039;deliver_to&#039;]))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;Text($mcol, $sales_order[&#039;deliver_to&#039;]);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;NewLine();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($doctype != ST_SUPPAYMENT &amp;&amp; isset($sales_order[&#039;deliver_to&#039;]))<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;TextWrapLines($mcol, $this-&gt;rightMargin - $mcol, $sales_order[&#039;delivery_address&#039;]);<br />&nbsp; &nbsp; &nbsp; &nbsp; }</p></blockquote></div><p>doctext.inc needs the following change right at the top of the file</p><div class="quotebox"><blockquote><p>if (isset($header2type))<br />{<br />&nbsp; &nbsp; $doc_Cust_no = _(&quot;Cust no&quot;);<br />&nbsp; &nbsp; $doc_Date = _(&quot;Date&quot;);<br />&nbsp; &nbsp; if ($doctype == ST_PURCHORDER || $doctype == ST_SUPPAYMENT) // Purchase Order<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; $doc_Charge_To = _(&quot;Order To&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; $doc_Delivered_To = _(&quot;Charge To&quot;);<br />//<br />// Changes by RodW 10 March 2010 to print delivery address on Purchase order<br />//<br />&nbsp; &nbsp; &nbsp; &nbsp; if ($doctype == ST_PURCHORDER)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $doc_Delivered_To = _(&quot;Deliver To&quot;);<br />//<br />// End Changes by RodW<br />//</p></blockquote></div><p>Sorry Notepad does not count lines! <img src="https://frontaccounting.com/punbb/img/smilies/sad.png" width="15" height="15" alt="sad" /></p><p>I don&#039;t think the Name of your company (coy_name) should be printed in the delivery address. A lot of companies eg a building suupply company would have the same requirement to ship to a totally different address. eg.&nbsp; A builder orders building material that is delivered to my front lawn for a job he is doing for me.</p>]]></content>
			<author>
				<name><![CDATA[rodw]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=713</uri>
			</author>
			<updated>2010-03-12T02:44:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5250#p5250</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: No Delivery Address on Purchase Order report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5249#p5249" />
			<content type="html"><![CDATA[<p>Ah, Now I see it, I missed the <strong>purch_orders.*, </strong> in the select statement, the report gets all fields so I think I just start at step 2. Sounds too easy. I am sure something will go wrong!</p>]]></content>
			<author>
				<name><![CDATA[rodw]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=713</uri>
			</author>
			<updated>2010-03-12T02:11:40Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5249#p5249</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: No Delivery Address on Purchase Order report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5248#p5248" />
			<content type="html"><![CDATA[<p>OK, this is 1st effort ever at PHP, looking at this, it looks like:<br />1. Ammend function get_po($order_no) in rep209.php to retrieve the delivery address from PO as it does not seem to be in the SELECT statement.<br />2. Print the address in header 2.inc. I think that should be done by modifying this block:<br /></p><div class="codebox"><pre><code>if ($sales_order != NULL)
        {
            $this-&gt;row = $temp;
            if ($doctype == ST_PURCHORDER)
                $this-&gt;Text($mcol, $this-&gt;company[&#039;coy_name&#039;]);
            elseif ($doctype != ST_SUPPAYMENT &amp;&amp; isset($sales_order[&#039;deliver_to&#039;]))
                $this-&gt;Text($mcol, $sales_order[&#039;deliver_to&#039;]);
            $this-&gt;NewLine();
            if ($doctype != ST_SUPPAYMENT &amp;&amp; isset($sales_order[&#039;deliver_to&#039;]))
                $this-&gt;TextWrapLines($mcol, $this-&gt;rightMargin - $mcol, $sales_order[&#039;delivery_address&#039;]);
        }</code></pre></div><p>3. Change Description in doctext.inc for the right hand text block to &quot;Deliver to&quot;</p><p>However, I see the delivery address is being printed for ST_SUPPAYMENT. Is that being retrieved elsewhere in which case I can skip step 1? That would be nice and easy!</p><p>Is there a list of report numbers somewhere? being able to find the&nbsp; ST_SUPPAYMENT report would be a great help</p>]]></content>
			<author>
				<name><![CDATA[rodw]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=713</uri>
			</author>
			<updated>2010-03-12T01:57:06Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5248#p5248</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: No Delivery Address on Purchase Order report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5247#p5247" />
			<content type="html"><![CDATA[<p>Purchase order rep209, not rep122 (there is a mistake in header comment). Right address header is at he top of doctext/doctext2.inc, and content in header2.inc<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2010-03-11T21:20:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5247#p5247</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: No Delivery Address on Purchase Order report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5245#p5245" />
			<content type="html"><![CDATA[<p>The main problem is simply the address as it is currenty meaningless for any supplier with no delivery address on it</p><p>Quantities should look after themselves. I raise a purchase order for an item to purchase it (add one to stock) and also a sales order and invoice for my customer (remove one from stock).</p><p>I just cut and paste the customer&#039;s delivery address into the purchase order when creating the purchase order.</p><p>I see the Purchase order is rep112.php but I can&#039;t work out where/how the delivery addrss block (right side might be formatted) Where do I look for an example?</p>]]></content>
			<author>
				<name><![CDATA[rodw]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=713</uri>
			</author>
			<updated>2010-03-11T20:51:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5245#p5245</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: No Delivery Address on Purchase Order report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5226#p5226" />
			<content type="html"><![CDATA[<p>Yes, there is some inconsistence here, but fixing displayed addresses is not enough to support third party deliveries. How do you want to keep control over quantities delivered ? Currently&nbsp; purchase invoice is always entered against GRNs, but items are never received into inventory in your case.</p><p>Unfortunately I cannot keep care of this bug right now, so please add the bug report to Mantis.</p><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2010-03-11T08:36:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5226#p5226</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[No Delivery Address on Purchase Order report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=5223#p5223" />
			<content type="html"><![CDATA[<p>Hi Guys</p><p>I just tried to enter a couple of purchase orders where goods are to be shipped directly to my customers by the Supplier. </p><p>The Delivery Address I entered is shown when viewing the Purchas order button the printed report that goes to the Supplier, the Delivery Address is not shown. Instead it says Charge to: My Company Name.</p><p>Surely this is a bug? Not much point entering a delivery address if you don&#039;t tell the supplier what it is.</p><p>How can I fix this?</p>]]></content>
			<author>
				<name><![CDATA[rodw]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=713</uri>
			</author>
			<updated>2010-03-11T05:15:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=5223#p5223</id>
		</entry>
</feed>
