<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Profit and Loss Year Account should be an Expense Account issue]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9113&amp;type=atom" />
	<updated>2020-12-13T12:09:11Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9113</id>
		<entry>
			<title type="html"><![CDATA[Re: Profit and Loss Year Account should be an Expense Account issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38732#p38732" />
			<content type="html"><![CDATA[<p>How to change this code to solve above issue:</p><div class="codebox"><pre><code>function close_year($year)
{
    global $Refs;

    $co = get_company_prefs();
    if (get_gl_account($co[&#039;retained_earnings_act&#039;]) == false || get_gl_account($co[&#039;profit_loss_year_act&#039;]) == false)
    {
        display_error(_(&quot;The Retained Earnings Account or the Profit and Loss Year Account has not been set in System and General GL Setup&quot;));
        return false;
    }
    if (!is_account_balancesheet($co[&#039;retained_earnings_act&#039;]) || is_account_balancesheet($co[&#039;profit_loss_year_act&#039;]))
    {
        display_error(_(&quot;The Retained Earnings Account should be a Balance Account or the Profit and Loss Year Account should be an Expense Account (preferred the last one in the Expense Class)&quot;));
        return false;
    }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[islamsaeid3]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=44904</uri>
			</author>
			<updated>2020-12-13T12:09:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38732#p38732</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Profit and Loss Year Account should be an Expense Account issue]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=38731#p38731" />
			<content type="html"><![CDATA[<p>Hi</p><p>My default Chart of Account is Egypt CoA, <br />Profit &amp; Loss - Current Year account should be Balance sheet account according Egypt standards and <a href="https://www.ifrs.org/"><strong>IFRS</strong></a><br />and i don&#039;t want to change its class tp be expense account </p><p>How can I ignore error check message of &quot;Profit and Loss Year Account should be an Expense Account&quot; or </p><p>How to change check criteria&nbsp; &quot;Profit and Loss Year Account should be an Balance Sheet&nbsp; Account&quot;</p><p>your quick response is appreciated.<br />Regards</p>]]></content>
			<author>
				<name><![CDATA[islamsaeid3]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=44904</uri>
			</author>
			<updated>2020-12-13T12:05:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=38731#p38731</id>
		</entry>
</feed>
