<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Old Sales Quote Reference Fix]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6950</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6950&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Old Sales Quote Reference Fix.]]></description>
		<lastBuildDate>Wed, 30 Aug 2017 04:54:29 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Old Sales Quote Reference Fix]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28513#p28513</link>
			<description><![CDATA[<p>Thanks apmuthu. Will fix this.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Wed, 30 Aug 2017 04:54:29 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28513#p28513</guid>
		</item>
		<item>
			<title><![CDATA[Old Sales Quote Reference Fix]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28512#p28512</link>
			<description><![CDATA[<p>When viewing an old / existing quote, the Reference Number must be taken from the table record and not the next one.</p><p>1. In file <strong>sales/view/view_sales_order.php</strong> line 42:<br /></p><div class="codebox"><pre><code>$_SESSION[&#039;View&#039;] = new Cart($_GET[&#039;trans_type&#039;], $_GET[&#039;trans_no&#039;], true);</code></pre></div><p>should be replaced with<br /></p><div class="codebox"><pre><code>$_SESSION[&#039;View&#039;] = new Cart($_GET[&#039;trans_type&#039;], $_GET[&#039;trans_no&#039;]);</code></pre></div><p>as the last parameter in the Cart class (defined in <strong>sales/includes/class_cart.inc</strong>) constructor is for determining if a new Reference is to be taken or an existing one is to be used. This is how it is <a href="https://github.com/apmuthu/frontaccounting/blob/master/core/sales/view/view_sales_order.php#L42">in FA 2.3.26</a> where the last parameter if false is omitted as that is the default for the constructor..</p><p>2. The leading semicolon (;) on line 96 can be removed as well in the same file.</p><p>3. The line 24 in the Cart class file <strong>sales/includes/class_cart.inc</strong>:<br /></p><div class="codebox"><pre><code>class cart</code></pre></div><p>can be corrected to<br /></p><div class="codebox"><pre><code>class Cart</code></pre></div><p>as it is used that way in all the scripts and in the extensions.</p><p><s>@joe: can commit this.</s> - <a href="https://github.com/FrontAccountingERP/FA/commit/4fb55e726607d40a22272c0c432c3df8b422b447">Committed</a></p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 29 Aug 2017 17:32:55 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28512#p28512</guid>
		</item>
	</channel>
</rss>
