<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Display quantity on hand on purchase order]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9063&amp;type=atom" />
	<updated>2021-05-31T04:28:13Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9063</id>
		<entry>
			<title type="html"><![CDATA[Re: Display quantity on hand on purchase order]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39496#p39496" />
			<content type="html"><![CDATA[<p>Yes dude I have got your email and replied you back.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2021-05-31T04:28:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39496#p39496</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Display quantity on hand on purchase order]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39492#p39492" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>kvvaradha wrote:</cite><blockquote><p>this will work for you. you need to open your po_ui.inc </p><p>and paste you need to update this code inside display_po_items</p><div class="codebox"><pre><code>     $th = array(_(&quot;Item Code&quot;), _(&quot;Item Description&quot;), _(&quot;Qty in Hand&quot;),_(&quot;Quantity&quot;), _(&quot;Received&quot;),
           _(&quot;Unit&quot;), _(&quot;Required Delivery Date&quot;), $order-&gt;tax_included ? _(&quot;Price after Tax&quot;) : _(&quot;Price before Tax&quot;), _(&quot;Line Total&quot;), &quot;&quot;);

    if ($order-&gt;trans_type != ST_PURCHORDER)
        array_remove($th, 6);
    if ($new)
        array_remove($th, 4);</code></pre></div><p>and then you need to update this code <br /></p><div class="codebox"><pre><code> $dec2 = $_POST[&#039;qty_hand&#039;] = 0; </code></pre></div><p>and few&nbsp; more lines to be updated. <br /></p><div class="codebox"><pre><code>$_POST[&#039;qty_hand&#039;] = get_qoh_on_date($_POST[&#039;stock_id&#039;]);
        if (list_updated(&#039;stock_id&#039;)) {

                $Ajax-&gt;activate(&#039;price&#039;);
                $Ajax-&gt;activate(&#039;units&#039;);
                $Ajax-&gt;activate(&#039;qty&#039;);
                $Ajax-&gt;activate(&#039;req_del_date&#039;);
                $Ajax-&gt;activate(&#039;line_total&#039;);
                $Ajax-&gt;activate(&#039;items_table&#039;);
        }</code></pre></div><p>and then you need to add the display function to see them in results. <br /></p><div class="codebox"><pre><code>}
    label_cell(price_format($_POST[&#039;qty_hand&#039;]));
    if ($order-&gt;fixed_asset) {</code></pre></div><p>if you update this code you can see them in po, grn, direct invoices pages with quantity in hand</p></blockquote></div><p>Please reply me, I have also contacted you by forum email.</p>]]></content>
			<author>
				<name><![CDATA[msuhail197]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45680</uri>
			</author>
			<updated>2021-05-31T01:56:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39492#p39492</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Display quantity on hand on purchase order]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39484#p39484" />
			<content type="html"><![CDATA[<p>I am weak in language, I would be grateful if you could tell me the line number of po_ui.inc,&nbsp; in which these codes have to be updated or added .</p>]]></content>
			<author>
				<name><![CDATA[msuhail197]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45680</uri>
			</author>
			<updated>2021-05-28T01:07:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39484#p39484</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Display quantity on hand on purchase order]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38578#p38578" />
			<content type="html"><![CDATA[<p>I got above to work, now what&#039;s missing is to make quantity on hand appear on the printed copy. </p><p>What file am I meant to update?</p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[mureithi.lm]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45676</uri>
			</author>
			<updated>2020-11-07T07:52:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38578#p38578</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Display quantity on hand on purchase order]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38569#p38569" />
			<content type="html"><![CDATA[<p>this will work for you. you need to open your po_ui.inc </p><p>and paste you need to update this code inside display_po_items</p><div class="codebox"><pre><code>     $th = array(_(&quot;Item Code&quot;), _(&quot;Item Description&quot;), _(&quot;Qty in Hand&quot;),_(&quot;Quantity&quot;), _(&quot;Received&quot;),
           _(&quot;Unit&quot;), _(&quot;Required Delivery Date&quot;), $order-&gt;tax_included ? _(&quot;Price after Tax&quot;) : _(&quot;Price before Tax&quot;), _(&quot;Line Total&quot;), &quot;&quot;);

    if ($order-&gt;trans_type != ST_PURCHORDER)
        array_remove($th, 6);
    if ($new)
        array_remove($th, 4);</code></pre></div><p>and then you need to update this code <br /></p><div class="codebox"><pre><code> $dec2 = $_POST[&#039;qty_hand&#039;] = 0; </code></pre></div><p>and few&nbsp; more lines to be updated. <br /></p><div class="codebox"><pre><code>$_POST[&#039;qty_hand&#039;] = get_qoh_on_date($_POST[&#039;stock_id&#039;]);
        if (list_updated(&#039;stock_id&#039;)) {

                $Ajax-&gt;activate(&#039;price&#039;);
                $Ajax-&gt;activate(&#039;units&#039;);
                $Ajax-&gt;activate(&#039;qty&#039;);
                $Ajax-&gt;activate(&#039;req_del_date&#039;);
                $Ajax-&gt;activate(&#039;line_total&#039;);
                $Ajax-&gt;activate(&#039;items_table&#039;);
        }</code></pre></div><p>and then you need to add the display function to see them in results. <br /></p><div class="codebox"><pre><code>}
    label_cell(price_format($_POST[&#039;qty_hand&#039;]));
    if ($order-&gt;fixed_asset) {</code></pre></div><p>if you update this code you can see them in po, grn, direct invoices pages with quantity in hand</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2020-11-05T12:10:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38569#p38569</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Display quantity on hand on purchase order]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38565#p38565" />
			<content type="html"><![CDATA[<p>Hello team,</p><p>How can the subject be arrived at? </p><p>It is a control for our firm to avoid overstocking.</p><p>Thanks in advance</p>]]></content>
			<author>
				<name><![CDATA[mureithi.lm]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=45676</uri>
			</author>
			<updated>2020-11-04T13:35:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38565#p38565</id>
		</entry>
</feed>
