if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); \Noalyss\Dbg::echo_file(__FILE__); /** * @file * @brief display supplemental information to save when entering an operation of * sale, purchase, financial or for a misc. operation */ $http=new HttpInput(); $ledger_type = $this->get_type(); $a_show=[]; $a_div=["template"=>"modele_div_id", "repo"=>"repo_div_id" , "invoice"=>"facturation_div_id", "reverse"=>"reverse_div_id", "type_operation"=>'operationtype_div_id', "document"=>"document_div_id", "action_gestion"=>"actiongestion_div_id"]; //-- Define option to display // template : template of operation , invoice : doc. to generate, document : document // to upload , reverse : reverse operation if ( $ledger_type == 'ACH' || $ledger_type == 'VEN') { $a_show=['template','repo','invoice','reverse','action_gestion']; $show="facturation_div_id"; } elseif ($ledger_type=='ODS') { $a_show=['template','document','reverse','type_operation','action_gestion']; $show="document_div_id"; } $str_tab = "";$sep=""; foreach ($a_show as $tab) { $str_tab .=$sep. "'".$a_div[$tab]."'";$sep =",";} ?>