diff --git a/include/template/acc_ledger-input_extra_info.php b/include/template/acc_ledger-input_extra_info.php new file mode 100644 index 000000000..900f8e33b --- /dev/null +++ b/include/template/acc_ledger-input_extra_info.php @@ -0,0 +1,135 @@ + + +if (!defined('ALLOWED')) + die('Appel direct ne sont pas permis'); +if (DEBUGNOALYSS>1) { echo __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"]; + +//-- 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']; + $show="facturation_div_id"; + } elseif ($ledger_type=='ODS') { + $a_show=['template','document','reverse','type_operation']; + $show="document_div_id"; + } + + $str_tab = "";$sep=""; + foreach ($a_show as $tab) { $str_tab .=$sep. "'".$a_div[$tab]."'";$sep =",";} +?> +