phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r5323 - in phpcompta/trunk: . include include/template


From: phpcompta-dev
Subject: [Phpcompta-dev] r5323 - in phpcompta/trunk: . include include/template
Date: Sun, 9 Jun 2013 20:21:58 +0200 (CEST)

Author: danydb
Date: 2013-06-09 20:21:57 +0200 (Sun, 09 Jun 2013)
New Revision: 5323

Modified:
   phpcompta/trunk/
   phpcompta/trunk/include/ac_common.php
   phpcompta/trunk/include/class_acc_account_ledger.php
   phpcompta/trunk/include/class_acc_ledger.php
   phpcompta/trunk/include/class_fiche.php
   phpcompta/trunk/include/export_histo_csv.php
   phpcompta/trunk/include/template/dashboard.php
Log:
Merged revisions 5320-5322 via svnmerge from 
svn+ssh://address@hidden/svn/phpcompta/tags/rel660

........
  r5320 | danydb | 2013-06-09 19:27:58 +0200 (Sun, 09 Jun 2013) | 1 line
  
  bug #0000856: Probl?\195?\168me filtre fiche dans ODS
........
  r5321 | danydb | 2013-06-09 19:39:13 +0200 (Sun, 09 Jun 2013) | 1 line
  
  bug #0000855: Ordre des pi?\195?\168ces justificatives
........
  r5322 | danydb | 2013-06-09 19:46:50 +0200 (Sun, 09 Jun 2013) | 1 line
  
  bug #0000854: DASHBOARD : date mal form?\195?\169e
........



Property changes on: phpcompta/trunk
___________________________________________________________________
Name: svnmerge-integrated
   - /phpcompta/tags/rel660:1-5318
   + /phpcompta/tags/rel660:1-5322

Modified: phpcompta/trunk/include/ac_common.php
===================================================================
--- phpcompta/trunk/include/ac_common.php       2013-06-09 17:46:50 UTC (rev 
5322)
+++ phpcompta/trunk/include/ac_common.php       2013-06-09 18:21:57 UTC (rev 
5323)
@@ -1054,7 +1054,7 @@
                ?>
                <tr class="<?php echo (($i%2)==0)?'odd':'even';?>">
                        <td>
-                               <?php echo 
smaller_date($p_array[$i]['jr_date']) ?>
+                               <?php echo 
smaller_date(format_date($p_array[$i]['jr_date']) );?>
                        </td>
                        <td>
                                <?php echo 
HtmlInput::detail_op($p_array[$i]['jr_id'], $p_array[$i]['jr_internal']) ?>

Modified: phpcompta/trunk/include/class_acc_account_ledger.php
===================================================================
--- phpcompta/trunk/include/class_acc_account_ledger.php        2013-06-09 
17:46:50 UTC (rev 5322)
+++ phpcompta/trunk/include/class_acc_account_ledger.php        2013-06-09 
18:21:57 UTC (rev 5323)
@@ -159,7 +159,7 @@
                                  " ( to_date($2,'DD.MM.YYYY') <= j_date and ".
                                  "   to_date($3,'DD.MM.YYYY') >= j_date )".
                                  " and $filter_sql  $sql_let ".
-                                 " order by 
j_date,substring(jr_pj_number,'\\\\d+$') asc",array($this->id,$p_from,$p_to));
+                                 " order by 
j_date,substring(jr_pj_number,'[0-9]+$') asc",array($this->id,$p_from,$p_to));
         return $this->get_row_sql($Res);
     }
 

Modified: phpcompta/trunk/include/class_acc_ledger.php
===================================================================
--- phpcompta/trunk/include/class_acc_ledger.php        2013-06-09 17:46:50 UTC 
(rev 5322)
+++ phpcompta/trunk/include/class_acc_ledger.php        2013-06-09 18:21:57 UTC 
(rev 5323)
@@ -391,7 +391,7 @@
                                        "jr_grpt_id=j_grpt " .
                                        " left join tmp_pcmn on pcm_val=j_poste 
" .
                                        " where j_jrn_def=" . $this->id .
-                                       " and " . $periode . " order by 
j_date::date asc,substring(jr_pj_number,'\\\\d+$')::numeric asc,j_grpt,j_debit 
desc " .
+                                       " and " . $periode . " order by 
j_date::date asc,substring(jr_pj_number,'[0-9]+$')::numeric asc,j_grpt,j_debit 
desc " .
                                        $cond_limite);
                }
                else
@@ -411,7 +411,7 @@
                                                                                
 join jrn_def on (jr_def_id=jrn_def_id)
                                                                                
 where " .
                                        $g_user->get_ledger_sql() . " and " .
-                                       "  " . $periode . " order by 
j_date::date,substring(jr_pj_number,'\\\\d+$') asc,j_grpt,j_debit desc   " .
+                                       "  " . $periode . " order by 
j_date::date,substring(jr_pj_number,'[0-9]+$') asc,j_grpt,j_debit desc   " .
                                        $cond_limite);
                }
 
@@ -545,7 +545,7 @@
              jrn_def_type,
              jrn.jr_tech_per
              FROM jrn join jrn_def on (jrn_def_id=jr_def_id)
-             WHERE $periode $jrn order by 
jr_date,substring(jrn.jr_pj_number,'\\\d+$')::numeric asc  $cond_limite";
+             WHERE $periode $jrn order by 
jr_date,substring(jrn.jr_pj_number,'[0-9]+$')::numeric asc  $cond_limite";
 
                $Res = $this->db->exec_sql($sql);
                $Max = Database::num_row($Res);
@@ -813,9 +813,9 @@
                // Sort
                $url = "?" . CleanUrl();
                $str_dossier = dossier::get();
-               $table->add("Date", $url, 'order by jr_date 
asc,substring(jr_pj_number,\'\\\d+$\')::numeric asc', 'order by  jr_date 
desc,substring(jr_pj_number,\'\\\d+$\')::numeric desc', "da", "dd");
+               $table->add("Date", $url, 'order by jr_date 
asc,substring(jr_pj_number,\'[0-9]+$\')::numeric asc', 'order by  jr_date 
desc,substring(jr_pj_number,\'[0-9]+$\')::numeric desc', "da", "dd");
                $table->add('Echeance', $url, " order by  jr_ech asc", " order 
by  jr_ech desc", 'ea', 'ed');
-               $table->add('PJ', $url, ' order by  
substring(jr_pj_number,\'\\\d+$\')::numeric asc ', ' order by  
substring(jr_pj_number,\'\\\d+$\')::numeric desc ', "pja", "pjd");
+               $table->add('PJ', $url, ' order by  
substring(jr_pj_number,\'[0-9]+$\')::numeric asc ', ' order by  
substring(jr_pj_number,\'[0-9]+$\')::numeric desc ', "pja", "pjd");
                $table->add('Tiers', $url, " order by  name asc", " order by  
name desc", 'na', 'nd');
                $table->add('Montant', $url, " order by jr_montant asc", " 
order by jr_montant desc", "ma", "md");
                $table->add("Description", $url, "order by jr_comment asc", 
"order by jr_comment desc", "ca", "cd");
@@ -1681,7 +1681,6 @@
 
                        // name of the field to update with the name of the card
                        $quick_code->set_attribute('label', "ld" . $i);
-                       $quick_code->set_attribute('jrn', $this->id);
 
                        // name of the field to update with the name of the card
                        $quick_code->set_attribute('typecard', 'filter');
@@ -1691,7 +1690,6 @@
                        $quick_code->set_function('fill_data');
                        $quick_code->javascript = sprintf(' 
onchange="fill_data_onchange(\'%s\');" ', $quick_code->name);
 
-                       $quick_code->jrn = $this->id;
                        $quick_code->value = (isset(${'qc_' . $i})) ? ${'qc_' . 
$i} : "";
                        $quick_code->readonly = $p_readonly;
 
@@ -2859,7 +2857,7 @@
                                " from jrn join jrn_def on 
(jr_def_id=jrn_def_id) where  " .
                                " jr_date >= (select p_start from parm_periode 
where p_id = $1)
                                 and  jr_date <= (select p_end from 
parm_periode where p_id  = $2)" .
-                               '  ' . $jrn . ' order by 
jr_date,substring(jr_pj_number,\'\\\d+$\')::numeric asc';
+                               '  ' . $jrn . ' order by 
jr_date,substring(jr_pj_number,\'[0-9]+$\')::numeric asc';
                $ret = $this->db->get_array($sql, array($p_from, $p_to));
                return $ret;
        }

Modified: phpcompta/trunk/include/class_fiche.php
===================================================================
--- phpcompta/trunk/include/class_fiche.php     2013-06-09 17:46:50 UTC (rev 
5322)
+++ phpcompta/trunk/include/class_fiche.php     2013-06-09 18:21:57 UTC (rev 
5323)
@@ -1119,7 +1119,7 @@
         }
 
         $qcode=$this->strAttribut(ATTR_DEF_QUICKCODE);
-        $Res=$this->cn->exec_sql("select distinct 
substring(jr_pj_number,'\\\\d+$'),j_id,j_date,to_char(j_date,'DD.MM.YYYY') as 
j_date_fmt,j_qcode,".
+        $Res=$this->cn->exec_sql("select distinct 
substring(jr_pj_number,'[0-9]+$'),j_id,j_date,to_char(j_date,'DD.MM.YYYY') as 
j_date_fmt,j_qcode,".
                                  "case when j_debit='t' then j_montant else 0 
end as deb_montant,".
                                  "case when j_debit='f' then j_montant else 0 
end as cred_montant,".
                                  " jr_comment as description,jrn_def_name as 
jrn_name,".
@@ -1134,7 +1134,7 @@
                                  " ( to_date($2,'DD.MM.YYYY') <= j_date and ".
                                  "   to_date($3,'DD.MM.YYYY') >= j_date )".
                                  " and $filter_sql $sql_let ".
-                                 " order by 
j_date,substring(jr_pj_number,'\\\\d+$')",array($qcode,$p_from,$p_to));
+                                 " order by 
j_date,substring(jr_pj_number,'[0-9]+$')",array($qcode,$p_from,$p_to));
 
         return $this->get_row_result($Res);
     }
@@ -1910,7 +1910,7 @@
        }
        function get_all_account()
        {
-               
+
        }
 }
 

Modified: phpcompta/trunk/include/export_histo_csv.php
===================================================================
--- phpcompta/trunk/include/export_histo_csv.php        2013-06-09 17:46:50 UTC 
(rev 5322)
+++ phpcompta/trunk/include/export_histo_csv.php        2013-06-09 18:21:57 UTC 
(rev 5323)
@@ -31,7 +31,7 @@
 $ledger=new Acc_Ledger($cn,0);
 list($sql,$where)=$ledger->build_search_sql($_GET);
 
-$order=" order by jr_date_order asc,substring(jr_pj_number,'\\\d+$')::numeric 
asc ";
+$order=" order by jr_date_order asc,substring(jr_pj_number,'[0-9]+$')::numeric 
asc ";
 
 $res=$cn->get_array($sql.$order);
 

Modified: phpcompta/trunk/include/template/dashboard.php
===================================================================
--- phpcompta/trunk/include/template/dashboard.php      2013-06-09 17:46:50 UTC 
(rev 5322)
+++ phpcompta/trunk/include/template/dashboard.php      2013-06-09 18:21:57 UTC 
(rev 5323)
@@ -334,11 +334,7 @@
 var 
array=Array('customer_now_div','customer_late_div','supplier_now_div','supplier_late_div','action_now_div','action_late_div');
 var i=0;
 for  (i=0;i < array.length;i++) {
-
-       if ( ! document.getElementById(array[i])) {
-               console.log('ATTENTION'+array[i]);
-       }
        new Draggable(array[i],{});
-}
+       }
 } catch (e) { alert(e.getMessage);}
 </script>
\ No newline at end of file



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