<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Journal Inquiry & GL Inquiry not remembering date]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7144&amp;type=atom" />
	<updated>2018-07-05T16:26:35Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7144</id>
		<entry>
			<title type="html"><![CDATA[Re: Journal Inquiry & GL Inquiry not remembering date]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32101#p32101" />
			<content type="html"><![CDATA[<p>There isn&#039;t an updated pull request.</p><p>This feature (among others) is in my production code base at https://github.com/braathwaate/frontac24 in the wwh branch.&nbsp; &nbsp;By searching for &quot;ajax sync&quot; in the commits you could find some of the changes.&nbsp; I admit this is confusing.&nbsp; I made changes under other commit names, so you won&#039;t find everything this way.</p><p>One improvement was adding a nocache parameter to the core page() function.&nbsp; The inquiry functions set this, so that after a return to the inquiry page after an edit, the page refreshes and shows the updated transaction, still using the same search parameters originally set by the user.</p>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2018-07-05T16:26:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32101#p32101</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Journal Inquiry & GL Inquiry not remembering date]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32094#p32094" />
			<content type="html"><![CDATA[<p>Thanks Braath.. where can I get the latest pull request from?</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2018-07-05T14:02:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32094#p32094</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Journal Inquiry & GL Inquiry not remembering date]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32092#p32092" />
			<content type="html"><![CDATA[<p>Yes, this is a bug.&nbsp; Add &quot;type&quot; to the array in get_js_history() and set_posts()</p><p>The original pull request is out-of-date.&nbsp; As stated therein, many pages would benefit from the concept, and not all was implemented at that time.&nbsp; &nbsp;There have been other bug fixes and improvements to it.</p>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2018-07-05T13:47:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32092#p32092</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Journal Inquiry & GL Inquiry not remembering date]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32088#p32088" />
			<content type="html"><![CDATA[<p>Hi,<br />I have been testing this pull request as above (https://github.com/apmuthu/frontac24/pull/8) and its working ok but for the following scenario its not OK. Let me explain:</p><p>1) Click Sales Quotation Inquiry<br />2) Change the from Date to a past date.<br />3) Click the edit pencil<br />4) Click the Back or browser Back arrow</p><p>The result is I am presented with Search all Orders Screen which is not expected. I was expecting back to Sales Quotation Inquiry.</p><p>Is this a bug?</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2018-07-05T09:42:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32088#p32088</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Journal Inquiry & GL Inquiry not remembering date]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31240#p31240" />
			<content type="html"><![CDATA[<p>In my installation 2.4.3 The behavior of the Back link and the (back arrow) on the browser are identical. They both produce the same unexpected result as Alaa and Braath Waate described it. Even after clearing cash. It is the same behavior on the demo site..so I took it for granted it is how it is.</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2018-03-27T13:07:36Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31240#p31240</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Journal Inquiry & GL Inquiry not remembering date]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31239#p31239" />
			<content type="html"><![CDATA[<p>This will be my last post on alaa&#039;s question, because I don&#039;t mean to redirect it off-topic.</p><p>However, for the record, the back link in FA calls javascript history.go(), which is identical to the browser back button (see, https://www.w3schools.com/jsref/met_his_back.asp).</p><p>Thus, both techniques are open to exactly the same browser cache issue (will the back button display the cached page or will it refresh it?).&nbsp; &nbsp;I haven&#039;t run into this issue with FA, as it seems to always refresh the page in my testing.&nbsp; If it doesn&#039;t, a coder can force it to refresh using cache-control.</p><p>The pull request is a standard AJAX coding approach, nothing more (see, https://webmasters.stackexchange.com/questions/88790/how-should-the-back-button-behave-when-a-site-is-built-with-ajax-and-javascript).&nbsp; </p><p>Finally, Web user interface design recommendations discourage placing a back link on a page if it duplicates the browser back button (page clutter).&nbsp; If it does not duplicate the browser back button, then then link should be called something else.</p>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2018-03-27T12:19:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31239#p31239</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Journal Inquiry & GL Inquiry not remembering date]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31231#p31231" />
			<content type="html"><![CDATA[<p>@BraathWaate: The reason this part of your Pull Request was not taken into the core is probably because the browser back button usage is not advised in FA and that is why we have a Back link on practically every key FA page which takes us to a known state each time it is clicked. Browser Cache is another issue that will affect such operations.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-03-27T04:32:09Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31231#p31231</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Journal Inquiry & GL Inquiry not remembering date]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=31219#p31219" />
			<content type="html"><![CDATA[<p>Note: https://github.com/apmuthu/frontac24/pull/8 addressed this issue.</p>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2018-03-25T20:00:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=31219#p31219</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Journal Inquiry & GL Inquiry not remembering date]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29745#p29745" />
			<content type="html"><![CDATA[<p>Actually, in all cases involving reports, the cookies will store the parameters so it did not matter if there were more than one date in the form. The screen forms for data entry generally had just 1 sticky date that was remembered in the session user variable&#039;s sticky_date property. In case of all inquiry forms this feature has not yet been coded to work.</p><p>The alternative would be to temporarily change the transaction days value to a figure that would generate the desired starting date from now.</p><p>@joe: can we code it to use cookies to store the various date ranges in screen inquiry forms?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-11-24T14:10:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29745#p29745</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Journal Inquiry & GL Inquiry not remembering date]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29743#p29743" />
			<content type="html"><![CDATA[<p>i couldn&#039;t get it to work..<br />is it possible to hard code it for the journal inquiry ?</p>]]></content>
			<author>
				<name><![CDATA[Alaa]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20274</uri>
			</author>
			<updated>2017-11-24T13:10:36Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29743#p29743</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Journal Inquiry & GL Inquiry not remembering date]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29739#p29739" />
			<content type="html"><![CDATA[<p>See <a href="https://frontaccounting.com/fawiki/index.php?n=Devel.ConfigurableDaysPassedForInquiryScreens?setlang=es">this wiki page</a>.</p><p>This functionality has now been integrated into FA 2.4.x with the settings in the <strong>users</strong> table as the fields:<br /></p><div class="codebox"><pre><code>sticky_doc_date
transaction_days
save_report_selections</code></pre></div><p>Make sure that the browser cache is cleared and the company&#039;s js_cache is also cleared. Logout and login again and see what gives. In the last case above, this user choice data are stored in cookies and you must have it enabled. The others store it in the session.</p><p>The <strong>function date_cells()</strong> is the one that sets the form element. There appears to be no mention of sticky_doc_date(), new_doc_date(), etc there to remember the dates. The <strong>_last_val</strong> attribute of the date cell should be set from the sticky value.</p><p>@joe: needs a check to extend it to search forms as well?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-11-24T11:32:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29739#p29739</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Journal Inquiry & GL Inquiry not remembering date]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29737#p29737" />
			<content type="html"><![CDATA[<p>Hello,, <br />is there any way for GL and journal inquiry not to keep resetting the selected period every time the page is refreshed? <br />i mean when i want to view the transactions for a selected period.. lets say from 1 Jan 2017 to 31 Dec 2017 i get the result,<br />then when i log out or just reload the page the period is reseted to the last 30 days.. so it become 24 Oct to 24 Nov.</p><p>i checked the Remember last document date option in the preferences but it doesn&#039;t seem to be working.</p><p>other inquires and reports work just fine.</p>]]></content>
			<author>
				<name><![CDATA[Alaa]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20274</uri>
			</author>
			<updated>2017-11-24T08:53:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29737#p29737</id>
		</entry>
</feed>
