27 require_once(
'tva_constant.php');
28 require_once NOALYSS_INCLUDE.
'/class/class_own.php';
37 $array=explode(
',',$p_string);
42 if ( $val ==
'')
continue;
55 if ( array_key_exists($p_string,$this->variable) ) {
56 $idx=$this->variable[$p_string];
60 throw new Exception (__FILE__.
":".__LINE__.
'Erreur attribut inexistant');
63 if ( array_key_exists($p_string,$this->variable) ) {
64 $idx=$this->variable[$p_string];
68 throw new Exception (__FILE__.
":".__LINE__.
'Erreur attribut inexistant');
72 public function get_info() {
return var_export(self::$variable,
true); }
83 require_once NOALYSS_INCLUDE.
'/lib/class_iradio.php';
84 $monthly=
new IRadio(
'periodic');
88 $month=
new ISelect(
'bymonth');
90 for ($i=0;$i<12;$i++) {
91 $array[$i][
'value']=$i+1;
$array[$i][
'label']=sprintf(
'%02d',($i+1));
94 $monthly->selected=
true;
98 $year =
new IText(
'year');
103 $quater=
new ISelect(
'byquaterly');
105 for ($i=0;$i<4;$i++) {
106 $array[$i][
'value']=$i+1;
$array[$i][
'label']=sprintf(
'%02d',($i+1));
109 $quaterly=
new IRadio(
'periodic');
114 $str_submit=HtmlInput::submit(
'decl',_(
'Afficher'));
115 $str_hidden=HtmlInput::extension().dossier::hidden();
118 $str_hidden.=HtmlInput::request_to_hidden(array(
'ac'));
121 $yearly=
new IRadio(
'periodic');
126 require_once(
'form_periode.php');
127 $r=ob_get_contents();
134 $own=
new Own($this->db);
137 $this->
set_parameter(
'adress',$own->MY_STREET.
",".$own->MY_NUMBER);
138 $this->
set_parameter(
'country',$own->MY_COUNTRY.
" ".$own->MY_CP.
" ".$own->MY_COMMUNE);
145 }
catch ( Exception $e) {
146 echo $e->getMessage();
150 if ( $p_flag_quaterly == 1) {
152 $per_start=
"01.".$p_periode.
".".
$p_year;
154 $per_end=
"31".
".".$p_periode.
".".
$p_year;
155 while ( checkdate($p_periode,$day,
$p_year) ==
false && $day > 25) {
157 $per_end=$day.
".".$p_periode.
".".
$p_year;
159 if ($day < 28 ) { echo __FILE__.__LINE__.
" Erreur de date $day"; exit;}
162 if ( $p_flag_quaterly == 2 ) {
168 if ( $p_flag_quaterly == 3 ) {
170 $per_start=
'01.01.'.$p_year;
171 $per_end=
'31.12.'.$p_year;
183 $itva=
new IText(
'num_tva',$this->num_tva);$str_tva=$itva->input();
184 $iname=
new IText(
'name',$this->tva_name); $str_name=$iname->input();
185 $iadress=
new IText(
'adress',$this->adress);$str_adress=$iadress->input();
186 $icountry=
new IText(
'country',$this->country);$str_country=$icountry->input();
190 if (isset($this->date_decl)) { $idate=
new IText(
'date',format_date($this->date_decl));
$str_date=$idate->input();}
194 if ( isset($this->start_date) ){
195 $str_start=format_date($this->start_date);
196 $str_end=format_date($this->end_date);
201 require_once(
'form_decl_info.php');
202 $r=ob_get_contents();
display_info()
display the information about the company
$GLOBALS['quaterly_limit']
set_parameter($p_string, $p_value)
blank($p_year, $p_periode, $p_flag_quaterly)
if(isset($_POST['remove'])) $array
static choose_periode($by_year=false)
get_array_nodup($p_string)
transform a string into an arrau without empty element and duplicate the array is sorted ...
switch($sep_field->selected) $str_date