Added message when no file is selected for view or download.
[fa-stable.git] / reporting / rep707.php
index e19c29fee14db86c90259da0cd401424eea9bb68..0516c17ec53e8e6250a7f438052bad2cb0950414 100644 (file)
@@ -9,7 +9,7 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-$page_security = 2;
+$page_security = 'SA_GLANALYTIC';
 // ----------------------------------------------------------------
 // $ Revision: 2.0 $
 // Creator:    Joe Hunt
@@ -191,7 +191,7 @@ function print_profit_and_loss_statement()
                        {
                                for ( ; $level >= 0, $typename[$level] != ''; $level--) 
                                {
-                                       if ($account['parent'] == $closing[$level] || $account['parent'] < $last || $account['parent'] <= 0)
+                                       if ($account['parent'] == $closing[$level] || $account['parent'] < $last || $account['parent'] <= 0 || $closeclass)
                                        {
                                                $rep->row += 6;
                                                $rep->Line($rep->row);
@@ -243,6 +243,7 @@ function print_profit_and_loss_statement()
                                $last = $account['parent'];
                        $typename[$level] = $account['AccountTypeName'];
                        $closing[$level] = $account['parent'];
+
                        $rep->row -= 4;
                        $rep->TextCol(0, 5, $account['AccountTypeName']);
                        $rep->row -= 4;
@@ -294,7 +295,7 @@ function print_profit_and_loss_statement()
                {
                        for ( ; $level >= 0, $typename[$level] != ''; $level--) 
                        {
-                               if ($account['parent'] == $closing[$level] || $account['parent'] < $last || $account['parent'] <= 0)
+                               if ($account['parent'] == $closing[$level] || $account['parent'] < $last || $account['parent'] <= 0 || $closeclass)
                                {
                                        $rep->row += 6;
                                        $rep->Line($rep->row);