<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Due Date is Before Invoice Date on Cash Only Direct Invoices]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3729&amp;type=atom" />
	<updated>2013-01-14T05:00:55Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=3729</id>
		<entry>
			<title type="html"><![CDATA[Re: Due Date is Before Invoice Date on Cash Only Direct Invoices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15027#p15027" />
			<content type="html"><![CDATA[<p>I downloaded it.&nbsp; Thanks!</p><p>Regards,</p><p>Chris</p>]]></content>
			<author>
				<name><![CDATA[chrison]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17070</uri>
			</author>
			<updated>2013-01-14T05:00:55Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15027#p15027</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Due Date is Before Invoice Date on Cash Only Direct Invoices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15025#p15025" />
			<content type="html"><![CDATA[<p>A working mercurial build is available for download <a href="https://frontaccounting.com/punbb/misc.php?action=pun_attachment&amp;item=51&amp;download=1">here</a>.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-01-14T00:24:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15025#p15025</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Due Date is Before Invoice Date on Cash Only Direct Invoices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15023#p15023" />
			<content type="html"><![CDATA[<p>Apache and MySQL are both on the same server, so I&#039;m assuming that the time zone variable for both are identical, but even if they aren&#039;t the difference would be a matter of hours, not days.</p><p>My problem is that FA is consistently grabbing the invoice date for the <em>previous</em> invoice, not the current one, when posting invoices that have a payment term of &quot;cash.&quot;&nbsp; If I&#039;m entering an invoice with an invoice date of 2013/01/13 and the previous invoice has an invoice date of 2012/07/01 then the due date for my new invoice will be set to <em>2012/07/01</em> when I post it if the payment terms is set to &quot;cash.&quot;&nbsp; So, again, I doubt than error has anything to do with how Apache and SQL time zones are setup.</p><p>As for the Mercurial Build, I suppose I could do a db backup of the production server, install Mercurial, and then restore the data into Mercurial.&nbsp; That would save me from having to re-enter the data again.</p><p>Thanks for the help and suggestion!</p><p>Regards,</p><p>Chris</p>]]></content>
			<author>
				<name><![CDATA[chrison]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17070</uri>
			</author>
			<updated>2013-01-14T00:01:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15023#p15023</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Due Date is Before Invoice Date on Cash Only Direct Invoices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15018#p15018" />
			<content type="html"><![CDATA[<p>Date functions use date subtraction and date intervals usually. Hence the PHP/Apache TimeZone in general is assumed to match the MySQL TimeZone setting. I have not had the time as yet to look into the exact code and why this occurs and if it is an exception for your environment.</p><p>As for the Mercurial Build, it is advisable to work on a clone of the earlier db and try Setup -&gt; SoftwareUpgrade. Alternatively on a new database and mercurial build, try with the demo data.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-01-13T22:30:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15018#p15018</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Due Date is Before Invoice Date on Cash Only Direct Invoices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=15007#p15007" />
			<content type="html"><![CDATA[<p>Hi, apmuthu!</p><p>I have decided that I wouldn&#039;t mind trying the Mercurial build, but can you explain to me how to do it so that the Mercurial build accesses the same database so I don&#039;t have to set-up everything from scratch?&nbsp; I tried uploading the files (to a separate directory, of course!) and then copying the config.php and config_db.php files&nbsp; from the 2.3.13 directory to the new mercurial directory, but when I tried accessing the site that bombed big time.</p><p>Thanks!</p><p>Regards,</p><p>Chris</p>]]></content>
			<author>
				<name><![CDATA[chrison]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17070</uri>
			</author>
			<updated>2013-01-13T07:52:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=15007#p15007</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Due Date is Before Invoice Date on Cash Only Direct Invoices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14988#p14988" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>Is the server date/timezone affecting the issue?</p></blockquote></div><p>I don&#039;t see how that could be a factor?&nbsp; It appears to me that the program is grabbing the last invoice&#039;s invoice date instead of the current invoice&#039;s invoice date when it posts the transaction.&nbsp; What would that have to do with the server&#039;s date/timezone setting?</p><div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>Want to try it out in the <a href="https://frontaccounting.com/punbb/viewtopic.php?pid=14332#p14332">later Mercurial build</a> ?</p></blockquote></div><p>I guess if you folks are totally stumped I could install on that build, but that would require quite a bit of work on my part (installing and configuring the build, setting-up accounts, adding data, etc.).&nbsp; Are we at that point yet?</p><p>Thanks for replying, and thanks for your help!</p><p>Regards,</p><p>Chris</p>]]></content>
			<author>
				<name><![CDATA[chrison]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17070</uri>
			</author>
			<updated>2013-01-12T08:47:40Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14988#p14988</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Due Date is Before Invoice Date on Cash Only Direct Invoices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14985#p14985" />
			<content type="html"><![CDATA[<p>Is the server date/timezone affecting the issue?</p><p>Want to try it out in the <a href="https://frontaccounting.com/punbb/viewtopic.php?pid=14332#p14332">later Mercurial build</a> ?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-01-12T08:32:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14985#p14985</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Due Date is Before Invoice Date on Cash Only Direct Invoices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14970#p14970" />
			<content type="html"><![CDATA[<p>Any luck in figuring this out?</p><p>As a short-term workaround, I have created another payment term with a days_before_due of &quot;1&quot; instead of &quot;0&quot; and I&#039;m using that for cash sales.&nbsp; That gets the due date &quot;close enough&quot; but then I have to remember to move the due date back one day on the entry screen so that it&#039;s the same date as the invoice date (not a big deal if I miss that, though).&nbsp; When I post the transaction the invoice and due dates match, but then I have to go and manually allocate and post the payment.&nbsp; That&#039;s a bit of a PITA but I can deal with it until we get this solved.</p><p>Thanks for your help.</p><p>Regards,</p><p>Chris</p>]]></content>
			<author>
				<name><![CDATA[chrison]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17070</uri>
			</author>
			<updated>2013-01-11T17:16:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14970#p14970</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Due Date is Before Invoice Date on Cash Only Direct Invoices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14939#p14939" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>joe wrote:</cite><blockquote><p>This is strange. I cannot reproduce this (only if the invoice date is before todays date, the due date is todays date, when payment type is cash).</p></blockquote></div><p>These are invoices with an invoice date before today&#039;s date, but that shouldn&#039;t matter, should it?&nbsp; For any invoice where the payment terms are &quot;Cash&quot; the invoice and due dates should be the same.</p><div class="quotebox"><cite>joe wrote:</cite><blockquote><p>Which release of FA are you using?</p><p>/Joe</p></blockquote></div><p>I&#039;m using version 2.3.13 db version 2.3rc (according to version.php).&nbsp; I checked the database and it is posting the wrong date to fl_debtor_trans so the problem is in the posting routine somewhere.</p><p>Thanks, again, for your help!</p><p>Regards,</p><p>Chris</p>]]></content>
			<author>
				<name><![CDATA[chrison]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17070</uri>
			</author>
			<updated>2013-01-09T17:49:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14939#p14939</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Due Date is Before Invoice Date on Cash Only Direct Invoices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14934#p14934" />
			<content type="html"><![CDATA[<p>This is strange. I cannot reproduce this (only if the invoice date is before todays date, the due date is todays date, when payment type is cash).</p><p>Which release of FA are you using?</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2013-01-09T08:20:09Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14934#p14934</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Due Date is Before Invoice Date on Cash Only Direct Invoices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14930#p14930" />
			<content type="html"><![CDATA[<p>Uhhhh....&nbsp; I think I may have figured out what&#039;s happening, although I haven&#039;t a clue why it&#039;s happening or how to fix it.&nbsp; It looks like for payment type &quot;cash&quot; it&#039;s taking the due date from the invoice date of the previous invoice.&nbsp; Here&#039;s a couple of examples of what I mean:</p><div class="codebox"><pre><code>Invoice # 109 has an invoice date of 2012/04/15, terms of &quot;first day of next month&quot;, and a due date of 2014/05/01 (correct!).

Invoice # 110 has an invoice date of 2012/04/17, terms of &quot;cash&quot;, and a due date of 2014/04/15 (wrong!).

Invoice # 111 has an invoice date of 2012/04/28, terms of &quot;cash&quot;, and a due date of 2014/04/17 (wrong again!)</code></pre></div><p>I haven&#039;t done that many direct invoices, but I&#039;ve checked them all and it&#039;s consistent that whenever the payment terms is set to &quot;Cash Only&quot; (which has a payment type set to &quot;Cash&quot; in the setup) FA always sets the due date to the invoice date of the previous invoice not the invoice date of the current invoice.</p><p>Hope that helps you track down the solution&nbsp; Thanks again for your help!</p><p>Chris</p>]]></content>
			<author>
				<name><![CDATA[chrison]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17070</uri>
			</author>
			<updated>2013-01-08T18:08:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14930#p14930</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Due Date is Before Invoice Date on Cash Only Direct Invoices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14928#p14928" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>joe wrote:</cite><blockquote><p>Please check that your Cash Only is not set to Prepayment type in Setup tab, Payment Terms. It should be set to cash.</p><p>/Joe</p></blockquote></div><p>Hi, Joe!</p><p>Nope.&nbsp; It&#039;s set to &quot;Cash&quot; in payment terms.&nbsp; Btw, just for giggles I tried setting up another payment term with due after number of days set to zero to see if that would work differently, but when I saved the recordt FA flipped the payment type to cash.</p><p>Thanks for you help!</p><p>Chris</p>]]></content>
			<author>
				<name><![CDATA[chrison]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17070</uri>
			</author>
			<updated>2013-01-08T17:36:37Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14928#p14928</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Due Date is Before Invoice Date on Cash Only Direct Invoices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14921#p14921" />
			<content type="html"><![CDATA[<p>Please check that your Cash Only is not set to Prepayment type in Setup tab, Payment Terms. It should be set to cash.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2013-01-08T07:49:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14921#p14921</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Due Date is Before Invoice Date on Cash Only Direct Invoices]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=14920#p14920" />
			<content type="html"><![CDATA[<p>I installed FA yesterday, and I&#039;m moving my sales data into FA by doing direct invoices.&nbsp; I just noticed that when I print a direct invoice the due date is before the invoice date for Cash Only sales (i.e. with payment type set to &quot;cash&quot; in the payment terms setup).&nbsp; Shouldn&#039;t the invoice date and due date be the same for payment type cash?&nbsp; Btw, when I post the transaction, the payment date in the G/L is the invoice date, not the (incorrect) due date according to the invoice, so at least everything is posting correctly.&nbsp; But, the invoice sure looks dumb (payment is &quot;due&quot; before I even do the invoice???).&nbsp; LOL!</p><p>Any help in fixing this would be greatly appreciated!</p><p>Thanks!</p><p>Regards,</p><p>Chris</p>]]></content>
			<author>
				<name><![CDATA[chrison]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=17070</uri>
			</author>
			<updated>2013-01-08T07:22:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=14920#p14920</id>
		</entry>
</feed>
