Correction on Reccurent entries
authorwww-data <www-data@n3150.home>
Tue, 30 May 2023 09:24:53 +0000 (11:24 +0200)
committerwww-data <www-data@n3150.home>
Tue, 30 May 2023 09:24:53 +0000 (11:24 +0200)
app/common.php
app/compta/models/recurrent.php
app/compta/views/recurrent_nouveau.php
app/compta/views/recurrent_payer.php

index 9bcbd2d77ca30e472cd0dbe276da290c4d3af7df..1af361520cf05d227dfaa08582044c3e06e339c8 100644 (file)
@@ -1,6 +1,10 @@
 <?php
 require_once(dirname(__FILE__)."/../phplib/iface.Request.php");
 require_once(dirname(__FILE__)."/../phplib/class.http.Request.php");
+/// Also in class Session phplib (might to be needed)
+$_timeout = 3600;
+ini_set("session.gc_maxlifetimeout",$_timeout);
+ini_set("session.cookie_lifetime",$_timeout);
 
 session_start();
 
index 0ad116740fd09906dbe05ef780345b4987e32afd..544c70119fa216247f54ac653be456f59dc76676 100644 (file)
@@ -256,7 +256,7 @@ class Model implements \JsonSerializable
              , $this->getSession()->getDb());
         $trans = Array("trans_label" => "Payement ".$lp[0][2]
         ,"voucher_date"    => $lp[0][1]
-        ,"voucher_ref"    =>   $lp[0][2]." ".$lp[0].[1] 
+        ,"voucher_ref"    =>   $lp[0][2]." ".$lp[0][1] 
         ,"act_trans_date"  => $lp[0][1]);
         foreach($lp as $e )
         {
@@ -266,7 +266,7 @@ class Model implements \JsonSerializable
           return $book->postTransaction($trans,$entries);
       } catch (Exception $e)
       {
-          error_log("Failed pay:".$e->message());
+          error_log("model::Recurrent::pay Failed pay:".$e->message());
           return Array();
       }
     }
@@ -289,7 +289,7 @@ class Model implements \JsonSerializable
             $this->id = $id;
         } else
         {
-          error_log("Failed payer : unknown reason");
+          error_log("Model::Recurrent::payer Failed payer : result trans_id not set");
         }
     }
 
index c3181aca95bbad6a1ca382b976c7e1cc9f041f10..738f6970bc1305b228f830d4507b3ae41e3a3288 100644 (file)
@@ -181,7 +181,6 @@ _EOF;
                     $fe.=sprintf($tplt,"text",$count,$f,$e->{$f});
             }
         $fe.="</tr>";
-        error_log($fe."\n");
         $frag.=$fe;
         $count++;
         }
index eb9141d2dc086ab168f5dd19bb2f67e8fbfb6b9f..706cc31c4d18c321c89e8a7429d65de3d6947690 100644 (file)
@@ -187,11 +187,9 @@ _EOF;
         || isset($_GET['regler'])
         || isset($_GET['id']))
         {
-            error_log("to ledger_recurrent");
             $this->script("/app/compta/services.php/");
         } else
         {
-            error_log("to pag_ledger");
             $this->script();
         }
         echo '<div class="content" style="display:flex;flex-wrap:wrap">';