phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r680 - trunk/transform/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r680 - trunk/transform/include
Date: Sat, 1 Feb 2014 16:16:27 +0100 (CET)

Author: danydb
Date: 2014-02-01 16:16:27 +0100 (Sat, 01 Feb 2014)
New Revision: 680

Modified:
   trunk/transform/include/intervat_listing_assujetti.inc.php
Log:
if exception occurs then go back to first screen

Modified: trunk/transform/include/intervat_listing_assujetti.inc.php
===================================================================
--- trunk/transform/include/intervat_listing_assujetti.inc.php  2014-02-01 
15:15:52 UTC (rev 679)
+++ trunk/transform/include/intervat_listing_assujetti.inc.php  2014-02-01 
15:16:27 UTC (rev 680)
@@ -21,17 +21,27 @@
 ?>
 <h1>Listing Assujetti Intervat </h1>
 <?php
-$step=HtmlInput::default_value_request('st_transf',0);
+$step = HtmlInput::default_value_request('st_transf', 0);
 
-if ($step == 0 )
+if ($step == 0)
 {
     require 'intervat_listing_assujetti_step_1.inc.php';
 }
-if ($step == 1 )
+if ($step == 1)
 {
-    require 'intervat_listing_assujetti_step_2.inc.php';
+    try
+    {
+        require 'intervat_listing_assujetti_step_2.inc.php';
+    } catch (Exception $e)
+    {
+        echo '<p class="notice">'.$e->getMessage().'</p>';
+        if ($e->getCode() != 3)
+        {
+            require 'intervat_listing_assujetti_step_1.inc.php';
+        }
+    }
 }
-if ($step == 2 )
+if ($step == 2)
 {
     require 'intervat_listing_assujetti_step_3.inc.php';
 }



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]