<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Dimension is missing in Supplier Invoice View]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6371</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6371&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Dimension is missing in Supplier Invoice View.]]></description>
		<lastBuildDate>Tue, 26 Jul 2016 07:16:47 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Dimension is missing in Supplier Invoice View]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25870#p25870</link>
			<description><![CDATA[<p>Thanks. Fixed.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 26 Jul 2016 07:16:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25870#p25870</guid>
		</item>
		<item>
			<title><![CDATA[Re: Dimension is missing in Supplier Invoice View]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25869#p25869</link>
			<description><![CDATA[<p>@joe: may need a re-run for <a href="https://github.com/FrontAccountingERP/FA/commit/00e2b370d611a95a8deb43f2859edd5cc6792713">FA v2.4 RC1</a>.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 26 Jul 2016 06:51:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25869#p25869</guid>
		</item>
		<item>
			<title><![CDATA[Re: Dimension is missing in Supplier Invoice View]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25868#p25868</link>
			<description><![CDATA[<p>This bug has now been fixed.<br />Git Repositories for releases 2.3 and 2.4 have been updated.</p><p>Link to repository for <strong>Release 2.3.25</strong>:</p><p><a href="https://sourceforge.net/p/frontaccounting/git/ci/master/tree/">Release 2.3.25</a></p><p>Link to reporitory for <strong>Release 2.4 RC1</strong>:</p><p><a href="https://sourceforge.net/p/frontaccounting/git/ci/unstable/tree/">Release 2.4 RC1</a></p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 26 Jul 2016 06:20:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25868#p25868</guid>
		</item>
		<item>
			<title><![CDATA[Re: Dimension is missing in Supplier Invoice View]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25861#p25861</link>
			<description><![CDATA[<p>Finally I could explain you. Joe a little correction is that it is not in Sales Invoice but Supplier Invoices.</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Mon, 25 Jul 2016 08:53:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25861#p25861</guid>
		</item>
		<item>
			<title><![CDATA[Re: Dimension is missing in Supplier Invoice View]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25860#p25860</link>
			<description><![CDATA[<p>Ok, now I understand what the problem is. <br />In the Sales Invoice display of gl item lines the dimension is not shown. Will have a look at this.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 25 Jul 2016 08:36:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25860#p25860</guid>
		</item>
		<item>
			<title><![CDATA[Re: Dimension is missing in Supplier Invoice View]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25859#p25859</link>
			<description><![CDATA[<p>The <strong>gl_trans</strong> table has the <strong>dimension</strong>s data that is displayed in the GL view. The <strong>function get_gl_trans()</strong> in the file <strong>gl/includes/db/gl_db_trans.inc</strong> is the source of the displayed field contents of which the dimension data is a part - ie., line 50 in <strong>gl/iew/gl_trans_view.php</strong>:</p><div class="codebox"><pre><code>$result = get_gl_trans($_GET[&#039;type_id&#039;], $_GET[&#039;trans_no&#039;]);</code></pre></div><p>In the case of the Invoice View, the <strong>$supp_trans</strong> gets passed by reference through line 36 in <strong>purchasing/view/view_supp_invoice.php</strong>:</p><div class="codebox"><pre><code>read_supp_invoice($trans_no, ST_SUPPINVOICE, $supp_trans);</code></pre></div><p>The <strong>function read_supp_invoice()</strong> is in <strong>purchasing/includes/db/invoice_db.inc</strong> and it does not have any dimension data and hence the <span class="bbu"><strong>absence </strong></span>of values in the dimension columns in the Invoice View!</p><p>Also, for each sales invoice item line, all entries pertaining to the <strong>gl_trans</strong> table will get pulled in if it is joined and records taken. Otherwise, the <em>default value of dimension data</em> in the <strong>suppliers</strong> table get sucked in <span class="bbu">erroneously</span> if taken from there.</p><p>Sample sql taken from the <strong>function read_supp_invoice()</strong> and modified to join the <strong>gl_trans</strong> table :<br /></p><div class="codebox"><pre><code>SELECT supp_trans.*, supp_name, gl.dimension_id, gl.dimension2_id
FROM 1_supp_trans supp_trans LEFT JOIN 1_suppliers USING (supplier_id)
    LEFT JOIN 1_gl_trans gl ON (supp_trans.type=gl.type AND supp_trans.trans_no=gl.type_no)
WHERE supp_trans.trans_no = 11 AND supp_trans.type = 20;</code></pre></div><p>will <strong>erroneously</strong> produce multiple records for each line item entry of the sales invoice display.</p><p>Hence the <strong>Dimension</strong> column in the Sales Invoice View should be removed - pictures 07 and 08 in the attachment illustrate it.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 25 Jul 2016 04:49:09 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25859#p25859</guid>
		</item>
		<item>
			<title><![CDATA[Re: Dimension is missing in Supplier Invoice View]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25858#p25858</link>
			<description><![CDATA[<p>Yes, I checked the Direct Invoice (Purchases).<br />http://fa.boxygen.biz/fa2325/purchasing/view/view_supp_invoice.php?trans_no=10</p><p>I will now test the Supplier Invoice.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 25 Jul 2016 03:35:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25858#p25858</guid>
		</item>
		<item>
			<title><![CDATA[Re: Dimension is missing in Supplier Invoice View]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25850#p25850</link>
			<description><![CDATA[<p>@Joe, you can reproduce this error here on a fresh installation of FA2.3.25.</p><p>Before you Login View this screen shot </p><p>http://prnt.sc/bwx3l3</p><p>Click below to login</p><p>http://fa.boxygen.biz/fa2325/purchasing/supplier_invoice.php?AddedID=9</p><p>Username: aeronvista<br />pass: usayed2005</p><p>After you Login Please </p><p>1. Click View this Invoice<br /> Under the 3rd Column name Dimension you will find No Value but it should have &quot;PNG Job NO 2&quot; as defined in the above screen shot.</p><p>2. Click View the General Entry of this invoice <br />Under the 3rd Column named Dimension you will find value &quot;PNG Job No2&quot; in Second Row.</p><p>I hope its clear.</p><p>@Apmuthu, i think you have mixed up Supplier Invoices with Direct Invoice. The problem I am reporting is of Supplier Invoice in which a Direct GL entry can be passed against as supplier. While in Direct Invoice Inventory Item needs to be selected.</p><p>Regards.</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Sun, 24 Jul 2016 17:36:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25850#p25850</guid>
		</item>
		<item>
			<title><![CDATA[Re: Dimension is missing in Supplier Invoice View]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25849#p25849</link>
			<description><![CDATA[<p>Created a Direct Invoice under Purchasing in the Training Co - FA v2.3.25. The dimension appears in the GL View and not in the Invoice. The Dimension is set in the Supplier page and any Dimension can be chosen for the Direct Purchase Invoice during creation time. </p><p>What theme are you using - any changes in it&#039;s template you have done that may be erroneous or missing data? The standard FA 2.3 theme does not even display the Dimension column for the Supplier Invoice. Please use the Training Co (en_US-demo.sql Chart) for testing and comparing with your specific installs.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 24 Jul 2016 16:33:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25849#p25849</guid>
		</item>
		<item>
			<title><![CDATA[Re: Dimension is missing in Supplier Invoice View]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25846#p25846</link>
			<description><![CDATA[<p>Hello,</p><p>I cannot reproduce this error. I am testing on 2.3.25. <br />If you have done some specific entry or changed the entry please advice.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sun, 24 Jul 2016 12:18:10 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25846#p25846</guid>
		</item>
		<item>
			<title><![CDATA[Re: Dimension is missing in Supplier Invoice View]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25845#p25845</link>
			<description><![CDATA[<p>Yes it is blank in both screenshots - probably record did not have any dimension attached. Only in the second line it appears on the JV. How do you want it to be?</p><p>Line 288 of <strong>purchasing/includes/ui/invoice_ui.inc</strong> below is responsible for display of Dimension 1:<br /></p><div class="codebox"><pre><code>                   label_cell(get_dimension_string($entered_gl_code-&gt;gl_dim, true));</code></pre></div><br /><p>@joe: is this an error?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 24 Jul 2016 11:16:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25845#p25845</guid>
		</item>
		<item>
			<title><![CDATA[Re: Dimension is missing in Supplier Invoice View]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25843#p25843</link>
			<description><![CDATA[<p>@apmuthu the 3rd Field (Dimension Column) Value is null in the lower table in Supplier Invoice View. Please check it carefully.</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Sun, 24 Jul 2016 10:20:17 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25843#p25843</guid>
		</item>
		<item>
			<title><![CDATA[Re: Dimension is missing in Supplier Invoice View]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25841#p25841</link>
			<description><![CDATA[<p>It is present in the 3rd field in the lower table in both cases.<br />Images zipped up in this post.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 24 Jul 2016 08:23:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25841#p25841</guid>
		</item>
		<item>
			<title><![CDATA[Dimension is missing in Supplier Invoice View]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25839#p25839</link>
			<description><![CDATA[<p>Please view the following two images</p><p>http://prnt.sc/bwsarq (Supplier Invoice)</p><p>http://prnt.sc/bwsam2 (Journal Entry of Supplier Invoice)</p><p>You can see that the Dimension is appearing in Journal Entry View but not in Supplier Invoice View.</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Sun, 24 Jul 2016 07:27:02 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25839#p25839</guid>
		</item>
	</channel>
</rss>
