diff --git a/include/anc_acc_balance.inc.php b/include/anc_acc_balance.inc.php new file mode 100644 index 000000000..826cf57b5 --- /dev/null +++ b/include/anc_acc_balance.inc.php @@ -0,0 +1,16 @@ +get_request(); +echo '
'; +echo $tab->display_form(); +echo '

' . HtmlInput::submit('Recherche', 'Recherche') . '

'; + +echo '
'; +if (isset($_GET['result'])) +{ + echo $tab->show_button(); + $tab->display_html(); +} +?> diff --git a/include/anc_acc_table.inc.php b/include/anc_acc_table.inc.php new file mode 100644 index 000000000..54947f248 --- /dev/null +++ b/include/anc_acc_table.inc.php @@ -0,0 +1,16 @@ +get_request(); +echo '
'; +echo $tab->display_form(); +echo '

' . HtmlInput::submit('Recherche', 'Recherche') . '

'; + +echo '
'; +if (isset($_GET['result'])) +{ + echo $tab->show_button(); + $tab->display_html(); +} +?> diff --git a/include/anc_balance_double.inc.php b/include/anc_balance_double.inc.php new file mode 100644 index 000000000..4e6e7946c --- /dev/null +++ b/include/anc_balance_double.inc.php @@ -0,0 +1,14 @@ +get_request(); +echo '
'; +echo $bc->display_form(); +echo '
'; +if (isset($_GET['result'])) +{ + echo $bc->show_button(); + echo $bc->display_html(); +} +?> diff --git a/include/anc_balance_simple.inc.php b/include/anc_balance_simple.inc.php new file mode 100644 index 000000000..a4e40f45c --- /dev/null +++ b/include/anc_balance_simple.inc.php @@ -0,0 +1,14 @@ +get_request(); +echo '
'; +echo $bs->display_form(); +echo '
'; +if (isset($_GET['result'])) +{ + echo $bs->show_button(); + echo $bs->display_html(); +} +?> diff --git a/include/anc_great_ledger.inc.php b/include/anc_great_ledger.inc.php new file mode 100644 index 000000000..3b014cec1 --- /dev/null +++ b/include/anc_great_ledger.inc.php @@ -0,0 +1,14 @@ +get_request(); +echo '
'; +echo $gl->display_form(); +echo '

' . HtmlInput::submit('Recherche', 'Recherche') . '

'; +echo '
'; +if (isset($_GET['result'])) +{ + echo $gl->display_html(); +} +?> diff --git a/include/anc_group_balance.inc.php b/include/anc_group_balance.inc.php new file mode 100644 index 000000000..f8dca9fd5 --- /dev/null +++ b/include/anc_group_balance.inc.php @@ -0,0 +1,16 @@ +get_request(); +echo '
'; +echo $gr->display_form(); +echo '

' . HtmlInput::submit('Recherche', 'Recherche') . '

'; +echo '
'; +if (isset($_GET['result'])) +{ + echo $gr->show_button(); + + echo $gr->display_html(); +} +?> diff --git a/include/anc_history.inc.php b/include/anc_history.inc.php new file mode 100644 index 000000000..0e45cb5f5 --- /dev/null +++ b/include/anc_history.inc.php @@ -0,0 +1,27 @@ +get_request(); + +echo $list->display_form(); +//---- result +if (isset($_GET['result'])) +{ + echo '
'; + + //-------------------------------- + // export Buttons + //--------------------------------- + echo $list->show_button(); + echo $list->display_html(); + echo '
'; +} +echo ''; +?> diff --git a/include/anc_imp.inc.php b/include/anc_imp.inc.php deleted file mode 100644 index 8943b9172..000000000 --- a/include/anc_imp.inc.php +++ /dev/null @@ -1,189 +0,0 @@ -'; -echo ShowItem($menu,"H","mtitle","mtitle",$sub); -echo ''; - -echo '
'; - -$hidden=new IHidden(); -$str_hidden=$hidden->input("p_action","ca_imp"); -$str_hidden.=$hidden->input("sub",$sub); - -// select following the sub action -//------------------------------------------------------------------------------ -// listing -if ( $sub=='listing') -{ - require_once ('class_anc_listing.php'); - $list=new Anc_Listing($cn); - $list->get_request(); - - echo $list->display_form($str_hidden); - //---- result - if ( isset($_GET['result']) ) - { - echo '
'; - - //-------------------------------- - // export Buttons - //--------------------------------- - echo $list->show_button($str_hidden); - echo $list->display_html(); - echo '
'; - } - echo '
'; -} - -//------------------------------------------------------------------------------ -// Simple balance -if ($sub == 'bs') -{ - require_once ('class_anc_balance_simple.php'); - $bs=new Anc_Balance_Simple($cn); - $bs->get_request(); - echo '
'; - echo $bs->display_form($str_hidden); - echo '
'; - if ( isset($_GET['result'])) - { - echo $bs->show_button($str_hidden); - echo $bs->display_html(); - } -} - -//------------------------------------------------------------------------------ -// crossed balance -if ( $sub == 'bc2') -{ - require_once ('class_anc_balance_double.php'); - $bc=new Anc_Balance_Double($cn); - $bc->get_request (); - echo '
'; - echo $bc->display_form($str_hidden); - echo '
'; - if ( isset($_GET['result'])) - { - echo $bc->show_button($str_hidden); - echo $bc->display_html(); - } -} -//---------------------------------------------------------------------- -// Table linked between accountancy and analytic -//--------------------------------------------------------------------------- -if ( $sub == 'tab') - { - require_once('class_anc_table.php'); - $tab=new Anc_Table($cn); - $tab->get_request(); - echo '
'; - echo $tab->display_form($str_hidden); - echo '

'.HtmlInput::submit('Recherche','Recherche').'

'; - - echo '
'; - if ( isset($_GET['result'])) - { - echo $tab->show_button($str_hidden); - $tab->display_html(); - } - } - -//---------------------------------------------------------------------- -// linked between accountancy and analytic -//--------------------------------------------------------------------------- -if ( $sub == 'lico') - { - require_once('class_anc_acc_list.php'); - $tab=new Anc_Acc_List($cn); - $tab->get_request(); - echo '
'; - echo $tab->display_form($str_hidden); - echo '

'.HtmlInput::submit('Recherche','Recherche').'

'; - - echo '
'; - if ( isset($_GET['result'])) - { - echo $tab->show_button($str_hidden); - $tab->display_html(); - } - } - -//--------------------------------------------------------------------------- -if ( $sub == 'ancgl') - { - require_once('class_anc_grandlivre.php'); - $gl=new Anc_GrandLivre($cn); - $gl->get_request(); - echo '
'; - echo $gl->display_form($str_hidden); - echo '

'.HtmlInput::submit('Recherche','Recherche').'

'; - echo '
'; - if ( isset($_GET['result'])) - { - echo $gl->display_html(); - } - } -//--------------------------------------------------------------------------- -// Balance by group -//--------------------------------------------------------------------------- -if ( $sub == 'group') - { - require_once('class_anc_group.php'); - $gr=new Anc_Group($cn); - $gr->get_request(); - echo '
'; - echo $gr->display_form($str_hidden); - echo '

'.HtmlInput::submit('Recherche','Recherche').'

'; - echo '
'; - if ( isset($_GET['result'])) - { - echo $gr->show_button($str_hidden); - - echo $gr->display_html(); - } - } diff --git a/include/class_anc_acc_list.php b/include/class_anc_acc_list.php index 42663170e..82588efac 100644 --- a/include/class_anc_acc_list.php +++ b/include/class_anc_acc_list.php @@ -51,6 +51,7 @@ class Anc_Acc_List extends Anc_Acc_Link $icard->selected=$this->card_poste; $r.=$icard->input(); + $r.=HtmlInput::request_to_hidden(array('ac')); return $r; } /** diff --git a/include/class_anc_balance_double.php b/include/class_anc_balance_double.php index d02534f2c..55654c87a 100644 --- a/include/class_anc_balance_double.php +++ b/include/class_anc_balance_double.php @@ -322,7 +322,7 @@ class Anc_Balance_Double extends Anc_Print $plan_id->value=$this->db->make_array("select pa_id, pa_name from plan_analytique order by pa_name"); $plan_id->selected=$this->pa_id2; $r.= "Plan Analytique :".$plan_id->input(); - + $r.=HtmlInput::request_to_hidden(array('ac')); $poste=new IText(); $poste->size=10; $r.="Entre le poste ".$poste->input("from_poste2",$this->from_poste2); diff --git a/include/class_anc_listing.php b/include/class_anc_listing.php index 595cac345..8d3fc3a3a 100644 --- a/include/class_anc_listing.php +++ b/include/class_anc_listing.php @@ -190,6 +190,7 @@ class Anc_Listing extends Anc_Print $r.= HtmlInput::hidden("from_poste",$this->from_poste); $r.= HtmlInput::hidden("to_poste",$this->to_poste); $r.=HtmlInput::hidden('act','CSV:AncList'); + $r.=HtmlInput::hidden('ac',$_REQUEST['ac']); $r.= $p_string; $r.= dossier::hidden(); $r.=HtmlInput::submit('bt_csv',"Export en CSV"); diff --git a/include/class_anc_print.php b/include/class_anc_print.php index 54bb27b67..405bab6e8 100644 --- a/include/class_anc_print.php +++ b/include/class_anc_print.php @@ -116,9 +116,8 @@ class Anc_Print $r.="Depuis : ".$from->input(); $r.= "jusque : ".$to->input(); $r.= ''._('Les dates sont en format DD.MM.YYYY').''; - + $r.=HtmlInput::request_to_hidden(array('ac')); $r.=$p_hidden; - $r.=HtmlInput::hidden('ac',$_REQUEST['ac']); $r.=''; $plan=new Anc_Plan($this->db); $plan_id=new ISelect("pa_id"); @@ -141,6 +140,7 @@ class Anc_Print $r.=''._('Selectionnez le plan qui vous intéresse avant de cliquer sur Recherche').''; $r.=''; + $r.=HtmlInput::request_to_hidden(array('ac')); return $r; } /*! diff --git a/include/class_anc_table.php b/include/class_anc_table.php index 5c0a7145b..0fa16f2e4 100644 --- a/include/class_anc_table.php +++ b/include/class_anc_table.php @@ -44,9 +44,9 @@ class Anc_Table extends Anc_Acc_Link array('value'=>1,'label'=>'Par fiche'), array('value'=>2,'label'=>'Par poste comptable') ); - $icard->selected=$this->card_poste; $r.=$icard->input(); + $r.=HtmlInput::request_to_hidden(array('ac')); return $r; } diff --git a/sql/anc-modularity-imp.sql b/sql/anc-modularity-imp.sql new file mode 100644 index 000000000..293ca9572 --- /dev/null +++ b/sql/anc-modularity-imp.sql @@ -0,0 +1,9 @@ + +insert into menu_ref(me_code,me_menu,me_file,me_description,me_type) +values ('ANCHOP','Historique','anc_history.inc.php','Historique des imputations analytiques','ME') +values ('ANCGL','Grand''Livre','anc_great_ledger.inc.php','Grand livre d''plan analytique','ME') +values ('ANCBS','Balance simple','anc_balance_simple.inc.php','Balance simple des imputations analytiques','ME') +values ('ANCBC2','Balance croisée double','anc_balance_double.inc.php','Balance double croisées des imputations analytiques','ME') +values ('ANCTAB','Tableau','anc_acc_table.inc.php','Tableau lié à la comptabilité','ME') +values ('ANCBCC','Balance Analytique/comptabilité','anc_acc_balance.inc.php','Lien entre comptabilité et Comptabilité analytique','ME') +values ('ANCGR','Groupe','anc_group_balance.inc.php','Balance par groupe','ME'); diff --git a/sql/upgrade.sql b/sql/upgrade.sql index 3e3ed6554..5e6c2f496 100644 --- a/sql/upgrade.sql +++ b/sql/upgrade.sql @@ -26,10 +26,17 @@ script SQL to run \i object-6.0.sql \i extension.sql \i ajax-direct-form.sql --- for account repository --- \i change_account_repo.sql --- \i style-epad.sql + \i mode_paiement.sql +\i anc-modularity-imp.sql + create unique index qcode_idx on fiche_detail (ad_value) where ad_id=23; + + +--------------------------------------------------- +-- for account repository +--------------------------------------------------- +-- \i change_account_repo.sql +-- \i style-epad.sql commit;