';
@@ -131,6 +131,12 @@ if ( isset($_GET['new'])) {
echo $a->form();
echo $wSubmit->Submit("save","Sauver");
echo '';
+ echo '
+ Débit =
+ Crédit =
+ Difference =
+
+ ';
echo '
';
exit();
diff --git a/include/class_balance_ca_bs.php b/include/class_balance_ca_bs.php
index cbd01029d..e5c34909d 100644
--- a/include/class_balance_ca_bs.php
+++ b/include/class_balance_ca_bs.php
@@ -120,6 +120,7 @@ class balance_ca_bs extends print_ca {
$r.="
diff --git a/include/dossier.inc.php b/include/dossier.inc.php
index 726a47124..86c3cbc93 100644
--- a/include/dossier.inc.php
+++ b/include/dossier.inc.php
@@ -33,6 +33,7 @@ echo '
';
if ( isset ($_POST["DATABASE"]) ) {
$cn=DbConnect();
$dos=trim($_POST["DATABASE"]);
+$dos=FormatString($dos);
if (strlen($dos)==0) {
echo ("Dataname name is empty");
exit -1;
diff --git a/sql/upgrade.sql b/sql/upgrade.sql
index 57c1ab589..0a5b72b37 100644
--- a/sql/upgrade.sql
+++ b/sql/upgrade.sql
@@ -52,7 +52,7 @@ if length(trim(NEW.ga_id)) = 0 then
NEW.ga_id:=NULL;
return NEW;
end if;
-select ga_id from groupe_analytique where ga_id=NEW.ga_id;
+perform 'select ga_id from groupe_analytique where ga_id='||NEW.ga_id;
if NOT FOUND then
raise exception' Inexistent Group Analytic %',NEW.ga_id;
end if;