<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7125&amp;type=atom" />
	<updated>2017-11-14T00:56:21Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7125</id>
		<entry>
			<title type="html"><![CDATA[Re: White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29586#p29586" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-11-14T00:56:21Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29586#p29586</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29585#p29585" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-11-13T16:00:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29585#p29585</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29584#p29584" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-11-13T14:59:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29584#p29584</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29583#p29583" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-11-13T13:54:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29583#p29583</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29582#p29582" />
			<content type="html"><![CDATA[<p>Will have a look.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-11-13T13:25:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29582#p29582</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29581#p29581" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[notrinos]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36772</uri>
			</author>
			<updated>2017-11-13T12:34:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29581#p29581</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29579#p29579" />
			<content type="html"><![CDATA[<p>Yes, it occurs when create new invoice or credit note while no supplier defined.</p>]]></content>
			<author>
				<name><![CDATA[notrinos]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36772</uri>
			</author>
			<updated>2017-11-13T12:30:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29579#p29579</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29578#p29578" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-11-13T12:20:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29578#p29578</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[White screen on Supplier Invoices  and  Supplier Credit Notes]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29576#p29576" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[notrinos]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36772</uri>
			</author>
			<updated>2017-11-13T11:30:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29576#p29576</id>
		</entry>
</feed>
