use SL::RP;
use SL::USTVA;
use SL::User;
+use SL::Locale::String qw(t8);
1;
# this is for our long dates
my $department = '';
my $hide = '';
+
+ setup_ustva_report_action_bar();
$form->header;
# Einlesen der Finanzamtdaten
$ustva->get_config();
$ustva->get_finanzamt();
- my $geierlein_enabled = 0;
- my $geierlein_path = $::lx_office_conf{paths}{geierlein_path};
-
- if ( $geierlein_path && length($geierlein_path) > 0 ) {$geierlein_enabled=1;}
-
-# $::lxdebug->message(LXDebug->DEBUG2,"geierlein_enabled=".$geierlein_enabled." path=".$geierlein_path);
# Hier Einlesen der user-config
# steuernummer entfernt für prerelease
my @a = qw(
checkbox_kz_29 => $checkbox_kz_29,
checkbox_kz_26 => $checkbox_kz_26,
tax_office_banks => \@tax_office_banks_ref,
- geierlein_enabled => $geierlein_enabled,
- geierlein_path => $geierlein_path,
select_options => &show_options,
};
print($form->parse_html_template('ustva/report', $template_ref));
-
-
$::lxdebug->leave_sub();
}
# edit all taxauthority prefs
+ setup_ustva_config_step1_action_bar();
+
$::form->header;
my $ustva = USTVA->new();
my %_hidden_local_variables = (
'saved' => $::locale->text('Check Details'),
- 'nextsub' => 'config_step2',
- 'warnung' => '0',
);
foreach my $variable (keys %_hidden_local_variables) {
$::auth->assert('advance_turnover_tax_return');
+ setup_ustva_config_step2_action_bar();
+
$form->header();
my $fa_land_nr = '';
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',
my @_hidden_form_variables = qw(
fa_dauerfrist fa_steuerberater_city fa_steuerberater_name
- fa_steuerberater_street fa_steuerberater_tel
+ fa_steuerberater_street fa_steuerberater_tel
fa_voranmeld fa_dauerfrist
accounting_method
type
- saved callback
+ saved
);
foreach my $variable (@_hidden_form_variables) {
my $template_ref = {
input_steuernummer => $input_steuernummer,
readonly => '', #q|disabled="disabled"|,
- callback => $form->{callback},
COA_Germany => $form->{COA_Germany},
hidden_variables => $_hidden_variables_ref,
};
call_sub($::form->{"lastsub"});
$::lxdebug->leave_sub();
}
+
+sub setup_ustva_report_action_bar {
+ for my $bar ($::request->layout->get('actionbar')) {
+ $bar->add(
+ action => [
+ t8('Show'),
+ submit => [ '#form_do', { action => 'generate_ustva' } ],
+ accesskey => 'enter',
+ ],
+ action => [
+ t8('Geierlein'),
+ call => [ 'sendGeierlein' ],
+ disabled => !length($::lx_office_conf{paths}{geierlein_path} // '') ? t8('The Geierlein path has not been set in the configuration.') : undef,
+ tooltip => t8('Transfer data to Geierlein ELSTER application'),
+ ],
+ );
+ }
+}
+
+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' ],
+ ],
+ );
+ }
+}