<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Invoice not printing in 2.4.14]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=10127</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10127&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Invoice not printing in 2.4.14.]]></description>
		<lastBuildDate>Thu, 29 Dec 2022 18:57:24 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Invoice not printing in 2.4.14]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41909#p41909</link>
			<description><![CDATA[<p>Thanks for the link. It apparently solved the issue:<br /></p><div class="codebox"><pre><code>+++ b/core/includes/db/connect_db_mysqli.inc
@@ -10,7 +10,7 @@
     See the License here &lt;http://www.gnu.org/licenses/gpl-3.0.html&gt;.
 ***********************************************************************/
 define(&#039;DB_DUPLICATE_ERROR&#039;, 1062);
-define(&#039;SQL_MODE&#039;, &#039;STRICT_ALL_TABLES&#039;); // prevents SQL injection with silent field content truncation
+define(&#039;SQL_MODE&#039;, &#039;&#039;); // well tested</code></pre></div><p>So I deleted <strong>STRICT_ALL_TABLES</strong> and kept the <br /><strong>define(&#039;SQL_MODE&#039;, &#039;&#039;);</strong><br />Thanks for the hint. I would never have found that. However, not sure whether the STRICT check means that there is something wrong in our DB. I hope not.<br /><img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /> and <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (thorbjornw)]]></author>
			<pubDate>Thu, 29 Dec 2022 18:57:24 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41909#p41909</guid>
		</item>
		<item>
			<title><![CDATA[Re: Invoice not printing in 2.4.14]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41900#p41900</link>
			<description><![CDATA[<p>For me its a difficult problem to crack as I dont have enough programming background.<br />See<br />https://frontaccounting.com/punbb/viewtopic.php?id=8242<br />It might help.</p>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Mon, 26 Dec 2022 03:43:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41900#p41900</guid>
		</item>
		<item>
			<title><![CDATA[Re: Invoice not printing in 2.4.14]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41899#p41899</link>
			<description><![CDATA[<p>Thanks for the proposal. Now I get the following message in the FA error-log: <br />25-Dec-2022 11:31:30 America/Managua] 0:admin:connect_db_mysqli.inc:68: Unhandled exception [1364]: Field &#039;fiscal_year&#039; doesn&#039;t have a default value.<br />[25-Dec-2022 11:31:35 America/Managua] 0:admin:sales_order_db.inc:103: Trying to access array offset on value of type null<br />[25-Dec-2022 11:31:35 America/Managua] 0:admin:connect_db_mysqli.inc:68: Unhandled exception [1292]: Incorrect date value: &#039;&#039; for column &#039;gl_date&#039; at row 1.<br />I have checked the fiscal year in the configuration file, and it is correctly defined as 2022. The date format is configured as DDMMYYYY, and that is also what appears in the invoice (that won&#039;t print).<br />Any suggestion?</p>]]></description>
			<author><![CDATA[null@example.com (thorbjornw)]]></author>
			<pubDate>Sun, 25 Dec 2022 17:34:49 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41899#p41899</guid>
		</item>
		<item>
			<title><![CDATA[Re: Invoice not printing in 2.4.14]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41875#p41875</link>
			<description><![CDATA[<p>Try with debug on. See if anything in the logs.</p>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Wed, 21 Dec 2022 08:54:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41875#p41875</guid>
		</item>
		<item>
			<title><![CDATA[Re: Invoice not printing in 2.4.14]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41870#p41870</link>
			<description><![CDATA[<p>So I guess it simply tells me that it didn&#039;t succeed in generating a valid invoice. So it doesn&#039;t bring me further to understand why I can&#039;t generate an invoice.</p>]]></description>
			<author><![CDATA[null@example.com (thorbjornw)]]></author>
			<pubDate>Tue, 20 Dec 2022 21:35:23 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41870#p41870</guid>
		</item>
		<item>
			<title><![CDATA[Re: Invoice not printing in 2.4.14]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41869#p41869</link>
			<description><![CDATA[<p>Thanks for your reply. Searching in the database, this transaction is simply the last invoice. Deleting it doesn&#039;t help. Strange.</p>]]></description>
			<author><![CDATA[null@example.com (thorbjornw)]]></author>
			<pubDate>Tue, 20 Dec 2022 21:32:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41869#p41869</guid>
		</item>
		<item>
			<title><![CDATA[Re: Invoice not printing in 2.4.14]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41866#p41866</link>
			<description><![CDATA[<p>In database <br />trans_type 30 is a Sales Order<br />order_no is the Sales order number.</p><p>You will find the above in database tables xx_sales_order.<br /> so look for trans_type =30 and order_no=20131 combination.</p><p>OR</p><p>From within FA</p><p>Sales-&gt;Sales Order Enquiry -&gt; #=20131 and see what you can do.</p>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Tue, 20 Dec 2022 08:28:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41866#p41866</guid>
		</item>
		<item>
			<title><![CDATA[Invoice not printing in 2.4.14]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=41865#p41865</link>
			<description><![CDATA[<p>We have been using FA for more than 10 years now, and are happy with the programme. Currently on 2.4.4 with php 7.3. As we want to update our server (Linux Mint 19) to Mint 21, we have the challenge of how to handle php8. Trying with a fresh install with American 4 digit COA), we get problems when trying to restore the backup. So I thought it might a good idea to start updating to 2.4.14 before updating the OS, as I understand 2.4.14 should be compatible with php 8.<br />The install of FA 2.4.14 with php 7.3 apparently works well, and restoring the backup from 2.4.4 gives no error. All data seem to have been restored. We can print accounting reports in both pdf and excel, but it is for some reason not possible to print an invoice. We get the error: &quot;You have missing or invalid sales document in database (type:30, number:20131)&quot;. Not clear to me where that document should have gone, or why ti should suddenly be invalid. Any hint on where to look for a solution?</p>]]></description>
			<author><![CDATA[null@example.com (thorbjornw)]]></author>
			<pubDate>Mon, 19 Dec 2022 23:04:13 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=41865#p41865</guid>
		</item>
	</channel>
</rss>
