phpcompta-dev
[Top][All Lists]
Advanced

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

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


From: phpcompta-dev
Subject: [Phpcompta-dev] r354 - trunk/coprop/include
Date: Fri, 13 Apr 2012 19:51:53 +0200 (CEST)

Author: danydb
Date: 2012-04-13 19:51:53 +0200 (Fri, 13 Apr 2012)
New Revision: 354

Modified:
   trunk/coprop/include/class_copro_budget.php
   trunk/coprop/include/class_install_plugin.php
   trunk/coprop/include/copro-parameter.inc.php
Log:
Add card for fee

Modified: trunk/coprop/include/class_copro_budget.php
===================================================================
--- trunk/coprop/include/class_copro_budget.php 2012-04-13 16:46:11 UTC (rev 
353)
+++ trunk/coprop/include/class_copro_budget.php 2012-04-13 17:51:53 UTC (rev 
354)
@@ -51,7 +51,7 @@
         */
     function detail()
     {
-        global $cn;
+        global $cn,$g_copro_parameter;
         try
         {
 
@@ -104,7 +104,7 @@
                 join vw_fiche_attr using (f_id)
                 where b_id=$1",array($this->b_id));
             $a_input=array();
-            $fiche_dep=$cn->make_list("select fd_id from fiche_def where 
frd_id=2");
+            $fiche_dep=$cn->make_list("select fd_id from fiche_def where 
fd_id=".$g_copro_parameter->categorie_charge);
 
                        $a_key=$cn->make_array(" select cr_id,cr_name from 
coprop.clef_repartition order by cr_name");
                        $max=count($array);
@@ -114,7 +114,7 @@
                        $f_add_button->label=_('Créer une nouvelle fiche');
                        $f_add_button->set_attribute('ipopup','ipop_newcard');
                        $f_add_button->set_attribute('jrn',-1);
-                       $filter=$cn->make_list("select fd_id from fiche_def 
where frd_id=2");
+                       $filter=$cn->make_list("select fd_id from fiche_def 
where fd_id=".$g_copro_parameter->categorie_charge);
                        $f_add_button->javascript=" 
this.filter='$filter';this.jrn=-1;select_card_type(this);";
                        echo $f_add_button->input();
             for ($i=0;$i<MAXROWBUD;$i++)

Modified: trunk/coprop/include/class_install_plugin.php
===================================================================
--- trunk/coprop/include/class_install_plugin.php       2012-04-13 16:46:11 UTC 
(rev 353)
+++ trunk/coprop/include/class_install_plugin.php       2012-04-13 17:51:53 UTC 
(rev 354)
@@ -144,6 +144,7 @@
                        'categorie_immeuble' => $this->immeuble_id,
                        'categorie_appel' => 0,
                        'poste_appel' => 0,
+                       'categorie_charge'=>0,
                        'journal_appel' => 0
                );
 

Modified: trunk/coprop/include/copro-parameter.inc.php
===================================================================
--- trunk/coprop/include/copro-parameter.inc.php        2012-04-13 16:46:11 UTC 
(rev 353)
+++ trunk/coprop/include/copro-parameter.inc.php        2012-04-13 17:51:53 UTC 
(rev 354)
@@ -37,6 +37,7 @@
                
$g_copro_parameter->save('categorie_coprop',$_POST['categorie_coprop']);*/
                
$g_copro_parameter->save('journal_appel',$_POST['journal_appel']);
                
$g_copro_parameter->save('categorie_appel',$_POST['categorie_appel']);
+               
$g_copro_parameter->save('categorie_charge',$_POST['categorie_charge']);
                
//$g_copro_parameter->save('categorie_immeuble',$_POST['categorie_immeuble']);
        }
        catch(Exception $e)
@@ -68,6 +69,10 @@
 $categorie_appel->value=$cn->make_array("select  fd_id,fd_label from fiche_def 
order by fd_label ");
 $categorie_appel->selected=$g_copro_parameter->categorie_appel;
 
+$categorie_charge=new ISelect('categorie_charge');
+$categorie_charge->value=$cn->make_array("select  fd_id,fd_label from 
fiche_def order by fd_label ");
+$categorie_charge->selected=$g_copro_parameter->categorie_charge;
+
 $categorie_immeuble=new ISelect('categorie_immeuble');
 $categorie_immeuble->value=$cn->make_array("select  fd_id,fd_label from 
fiche_def order by fd_label ");
 $categorie_immeuble->selected=$g_copro_parameter->categorie_immeuble;
@@ -107,6 +112,14 @@
                        <?=$categorie_appel->input();?>
                </td>
        </tr>
+               <tr>
+               <td>
+                       Catégorie de fiches pour les charges
+               </td>
+               <td>
+                       <?=$categorie_charge->input();?>
+               </td>
+       </tr>
        <tr>
                <td>
                        Journal Appel de fond



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