<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Missing Item Code when printing PO]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7340&amp;type=atom" />
	<updated>2018-02-24T04:34:14Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7340</id>
		<entry>
			<title type="html"><![CDATA[Re: Missing Item Code when printing PO]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30885#p30885" />
			<content type="html"><![CDATA[<p>The code changes stated in my post above are <strong>not required</strong>.</p><p>The <strong>show_codes</strong> field in the <strong>preferences</strong> form is meant to display <em>item_codes</em> in the drop down select boxes for items in the Web UI.</p><p>The <strong>show_po_item_codes</strong> entry in the <strong>sys-prefs</strong> table controlled by the <strong>Setup =&gt; Banking and GL Setup</strong> form is to direct the display of the item codes in the PO Report (<em>rep209.php</em>).</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-02-24T04:34:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30885#p30885</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Missing Item Code when printing PO]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30880#p30880" />
			<content type="html"><![CDATA[<p>The <strong>show_codes</strong> checkbox &quot;name&quot; is available in the preferences menu and gets stored in the <strong>users</strong> table.</p><p>The <strong>show_po_item_codes</strong> is present as an entry in the <strong>sys_prefs</strong> table. Under <strong>Setup =&gt; Banking and GL Setup =&gt; Show PO item codes</strong> can be checked, and we can then see the <strong>item_code</strong> printed out in the PO report (<strong>rep209.php</strong>).</p><p>In fixing this, we need to suppress the display of the Item Code heading if not chosen.</p><p>The <strong>class sys_prefs</strong> contains the method <strong>show_po_item_codes()</strong> which promptly returns the value from the <strong>sys_prefs</strong> table.</p><p>Hence, for now, change line 142 of <strong>reporting/rep209.php</strong>:<br /></p><div class="codebox"><pre><code>            if ($SysPrefs-&gt;show_po_item_codes()) {</code></pre></div><p>to be:<br /></p><div class="codebox"><pre><code>            if ($SysPrefs-&gt;show_po_item_codes() || user_show_codes()) {</code></pre></div><p>What is the logic behind this redundancy.....</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-02-22T08:19:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30880#p30880</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Missing Item Code when printing PO]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30878#p30878" />
			<content type="html"><![CDATA[<p>Thanks guys. </p><p>@poncho1234 - yes, I did tick the &#039;show item codes&#039; in preferences but it has not made a difference. </p><p>@Joe - I am just wondering why there is a header saying Item Code in the PO print if it is not supposed to be used. You can see it in the image file uploaded by apmuthu as the initial response. <br />I have decided to use the item codes in my records that the supplier has assigned. We are the sales agent so aside from services and import duty etc, we only buy from a single supplier. Using their item codes and having them printed on PO makes it easier for them to issue invoice correctly.</p>]]></content>
			<author>
				<name><![CDATA[larsblancohansen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19639</uri>
			</author>
			<updated>2018-02-21T19:35:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30878#p30878</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Missing Item Code when printing PO]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30877#p30877" />
			<content type="html"><![CDATA[<p>Hello,</p><p>Normally the Supplier does not use our item codes. You can set the item number in the Purchase prices. Here you can include the suppliers item number for the item. This is the reason for not showing our item code.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2018-02-21T17:42:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30877#p30877</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Missing Item Code when printing PO]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30876#p30876" />
			<content type="html"><![CDATA[<p>Have you tried ticking the box &#039;Show Item Codes:&#039; in preferences?</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2018-02-21T17:20:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30876#p30876</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Missing Item Code when printing PO]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30875#p30875" />
			<content type="html"><![CDATA[<p>Thank you for your assistance.</p><p>I am using version 2.3.24<br />I did not modify the php file, nor did I make any changes to the PHP/ MySQL versions. <br />I have not used the PO feature before so have not noticed if this problem has been ongoing but seems it has. </p><p>I see in the link you post that you have the same issue. </p><p>I am ordering a product that has - <br />Item Code: 1001<br />Item Description: Pepper Bird Original</p><p>It seems in the example you posted that you also do not have the Item Code printed under the Item Code header but instead the Item Description only.</p>]]></content>
			<author>
				<name><![CDATA[larsblancohansen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19639</uri>
			</author>
			<updated>2018-02-21T14:38:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30875#p30875</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Missing Item Code when printing PO]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30873#p30873" />
			<content type="html"><![CDATA[<p>Which version of FA are you using?<br />Did you modify the PO report file - rep209.php?<br />Did you recently change your PHP / MySQL versions?</p><p>https://frontaccounting.com/fawiki/uploads/Help/Rep209_PurchaseOrders.png</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-02-21T14:13:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30873#p30873</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Missing Item Code when printing PO]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30871#p30871" />
			<content type="html"><![CDATA[<p>When I print the PO, I am supposed to have the Item Codes in the left-hand side and then the Item Description. However, the item description is shifted all the way left and covering the column meant for Item code, which is missing. The headers are there but no space for the data. </p><p>Can someone help me get the Item Codes back into the printed PO?</p>]]></content>
			<author>
				<name><![CDATA[larsblancohansen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19639</uri>
			</author>
			<updated>2018-02-21T09:54:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30871#p30871</id>
		</entry>
</feed>
