<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7125</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7125&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in White screen on Supplier Invoices  and  Supplier Credit Notes.]]></description>
		<lastBuildDate>Tue, 14 Nov 2017 00:56:21 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29586#p29586</link>
			<description><![CDATA[<p>Just checked all instances of the <strong>check_db_has_XXXX()</strong> usage in such files&nbsp; - they are all called after the <strong>page()</strong> call. It is also so in FA 2.3. Wonder what prompted the change in FA 2.4 to error out thus.</p><p>@notrinos: nice eagle eye!<br />@joe: Thanks for the clarifications.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 14 Nov 2017 00:56:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29586#p29586</guid>
		</item>
		<item>
			<title><![CDATA[Re: White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29585#p29585</link>
			<description><![CDATA[<p>The same algorithms are used on both customer and supplier side. On the customer side it is first checked for items and then customers/branches.</p><p>On the supplier side we can&#039;t check for items because this may be new items.</p><p>I guess this is ok to go this way. It has been done so for many years.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 13 Nov 2017 16:00:03 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29585#p29585</guid>
		</item>
		<item>
			<title><![CDATA[Re: White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29584#p29584</link>
			<description><![CDATA[<p><s>Isn&#039;t it better to implement it like<strong>check_db_has_customers()</strong>in<strong>includes/data_checks.inc</strong>and as used in<strong>sales/customer_payments.php</strong>and<strong>sales/manage/customer_branches.php</strong>?</s> That is how it is now after the commit!</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 13 Nov 2017 14:59:50 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29584#p29584</guid>
		</item>
		<item>
			<title><![CDATA[Re: White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29583#p29583</link>
			<description><![CDATA[<p>The call to check_db_has_suppliers() is moved down a bit in both files.</p><p><a href="https://github.com/FrontAccountingERP/FA/commit/b78392ab57cfb7bd683f69b3cb5bdc16f1655203">Committed</a> to stable repo.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 13 Nov 2017 13:54:45 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29583#p29583</guid>
		</item>
		<item>
			<title><![CDATA[Re: White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29582#p29582</link>
			<description><![CDATA[<p>Will have a look.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 13 Nov 2017 13:25:30 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29582#p29582</guid>
		</item>
		<item>
			<title><![CDATA[Re: White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29581#p29581</link>
			<description><![CDATA[<p>I think the check must be called after the page display because it calls <strong>end_page</strong> </p><p><strong><br />function check_db_has_suppliers($msg)<br />{<br />&nbsp; &nbsp; global $path_to_root;<br />&nbsp; &nbsp; if (!db_has_suppliers()) <br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; display_error($msg, true);<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: red">end_page();</span><br />&nbsp; &nbsp; &nbsp; &nbsp; exit;&nbsp; &nbsp; <br />&nbsp; &nbsp; }&nbsp; &nbsp; <br />}<br /></strong></p>]]></description>
			<author><![CDATA[null@example.com (notrinos)]]></author>
			<pubDate>Mon, 13 Nov 2017 12:34:23 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29581#p29581</guid>
		</item>
		<item>
			<title><![CDATA[Re: White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29579#p29579</link>
			<description><![CDATA[<p>Yes, it occurs when create new invoice or credit note while no supplier defined.</p>]]></description>
			<author><![CDATA[null@example.com (notrinos)]]></author>
			<pubDate>Mon, 13 Nov 2017 12:30:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29579#p29579</guid>
		</item>
		<item>
			<title><![CDATA[Re: White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29578#p29578</link>
			<description><![CDATA[<p>The check must be called before displaying the page so that any alerts can be shown in it. It should degrade gracefully on no suppliers.</p><p>Does this happen for attempting a new sales Direct Invoice when there are no customers?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 13 Nov 2017 12:20:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29578#p29578</guid>
		</item>
		<item>
			<title><![CDATA[White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29576#p29576</link>
			<description><![CDATA[<p>Supplier Invoices and Supplier Credit Notes appear as white screen on fresh install without demo data.</p><p>Fixes:</p><p>Perhaps function <strong>check_db_has_suppliers()</strong> was called before the function <strong>page()</strong> called.</p>]]></description>
			<author><![CDATA[null@example.com (notrinos)]]></author>
			<pubDate>Mon, 13 Nov 2017 11:30:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29576#p29576</guid>
		</item>
	</channel>
</rss>
