phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r4439 - in phpcompta/trunk: html include include/templat


From: phpcompta-dev
Subject: [Phpcompta-dev] r4439 - in phpcompta/trunk: html include include/template
Date: Tue, 22 Nov 2011 14:16:23 +0100 (CET)

Author: danydb
Date: 2011-11-22 14:16:22 +0100 (Tue, 22 Nov 2011)
New Revision: 4439

Modified:
   phpcompta/trunk/html/ajax_ledger.php
   phpcompta/trunk/include/class_acc_operation.php
   phpcompta/trunk/include/template/ledger_detail_ach.php
   phpcompta/trunk/include/template/ledger_detail_ven.php
Log:
ajout pay?\195?\169 par dans les d?\195?\169tail op?\195?\169rations VEN & ACH

Modified: phpcompta/trunk/html/ajax_ledger.php
===================================================================
--- phpcompta/trunk/html/ajax_ledger.php        2011-11-22 12:50:09 UTC (rev 
4438)
+++ phpcompta/trunk/html/ajax_ledger.php        2011-11-22 13:16:22 UTC (rev 
4439)
@@ -385,6 +385,14 @@
                     {
                         $rec->insert($rapt);
                     }
+              if ( isset($_POST['ipaid']))
+              {
+                  $cn->exec_sql("update jrn set jr_rapt='paid' where 
jr_id=$1",array($jr_id));
+              }
+              else
+              {
+                  $cn->exec_sql("update jrn set jr_rapt=null where 
jr_id=$1",array($jr_id));
+              }
             }
             ////////////////////////////////////////////////////
             // CA

Modified: phpcompta/trunk/include/class_acc_operation.php
===================================================================
--- phpcompta/trunk/include/class_acc_operation.php     2011-11-22 12:50:09 UTC 
(rev 4438)
+++ phpcompta/trunk/include/class_acc_operation.php     2011-11-22 13:16:22 UTC 
(rev 4439)
@@ -545,7 +545,7 @@
         $sql="SELECT jr_id, jr_def_id, jr_montant, jr_comment, jr_date, 
jr_grpt_id,
              jr_internal, jr_tech_date, jr_tech_per, jrn_ech, jr_ech, 
jr_rapt,jr_ech,
              jr_valid, jr_opid, jr_c_opid, jr_pj, jr_pj_name, jr_pj_type,
-             jr_pj_number, jr_mt
+             jr_pj_number, jr_mt,jr_rapt
              FROM jrn where jr_id=$1";
         $array=$this->db->get_array($sql,array($this->jr_id));
         if ( count($array) == 0 ) throw new Exception('Aucune ligne trouvée');

Modified: phpcompta/trunk/include/template/ledger_detail_ach.php
===================================================================
--- phpcompta/trunk/include/template/ledger_detail_ach.php      2011-11-22 
12:50:09 UTC (rev 4438)
+++ phpcompta/trunk/include/template/ledger_detail_ach.php      2011-11-22 
13:16:22 UTC (rev 4439)
@@ -63,6 +63,16 @@
                                                        ?>
                                                        </td>
                                                        </tr>
+                                                           <tr>
+                                                            <td>Payé</td>
+                                                            <td>
+                                                                <?
+                                                                $ipaid=new 
ICheckBox("ipaid",'paid');
+                                                                
$ipaid->value=$obj->det->jr_rapt;
+                                                                echo 
$ipaid->input();
+                                                                ?>
+                                                            </td>
+                                                        </tr>
                                </table>
                                </td><td>
                                <table style="border:solid 1px yellow">
@@ -85,6 +95,7 @@
                                </table>
                                </td>
                                </tr>
+                                
 </table>
 
 <fieldset><legend><?=_('Détail')?></legend>

Modified: phpcompta/trunk/include/template/ledger_detail_ven.php
===================================================================
--- phpcompta/trunk/include/template/ledger_detail_ven.php      2011-11-22 
12:50:09 UTC (rev 4438)
+++ phpcompta/trunk/include/template/ledger_detail_ven.php      2011-11-22 
13:16:22 UTC (rev 4439)
@@ -63,6 +63,16 @@
                                                ?>
                                                </td>
                                                </tr>
+                                               <tr>
+                                                        <td>Payé</td>
+                                                        <td>
+                                                            <?
+                                                            $ipaid=new 
ICheckBox("ipaid",'paid');
+                                                            
$ipaid->value=$obj->det->jr_rapt;
+                                                            echo 
$ipaid->input();
+                                                            ?>
+                                                        </td>
+                                                    </tr>
                                                </table>
 </td>
 <td>




reply via email to

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