<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Reference problem]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6943&amp;type=atom" />
	<updated>2017-08-28T16:16:56Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6943</id>
		<entry>
			<title type="html"><![CDATA[Re: Reference problem]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28501#p28501" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-08-28T16:16:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28501#p28501</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reference problem]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28500#p28500" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-08-28T16:14:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28500#p28500</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reference problem]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28499#p28499" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mf1040]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19779</uri>
			</author>
			<updated>2017-08-28T16:05:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28499#p28499</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reference problem]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28498#p28498" />
			<content type="html"><![CDATA[<p>There is no way to extend / change the validity end date of a quotation for cash only quotes.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-08-28T15:55:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28498#p28498</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reference problem]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28496#p28496" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-08-28T13:05:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28496#p28496</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reference problem]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28495#p28495" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2017-08-28T11:32:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28495#p28495</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reference problem]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28494#p28494" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-08-28T09:48:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28494#p28494</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reference problem]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28493#p28493" />
			<content type="html"><![CDATA[<p>I will send this to Janusz.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-08-28T09:14:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28493#p28493</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reference problem]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28492#p28492" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-08-28T08:51:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28492#p28492</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reference problem]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28491#p28491" />
			<content type="html"><![CDATA[<p>Sorry, bad quality</p><p><a href="https://www.youtube.com/watch?v=QMy3RdXtSKU&amp;feature=youtu.be">YOUTUBE</a></p>]]></content>
			<author>
				<name><![CDATA[mf1040]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19779</uri>
			</author>
			<updated>2017-08-27T19:39:05Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28491#p28491</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reference problem]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28490#p28490" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mf1040]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19779</uri>
			</author>
			<updated>2017-08-27T19:23:33Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28490#p28490</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reference problem]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28488#p28488" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-08-27T11:25:15Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28488#p28488</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reference problem]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28487#p28487" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[mf1040]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19779</uri>
			</author>
			<updated>2017-08-27T10:30:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28487#p28487</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reference problem]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28486#p28486" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-08-26T18:24:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28486#p28486</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reference problem]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=28485#p28485" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2017-08-26T16:02:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=28485#p28485</id>
		</entry>
</feed>
