<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Missing Item Code when printing PO]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7340</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7340&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Missing Item Code when printing PO.]]></description>
		<lastBuildDate>Sat, 24 Feb 2018 04:34:14 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Missing Item Code when printing PO]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30885#p30885</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 24 Feb 2018 04:34:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30885#p30885</guid>
		</item>
		<item>
			<title><![CDATA[Re: Missing Item Code when printing PO]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30880#p30880</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 22 Feb 2018 08:19:17 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30880#p30880</guid>
		</item>
		<item>
			<title><![CDATA[Re: Missing Item Code when printing PO]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30878#p30878</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (larsblancohansen)]]></author>
			<pubDate>Wed, 21 Feb 2018 19:35:28 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30878#p30878</guid>
		</item>
		<item>
			<title><![CDATA[Re: Missing Item Code when printing PO]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30877#p30877</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Wed, 21 Feb 2018 17:42:52 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30877#p30877</guid>
		</item>
		<item>
			<title><![CDATA[Re: Missing Item Code when printing PO]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30876#p30876</link>
			<description><![CDATA[<p>Have you tried ticking the box &#039;Show Item Codes:&#039; in preferences?</p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Wed, 21 Feb 2018 17:20:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30876#p30876</guid>
		</item>
		<item>
			<title><![CDATA[Re: Missing Item Code when printing PO]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30875#p30875</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (larsblancohansen)]]></author>
			<pubDate>Wed, 21 Feb 2018 14:38:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30875#p30875</guid>
		</item>
		<item>
			<title><![CDATA[Re: Missing Item Code when printing PO]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30873#p30873</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 21 Feb 2018 14:13:29 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30873#p30873</guid>
		</item>
		<item>
			<title><![CDATA[Missing Item Code when printing PO]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30871#p30871</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (larsblancohansen)]]></author>
			<pubDate>Wed, 21 Feb 2018 09:54:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30871#p30871</guid>
		</item>
	</channel>
</rss>
