phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r349 - trunk/coprop/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r349 - trunk/coprop/include
Date: Thu, 12 Apr 2012 01:55:42 +0200 (CEST)

Author: danydb
Date: 2012-04-12 01:55:42 +0200 (Thu, 12 Apr 2012)
New Revision: 349

Modified:
   trunk/coprop/include/appel_fond.inc.php
   trunk/coprop/include/class_coprop_appel_fond.php
Log:
Appel de fond, ajout du num?\195?\169ro interne + correction bug

Modified: trunk/coprop/include/appel_fond.inc.php
===================================================================
--- trunk/coprop/include/appel_fond.inc.php     2012-04-11 23:38:17 UTC (rev 
348)
+++ trunk/coprop/include/appel_fond.inc.php     2012-04-11 23:55:42 UTC (rev 
349)
@@ -101,9 +101,10 @@
                $ledger->save($_POST);
                echo "<h2>Opération sauvée</h2>";
                echo HtmlInput::detail_op($ledger->jr_id, $ledger->internal);
-               echo $ledger->input($_POST, 1);
+               echo $ledger->confirm($_POST, true);
                $appel_fond = new Coprop_Appel_Fond();
                $appel_fond->id = $_POST['af_id'];
+               $appel_fond->jr_internal=$ledger->internal;
                $appel_fond->confirm();
                exit();
        }

Modified: trunk/coprop/include/class_coprop_appel_fond.php
===================================================================
--- trunk/coprop/include/class_coprop_appel_fond.php    2012-04-11 23:38:17 UTC 
(rev 348)
+++ trunk/coprop/include/class_coprop_appel_fond.php    2012-04-11 23:55:42 UTC 
(rev 349)
@@ -208,7 +208,7 @@
        function confirm()
        {
                global $cn;
-               $cn->exec_sql("update coprop.appel_fond set af_confirmed='Y' 
where af_id=$1",array($this->id));
+               $cn->exec_sql("update coprop.appel_fond set 
af_confirmed='Y',jr_internal=$2 where 
af_id=$1",array($this->id,$this->jr_internal));
        }
 }
 ?>



---
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]