X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fustva.pl;h=49f4727d5bcdc5378082520558fa55eb895ca91d;hb=c1ef3affe17e3c7d044ae3e6f70b802817de8ede;hp=94ea3d83138326507e6bd2b2e82ed712f3efff41;hpb=7b9ad00448aa5113fcc7451c0351a8ec4d3ef59e;p=kivitendo-erp.git diff --git a/bin/mozilla/ustva.pl b/bin/mozilla/ustva.pl index 94ea3d831..49f4727d5 100644 --- a/bin/mozilla/ustva.pl +++ b/bin/mozilla/ustva.pl @@ -507,12 +507,6 @@ sub ustva_vorauswahl { # $::lxdebug->leave_sub(); #} -sub debug { - $::lxdebug->enter_sub(); - $::form->debug(); - $::lxdebug->leave_sub(); -} - sub show_options { $::lxdebug->enter_sub(); @@ -774,6 +768,8 @@ $::form->{title} = $::locale->text('Tax Office Preferences'); # edit all taxauthority prefs + setup_ustva_config_step1_action_bar(); + $::form->header; my $ustva = USTVA->new(); @@ -800,8 +796,6 @@ $::form->{title} = $::locale->text('Tax Office Preferences'); my %_hidden_local_variables = ( 'saved' => $::locale->text('Check Details'), - 'nextsub' => 'config_step2', - 'warnung' => '0', ); foreach my $variable (keys %_hidden_local_variables) { @@ -845,6 +839,8 @@ sub config_step2 { $::auth->assert('advance_turnover_tax_return'); + setup_ustva_config_step2_action_bar(); + $form->header(); my $fa_land_nr = ''; @@ -923,7 +919,6 @@ sub config_step2 { my %_hidden_local_variables = ( 'fa_land_nr' => $fa_land_nr, 'fa_bufa_nr' => $fa_bufa_nr, - 'warnung' => 0, 'taxnumber' => $stnr, 'lastsub' => 'config_step1', 'nextsub' => 'save', @@ -941,7 +936,7 @@ sub config_step2 { fa_voranmeld fa_dauerfrist accounting_method type - saved callback + saved ); foreach my $variable (@_hidden_form_variables) { @@ -952,7 +947,6 @@ sub config_step2 { my $template_ref = { input_steuernummer => $input_steuernummer, readonly => '', #q|disabled="disabled"|, - callback => $form->{callback}, COA_Germany => $form->{COA_Germany}, hidden_variables => $_hidden_variables_ref, }; @@ -1065,3 +1059,31 @@ sub setup_ustva_report_action_bar { ); } } + +sub setup_ustva_config_step1_action_bar { + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Continue'), + submit => [ '#form', { action => 'config_step2' } ], + accesskey => 'enter', + ], + ); + } +} + +sub setup_ustva_config_step2_action_bar { + for my $bar ($::request->layout->get('actionbar')) { + $bar->add( + action => [ + t8('Save'), + submit => [ '#form', { action => 'save' } ], + accesskey => 'enter', + ], + action => [ + t8('Back'), + call => [ 'kivi.history_back' ], + ], + ); + } +}