<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Sales Quotation/Order/Invoice leading to blank page]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6033</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6033&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Sales Quotation/Order/Invoice leading to blank page.]]></description>
		<lastBuildDate>Thu, 26 Nov 2015 18:47:47 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Sales Quotation/Order/Invoice leading to blank page]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24824#p24824</link>
			<description><![CDATA[<p>@apmuthu<br />Yes the error should be enabled. If there are no customers and/or branches in the system, there should be an error reported before you can proceed. Will have a look. <br />@seend<br />In the meantime, please set the $go_debug variable first in the file config.php to 1 or 2, to trap any errors.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Thu, 26 Nov 2015 18:47:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24824#p24824</guid>
		</item>
		<item>
			<title><![CDATA[Re: Sales Quotation/Order/Invoice leading to blank page]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24816#p24816</link>
			<description><![CDATA[<p>File: <strong>sales/includes/db/customers_db.inc</strong><br />Function: <strong>get_customer_details()</strong><br />The mandatory parameter must be a valid <strong>$customer_id</strong>.<br />If invalid, it causes an error in line the sql construction portion on line 100:<br /></p><div class="codebox"><pre><code>             AND &quot;.TB_PREF.&quot;debtors_master.debtor_no = &quot;.db_escape($customer_id).&quot; &quot;;</code></pre></div><br /><p>You tried to create a quotation without having created atleast 1 customer.</p><p>@seend: Try to use the <a href="https://github.com/FrontAccountingERP/FA/archive/master.zip">FA 2.3.24+ snapshot</a> and see if the error persists. It might also be that you are using a newer version of PHP that uses the STRICT option which may be disabled in PHP 5.6 but is compiled hardcoded in PHP 5.7 onwards.</p><p>@joe: An error should be output when no customer exists if a Document Form depends on it. I thought it was so now.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 26 Nov 2015 17:01:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24816#p24816</guid>
		</item>
		<item>
			<title><![CDATA[Sales Quotation/Order/Invoice leading to blank page]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24804#p24804</link>
			<description><![CDATA[<p>Hi, </p><p>Have done a new install recently and tried to create a sales transaction. When click on sales invoice, quotation etc leads to a blank white page.</p><p>I have deactivated all extensions I had installed and also reverted back to the default theme, but still getting the same errors.</p><p>Am using FrontAccounting 2.3.24. </p><p>Any ideas how to investigate this / fix it?</p><p>any help much appreciated.</p><p>Update:</p><p>Looking through the error log file, I am getting this error only when click on any of the: Sales Quotation, Direct INvoice etc.</p><p>23-Nov-2015 21:09:16] &lt;b&gt;DATABASE ERROR :&lt;/b&gt; The customer details could not be retrieved&lt;br&gt;error code : 1064&lt;br&gt;error message : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;IFNULL(IF(trans.type=11 OR trans.type=12 OR trans.type=2, -1, 1) <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * (trans&#039; at line 8&lt;br&gt;sql that failed was : SELECT 0_debtors_master.name, 0_debtors_master.curr_code, 0_payment_terms.terms,<br />&nbsp; &nbsp; &nbsp; &nbsp; 0_debtors_master.credit_limit, 0_credit_status.dissallow_invoices, 0_credit_status.reason_description,</p><p>&nbsp; &nbsp; &nbsp; &nbsp; Sum(IFNULL(IFNULL(IF(trans.type=11 OR trans.type=12 OR trans.type=2, -1, 1) <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * (trans.ov_amount + trans.ov_gst + trans.ov_freight + trans.ov_freight_tax + trans.ov_discount),0),0)) AS Balance,<br />&nbsp; &nbsp; &nbsp; &nbsp; Sum(IF ((TO_DAYS(&#039;2015-11-23&#039;) - TO_DAYS(IF (trans.type=10, trans.due_date, trans.tran_date))) &gt; 0,IFNULL(IF(trans.type=11 OR trans.type=12 OR trans.type=2, -1, 1) <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * (trans.ov_amount + trans.ov_gst + trans.ov_freight + trans.ov_freight_tax + trans.ov_discount),0),0)) AS Due,<br />&nbsp; &nbsp; &nbsp; &nbsp; Sum(IF ((TO_DAYS(&#039;2015-11-23&#039;) - TO_DAYS(IF (trans.type=10, trans.due_date, trans.tran_date))) &gt; ,IFNULL(IF(trans.type=11 OR trans.type=12 OR trans.type=2, -1, 1) <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * (trans.ov_amount + trans.ov_gst + trans.ov_freight + trans.ov_freight_tax + trans.ov_discount),0),0)) AS Overdue1,<br />&nbsp; &nbsp; &nbsp; &nbsp; Sum(IF ((TO_DAYS(&#039;2015-11-23&#039;) - TO_DAYS(IF (trans.type=10, trans.due_date, trans.tran_date))) &gt; 0,IFNULL(IF(trans.type=11 OR trans.type=12 OR trans.type=2, -1, 1) <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; * (trans.ov_amount + trans.ov_gst + trans.ov_freight + trans.ov_freight_tax + trans.ov_discount),0),0)) AS Overdue2</p><p>&nbsp; &nbsp; &nbsp; &nbsp; FROM 0_debtors_master<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; LEFT JOIN 0_debtor_trans trans ON <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; trans.tran_date &lt;= &#039;2015-11-23&#039; AND 0_debtors_master.debtor_no = trans.debtor_no AND trans.type &lt;&gt; 13<br />,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 0_payment_terms,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 0_credit_status</p><p>&nbsp; &nbsp; &nbsp; &nbsp; WHERE<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 0_debtors_master.payment_terms = 0_payment_terms.terms_indicator<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; AND 0_debtors_master.credit_status = 0_credit_status.id<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; AND 0_debtors_master.debtor_no = &#039;&#039; GROUP BY<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;0_debtors_master.name,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;0_payment_terms.terms,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;0_payment_terms.days_before_due,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;0_payment_terms.day_in_following_month,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;0_debtors_master.credit_limit,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;0_credit_status.dissallow_invoices,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;0_credit_status.reason_description&lt;br&gt;&lt;br&gt;&lt;br&gt;</p>]]></description>
			<author><![CDATA[null@example.com (seend)]]></author>
			<pubDate>Mon, 23 Nov 2015 19:56:08 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24804#p24804</guid>
		</item>
	</channel>
</rss>
