if (!defined('ALLOWED')) die('Appel direct ne sont pas permis'); /** * @file * @brief show all the operation in currency by accounting */ $http=new HttpInput(); $action=$http->get("action","string","no"); $search_type=$http->request("search_type","string","all"); $print_operation_currency=Print_Operation_Currency::build($search_type); $from_date=new IDate("from_date",$print_operation_currency->getData_operation()->getFrom_date()); $to_date=new IDate("to_date",$print_operation_currency->getData_operation()->getTo_date()); $from_account=new IPoste("from_account",$http->request("from_account", "string", "")); $to_account=new IPoste("to_account",$http->request("to_account", "string", "")); $from_account->name='from_account'; $from_account->set_attribute('gDossier',Dossier::id()); $from_account->set_attribute('jrn',0); $from_account->set_attribute('account','from_account'); $to_account->name='to_account'; $to_account->set_attribute('gDossier',Dossier::id()); $to_account->set_attribute('jrn',0); $to_account->set_attribute('account','to_account'); $selCurrency=new ISelect("p_currency_code"); $selCurrency->value=$cn->make_array("select id,cr_code_iso from currency where id > 0 order by cr_code_iso"); $selCurrency->selected=$print_operation_currency->getData_operation()->getCurrency_id(); if ( DEBUGNOALYSS > 1) { echo \Noalyss\Dbg::hidden_info("print_operation ",$print_operation_currency->getData_operation());} $msg["all"]=_("Aucun filtre"); $msg["by_card"]=_("Par fiche"); $msg["by_accounting"]=_("Par poste comptable"); $msg["by_category"]=_("Par catégorie de fiche"); $select_box=new Select_Box("filter_type",$msg[$search_type]); $select_box->add_javascript(_("Aucun filtre"),"show_currency_type_search('all')",true); $select_box->add_javascript(_("Par fiche"),"show_currency_type_search('card_id')",true); $select_box->add_javascript(_("Par poste comptable"),"show_currency_type_search('account_id')",true); $select_box->add_javascript(_("Par catégorie de fiche"),"show_currency_type_search('card_category_div_id')",true); ?>
input()?> input()?> input()?> input()?>
">
input()?> input()?>
">
set_attribute("typecard","all"); $card->value=$http->request("card","string",""); $card->extra='all'; echo $card->input(); echo $card->search(); ?>
">
value=$cn->make_array("select fd_id , fd_label from fiche_def order by fd_label"); $card_category->selected=$http->request("card_category_id","number",0); ?> input()?>
request("ac"))?>

getData_operation()->build_SQL()); echo $print_operation_currency->export_html(); } catch (Exception $exc) { echo h2($exc->getMessage(),'class="error"'); return; } ?>
request("ac"))?> request("gDossier","number"))?>