<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Reference problem]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6943</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6943&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Reference problem.]]></description>
		<lastBuildDate>Mon, 28 Aug 2017 16:16:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Reference problem]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28501#p28501</link>
			<description><![CDATA[<p>Only some Sales Quotes have the original Quote Date editable whilst others do not. Also when the Customer name, Branch, Valid Till Date and Payment Terms are changed, the reference value shown in the <strong>View Sales Quote</strong> page reverts to the first number in the template but the <span class="bbu">database entries</span> and <strong>Print Sales Quote</strong> are okay.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 28 Aug 2017 16:16:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28501#p28501</guid>
		</item>
		<item>
			<title><![CDATA[Re: Reference problem]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28500#p28500</link>
			<description><![CDATA[<p>Make sure that the company folder and all it&#039;s subfolders are writeable by the web server owner.</p><p>To enlarge the F2 screen for customers replace Line 506 in <strong>includes/ui/ui_controls.inc</strong> from <br /></p><div class="codebox"><pre><code>        113,    _(&quot;Customers&quot;), 900, 500),</code></pre></div><p>with<br /></p><div class="codebox"><pre><code>        113,    _(&quot;Customers&quot;), 900, 600),</code></pre></div><p><s>@joe: can commit this.</s><br /><a href="https://github.com/FrontAccountingERP/FA/commit/9988555dbed61bdf6a11a19eb6a4ec52dc0d586c">Committed</a></p><p>Why are we sprinkling variable and array assignments in files that otherwise contain functions only?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 28 Aug 2017 16:14:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28500#p28500</guid>
		</item>
		<item>
			<title><![CDATA[Re: Reference problem]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28499#p28499</link>
			<description><![CDATA[<p>Great, now the references work, thank you all. One problem is with popup window when using F4 button, see video (the select button is missing , because the main menu&nbsp; is also present in the popup). I would also like to have a larger pop window, because it&#039;s a bit too small . Where can I change the size? The upload of backups also doesn&#039;t work (folder company / 0 has the rights 775, error: File was not uploaded into the system.).</p><p><a href="https://www.youtube.com/watch?v=HZb9bjSjtZM&amp;feature=youtu.be">Video</a></p><p>Greeting&#039;s Mihael</p>]]></description>
			<author><![CDATA[null@example.com (mf1040)]]></author>
			<pubDate>Mon, 28 Aug 2017 16:05:52 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28499#p28499</guid>
		</item>
		<item>
			<title><![CDATA[Re: Reference problem]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28498#p28498</link>
			<description><![CDATA[<p>There is no way to extend / change the validity end date of a quotation for cash only quotes.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 28 Aug 2017 15:55:51 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28498#p28498</guid>
		</item>
		<item>
			<title><![CDATA[Re: Reference problem]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28496#p28496</link>
			<description><![CDATA[<p>After applying @itronics update:</p><p>Fiscal years 2016 and 2017 are open.<br />Company is set to Fiscal Year 2016.<br />3 Quotes - Nos. 1,2,3 are created in 2017 fiscal year.<br />1 Quote - No. 4 is created in 2016 fiscal year now during Aug 2017.</p><p>The View Quote shows the reference as 004/2016 whereas it should be 001/2016 which it is in the refs table.<br />The Print Quote shows 001/2016 as the Quote No (reference) in the header and in the middle, it shows Quotation No. 4.</p><p>These need to be fixed as well.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 28 Aug 2017 13:05:57 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28496#p28496</guid>
		</item>
		<item>
			<title><![CDATA[Re: Reference problem]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28495#p28495</link>
			<description><![CDATA[<p>Yes, indeed there is a bug in references handling during document edition. It will be fixed in next 2.4.* release.<br />In mean time, if you don&#039;t want to wait, <a href="https://sourceforge.net/p/frontaccounting/git/ci/95b0f12c88c15a89e6d73f8f02ec2cd042167bed/">just fix it in your local app sources</a>.</p><p>Thank you for pointing this problem.</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Mon, 28 Aug 2017 11:32:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28495#p28495</guid>
		</item>
		<item>
			<title><![CDATA[Re: Reference problem]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28494#p28494</link>
			<description><![CDATA[<p>Whilst this is being done by fixing the <strong>function get_sql_for_sales_orders_view()</strong> in <strong>sales/includes/db/sales_order_db.inc</strong>, the indents of the last few lines before the <strong>return</strong> statement in it can be fixed as well.</p><p>Also the <strong>function date2sql()</strong> in <strong>includes/date_functions.inc</strong> can be fixed by replacing:<br /></p><div class="codebox"><pre><code>    if ($date_ == null || strlen($date_) == 0)
        return &quot;&quot;;

    $date_ = trim($date_);</code></pre></div><p>with<br /></p><div class="codebox"><pre><code>    $date_ = trim($date_);

    if ($date_ == null || strlen($date_) == 0)
        return &quot;&quot;;</code></pre></div><p><a href="https://github.com/FrontAccountingERP/FA/commit/7c0d74930927c837225710f89591cba93d16ac5f">Committed</a></p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 28 Aug 2017 09:48:07 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28494#p28494</guid>
		</item>
		<item>
			<title><![CDATA[Re: Reference problem]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28493#p28493</link>
			<description><![CDATA[<p>I will send this to Janusz.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 28 Aug 2017 09:14:38 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28493#p28493</guid>
		</item>
		<item>
			<title><![CDATA[Re: Reference problem]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28492#p28492</link>
			<description><![CDATA[<p>If a Sales Quotation is entered in the current fiscal year then all is okay.<br />Why should you quote as of any older fiscal year?</p><p>Check your install and you will find that the Company&#039;s current fiscal year is 2016 instead of 2017 (hope you have created 2017).</p><p>@joe: I can confirm this to be an issue in FA 2.4.2+. If you enter a Sales Quotation (possibly Sales Order too) in any previous fiscal year then it will not show up in a transaction search (Sales Quotation Inquiry). Also in a listing of Sales quotations, we can disable the GL entries icon. Any further new / edit Sales Quotation entry will show up the last reference value instead of the relevant next ref value for the new one / same reference value of the one to be edited.</p><p>Best is not to allow creation of any Sales Quotation in any previous fiscal year with an allow override permission for edge cases like accounting from archived vouchers. In any case this issue needs resolution.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 28 Aug 2017 08:51:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28492#p28492</guid>
		</item>
		<item>
			<title><![CDATA[Re: Reference problem]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28491#p28491</link>
			<description><![CDATA[<p>Sorry, bad quality</p><p><a href="https://www.youtube.com/watch?v=QMy3RdXtSKU&amp;feature=youtu.be">YOUTUBE</a></p>]]></description>
			<author><![CDATA[null@example.com (mf1040)]]></author>
			<pubDate>Sun, 27 Aug 2017 19:39:05 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28491#p28491</guid>
		</item>
		<item>
			<title><![CDATA[Re: Reference problem]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28490#p28490</link>
			<description><![CDATA[<p>I installed a new version of 2.42 with DEMO data from Frontaccounting.com, the same error occurs. I am interested in how to read the program reference. In which folders are the scripts?</p><p>I do not know exactly if we understand each other, so I made a short Screen Capture on the problem.</p><p><a href="https://drive.google.com/file/d/0B5xSrmfwObFgRktoZHBzQWQ4NjQ/view?usp=sharing">VIDEO</a> (37.6 MB)</p>]]></description>
			<author><![CDATA[null@example.com (mf1040)]]></author>
			<pubDate>Sun, 27 Aug 2017 19:23:33 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28490#p28490</guid>
		</item>
		<item>
			<title><![CDATA[Re: Reference problem]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28488#p28488</link>
			<description><![CDATA[<p>Check your db tables and remember you are using a non-numeric table prefix.</p><p>In the db:<br />1. You have 2 entries for the same item in the same sales quotation but no sales order.<br />2. You have 1 sales quotation (and the corresponding entry in the refs table).<br />3. You have no sales invoices.</p><p>These can be verified in the Setup -&gt; View/Print Transactions page.</p><br /><p>Here is how to trouble shoot it.<br />1. Take a backup of a freshly installed en_US-demo.sql based default company.<br />2. Take another backup of your company db.<br />3. Replace all company db table&#039;s prefixes with &quot;0_&quot; to match the first one.<br />4. Use any diff tool (<a href="http://www.winmerge.org">WinMerge</a>) to check the differences between the two backups.</p><p>You did not have the 2017 year in your fiscal years table and I have created it.<br />You made the sales quotation in Aug 2017 and expected it to be valid till end of Jan 2017!<br />Your operational fiscal year was 2016 and hence the reference was needed to be reset each time as your quote was for 2017. I have now made it to be the newly created fiscal year 2017.</p><p>Now all is well.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 27 Aug 2017 11:25:15 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28488#p28488</guid>
		</item>
		<item>
			<title><![CDATA[Re: Reference problem]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28487#p28487</link>
			<description><![CDATA[<p>The database was updated.</p><p><a href="https://drive.google.com/file/d/0B5xSrmfwObFgbkw0UTFiaFdybFE/view?usp=sharing">Upgrade_Screen</a></p><p>There is another new installation here, the same error</p><p><a href="https://tomasshop.net/FA2.41">FA2.4.2</a></p><p>user:admin<br />pass:pasword</p>]]></description>
			<author><![CDATA[null@example.com (mf1040)]]></author>
			<pubDate>Sun, 27 Aug 2017 10:30:29 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28487#p28487</guid>
		</item>
		<item>
			<title><![CDATA[Re: Reference problem]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28486#p28486</link>
			<description><![CDATA[<p>The files in the <strong>sql</strong> folder used are:<br /></p><div class="codebox"><pre><code>alter2.4rc1.php
alter2.4rc1.sql
alter2.4.php
alter2.4.sql</code></pre></div><p>Whilst the <strong>*.sql</strong> files bring the schema uptodate, the <strong>*.php</strong> files migrate the data carefully into the new constructs and then cleans up the old ones.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 26 Aug 2017 18:24:02 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28486#p28486</guid>
		</item>
		<item>
			<title><![CDATA[Re: Reference problem]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=28485#p28485</link>
			<description><![CDATA[<p>I know you have not actually done an upgrade, but effectively you have. </p><p>The 2.3 database will not run in 2.4, there have been many changes, most noticeably in your case <em>references</em> have changed to <em>reflines,</em> so you need to continue with your upgrade:-</p><p>Its all explained in the update.html file which is in FA&#039;s root directory - <strong>Please read this 1st</strong> - I&#039;ve completed many upgrades by following these instructions and never had a problem.</p><p>There are 2 parts to the upgrade, the software upgrade and the database upgrade, from your description and the screenshot, it &#039;looks&#039; like you have done the software upgrade, now you need to do the database upgrade - I think you need to go to <em>Setup - Software Upgrade</em> (this is really the database upgrade), this should show you that you have an upgrade - click the 2.4 upgrade and it will make the necessary changes in the database. It will take a while to make the necessary changes, this will depend on the size of your database.</p><p>To answer your question </p><div class="quotebox"><blockquote><p>In which folder exactly there is a&nbsp; update&nbsp; script for the document Change or reference &#039;UPDATE&#039; .</p></blockquote></div><p> Its in the &quot;sql&quot; folder. Have a look at the sql in this file and you will see that it corresponds with your screenshot errors. You could run this directly in myphpadmin, but the software upgrade works fine and I&#039;ve used it numerous times.</p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Sat, 26 Aug 2017 16:02:34 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=28485#p28485</guid>
		</item>
	</channel>
</rss>
