get_limit_current_exercice(); $start = $http->request("start_date", "date", $limit[0]); $end = $http->request("end_date", "date", $limit[1]); $start_periode = new IDate("start_date", $start); $end_periode = new IDate("end_date", $end); echo '
'; echo '
'; echo HtmlInput::array_to_hidden(['gDossier','ac'],$_GET); echo HtmlInput::hidden("do","display"); $select_tva=new ISelect("tva_type"); $select_tva->value=array( array("value"=>'O',"label"=>_("Opération")), array("value"=>'P',"label"=>_("Paiement")), array("value"=>'T',"label"=>_("TVA")) ); $select_tva->selected=$http->get('tva_type','string','O'); printf(_("Calcul d'après la date")); echo $select_tva->input(); printf(_("Période du %s au %s"), $start_periode->input(), $end_periode->input()); echo HtmlInput::submit("show_tax_summary",_("Afficher")); echo '
'; echo '
'; if ( $http->get("do","string","no") == "display") { $tax_summary=new Tax_Summary($cn,$start_periode->value,$end_periode->value); $tax_summary->set_tva_type($select_tva->selected); try { try { $tax_summary->check(); }catch (Exception $e) { echo ''; echo $e->getMessage(); echo ''; } echo ''; $tax_summary->display(); echo ''; } catch (Exception $e) { echo ''; echo $e->getMessage(); echo ''; } } echo '
';