| ". $array[$i]->strAttribut(ATTR_DEF_NAME). " | ". - "". + td(h($array[$i]->ledger_name)). + td(h($array[$i]->ledger_description)). + ' | '. nbm($solde). " | ". - "". + ' | '. nbm($saldo_rec). " | ". - "". + ' | '. nbm($diff). " | ". "
';
{
echo create_script(" get_last_date()");
}
-
+echo create_script(" update_name()");
exit();
?>
diff --git a/include/constant.php b/include/constant.php
index f99b67681..f1b5cdb08 100644
--- a/include/constant.php
+++ b/include/constant.php
@@ -71,7 +71,7 @@ define ("SITE_UPDATE",'http://www.phpcompta.eu/last_version.txt');
define ("SITE_UPDATE_PLUGIN",'http://www.phpcompta.eu/plugin_last_version.txt');
-define ("DBVERSION",109);
+define ("DBVERSION",110);
define ("MONO_DATABASE",25);
define ("DBVERSIONREPO",14);
define ('NOTFOUND','--not found--');
diff --git a/include/fiche.inc.php b/include/fiche.inc.php
index 20a015ace..f4535f023 100644
--- a/include/fiche.inc.php
+++ b/include/fiche.inc.php
@@ -309,7 +309,9 @@ if ($_GET['histo'] == 4 || $_GET['histo'] == 5)
continue;
}
echo '';
+ $id="table_".$afiche[$e]."_id";
+ echo _('Filtre rapide:').HtmlInput::filter_table($id, '0,1,2', '1');
+ echo '';
echo tr(
th('Quick Code') .
th('Libellé') .
@@ -341,15 +343,16 @@ if ($_GET['histo'] == 4 || $_GET['histo'] == 5)
td(HtmlInput::history_card($oCard->id, $oCard->strAttribut(ATTR_DEF_QUICKCODE))) .
td($oCard->strAttribut(ATTR_DEF_NAME)) .
td($oCard->strAttribut(ATTR_DEF_ACCOUNT)).
- td(nbm($solde['debit']), 'style="text-align:right"') .
- td(nbm($solde['credit']), 'style="text-align:right"') .
- td(nbm(abs($solde['solde'])), 'style="text-align:right"') .
+ td(nbm($solde['debit']), 'class="sorttable_numeric" sorttable_customkey="'.$solde['debit'].'" style="text-align:right"') .
+ td(nbm($solde['credit']), 'class="sorttable_numeric" sorttable_customkey="'.$solde['debit'].'" style="text-align:right"') .
+ td(nbm(abs($solde['solde'])), 'class="sorttable_numeric" sorttable_customkey="'.$solde['solde'].'" style="text-align:right"') .
td((($solde['debit'] < $solde['credit']) ? 'CRED' : 'DEB'), 'style="text-align:right"'), $class
);
}
+ echo '';
echo tr(
td('').
td(_('Totaux')).
@@ -358,6 +361,7 @@ if ($_GET['histo'] == 4 || $_GET['histo'] == 5)
td(nbm($sum_cred), 'style="text-align:right"').
td(nbm(abs($sum_solde)), 'style="text-align:right"').
td((($sum_deb < $sum_cred) ? 'CRED' : 'DEB'), 'style="text-align:right"'),"");
+ echo '';
echo '
';
}
if ( $allcard == 0 ) echo $str_add_card;
diff --git a/include/function_javascript.php b/include/function_javascript.php
index 1282eb5b0..49e520e3a 100644
--- a/include/function_javascript.php
+++ b/include/function_javascript.php
@@ -21,7 +21,7 @@ function js_include($p_string)
if ( ! file_exists('js/'.$p_string))
alert("Erreur js/$p_string n existe pas");
- $script='';
+ $script='';
// debug
return $script;
@@ -34,7 +34,7 @@ function js_include($p_string)
*/
function create_script($p_string)
{
- $script='';
+ $script='';
return $script;
}
diff --git a/include/history_operation.inc.php b/include/history_operation.inc.php
index 83def2523..c7d00c0bc 100644
--- a/include/history_operation.inc.php
+++ b/include/history_operation.inc.php
@@ -94,7 +94,7 @@ if (isset($_GET ['paid']))
$msg="";
-/* by default we should the default period */
+/* by default we should use the default period */
if (!isset($p_array['date_start']))
{
$period = $g_user->get_periode();
@@ -102,11 +102,11 @@ if (!isset($p_array['date_start']))
list($date_start, $date_end) = $per->get_date_limit();
$p_array['date_start'] = $date_start;
$p_array['date_end'] = $date_end;
- $msg='
@@ -381,8 +383,31 @@ function toggleShowDetail() {
for ($i=0;$i' . $cn->get_value("select fd_label from fiche_def where fd_id=$1", array($afiche[$e]['fd_id'])) . '
'; - echo ''."Periode ".$date_start." au ".$date_end.'
'; + $msg=''."Période ".$date_start." au ".$date_end.'
'; } else { - $msg=''."Periode ".$_GET['date_start']." au ".$_GET['date_end'].'
'; + $msg=''."Période ".$_GET['date_start']." au ".$_GET['date_end'].'
'; } /* compute the sql stmt */ diff --git a/include/operation_ods_new.inc.php b/include/operation_ods_new.inc.php index 56af29718..b3cacc74d 100644 --- a/include/operation_ods_new.inc.php +++ b/include/operation_ods_new.inc.php @@ -107,6 +107,7 @@ echo ''; echo ''; echo ""; +echo create_script(" update_name()"); if ($g_parameter->MY_DATE_SUGGEST=='Y') { diff --git a/include/search.inc.php b/include/search.inc.php index 43e6f93ac..4cd2f2dcc 100644 --- a/include/search.inc.php +++ b/include/search.inc.php @@ -126,9 +126,9 @@ if ( isset ($_GET['viewsearch']) ) echo HtmlInput::submit("upd_rec","Mettre à jour"); if (! $inside )echo $bar; - if (isset($_GET['r_jrn'])) { - foreach ($_GET['r_jrn'] as $k=>$v) - echo HtmlInput::hidden('r_jrn['.$k.']',$v); + if (isset($_GET[$op.'r_jrn'])) { + foreach ($_GET[$op.'r_jrn'] as $k=>$v) + echo HtmlInput::hidden($op.'r_jrn['.$k.']',$v); } echo ''; } diff --git a/include/template/dashboard.php b/include/template/dashboard.php index bde8a9bdb..3042b9ec8 100644 --- a/include/template/dashboard.php +++ b/include/template/dashboard.php @@ -318,7 +318,7 @@ endif;
-
+ + + + + Modifier + + + + + + +
'; + new_element.innerHTML='
'; docAdded.appendChild(new_element); } catch(exception) { alert(''); alert(exception.message);} @@ -413,6 +438,9 @@ catch(exception) { alert('
+ +