Definition at line 49 of file class_ext_tvagen.php.
Ext_Tva_Gen::__construct |
( |
|
$p_cn | ) |
|
Ext_Tva_Gen::blank |
( |
|
$p_year, |
|
|
|
$p_periode, |
|
|
|
$p_flag_quaterly |
|
) |
| |
Definition at line 132 of file class_ext_tvagen.php.
References $GLOBALS, $p_year, and set_parameter().
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;
$GLOBALS['quaterly_limit']
set_parameter($p_string, $p_value)
static Ext_Tva_Gen::choose_periode |
( |
|
$by_year = false | ) |
|
|
static |
Definition at line 82 of file class_ext_tvagen.php.
References $_REQUEST, $array, $by_year, $r, $str_byyear, $str_hidden, $str_month, $str_monthly, $str_quater, $str_quaterly, $str_submit, $str_year, and $year.
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();
if(isset($_POST['remove'])) $array
Ext_Tva_Gen::display_info |
( |
| ) |
|
display the information about the company
Definition at line 182 of file class_ext_tvagen.php.
References $exercice, $r, and $str_date.
Referenced by Ext_List_Intra\display(), Ext_List_Assujetti\display(), and Ext_Tva\display().
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();
switch($sep_field->selected) $str_date
Ext_Tva_Gen::get_info |
( |
| ) |
|
Ext_Tva_Gen::get_parameter |
( |
|
$p_string | ) |
|
Ext_Tva_Gen::set_parameter |
( |
|
$p_string, |
|
|
|
$p_value |
|
) |
| |
Definition at line 62 of file class_ext_tvagen.php.
Referenced by blank(), and Ext_Tva\compute().
63 if ( array_key_exists($p_string,$this->variable) ) {
64 $idx=$this->variable[$p_string];
68 throw new Exception (__FILE__.
":".__LINE__.
'Erreur attribut inexistant');
The documentation for this class was generated from the following file: