Revision 7b9ad004
Von Moritz Bunkus vor fast 8 Jahren hinzugefügt
bin/mozilla/ustva.pl | ||
---|---|---|
44 | 44 |
use SL::RP; |
45 | 45 |
use SL::USTVA; |
46 | 46 |
use SL::User; |
47 |
use SL::Locale::String qw(t8); |
|
47 | 48 |
1; |
48 | 49 |
|
49 | 50 |
# this is for our long dates |
... | ... | |
94 | 95 |
|
95 | 96 |
my $department = ''; |
96 | 97 |
my $hide = ''; |
98 |
|
|
99 |
setup_ustva_report_action_bar(); |
|
97 | 100 |
$form->header; |
98 | 101 |
|
99 | 102 |
# Einlesen der Finanzamtdaten |
... | ... | |
101 | 104 |
$ustva->get_config(); |
102 | 105 |
$ustva->get_finanzamt(); |
103 | 106 |
|
104 |
my $geierlein_enabled = 0; |
|
105 |
my $geierlein_path = $::lx_office_conf{paths}{geierlein_path}; |
|
106 |
|
|
107 |
if ( $geierlein_path && length($geierlein_path) > 0 ) {$geierlein_enabled=1;} |
|
108 |
|
|
109 |
# $::lxdebug->message(LXDebug->DEBUG2,"geierlein_enabled=".$geierlein_enabled." path=".$geierlein_path); |
|
110 | 107 |
# Hier Einlesen der user-config |
111 | 108 |
# steuernummer entfernt für prerelease |
112 | 109 |
my @a = qw( |
... | ... | |
238 | 235 |
checkbox_kz_29 => $checkbox_kz_29, |
239 | 236 |
checkbox_kz_26 => $checkbox_kz_26, |
240 | 237 |
tax_office_banks => \@tax_office_banks_ref, |
241 |
geierlein_enabled => $geierlein_enabled, |
|
242 |
geierlein_path => $geierlein_path, |
|
243 | 238 |
select_options => &show_options, |
244 | 239 |
|
245 | 240 |
}; |
246 | 241 |
|
247 | 242 |
print($form->parse_html_template('ustva/report', $template_ref)); |
248 | 243 |
|
249 |
|
|
250 |
|
|
251 | 244 |
$::lxdebug->leave_sub(); |
252 | 245 |
} |
253 | 246 |
|
... | ... | |
1054 | 1047 |
call_sub($::form->{"lastsub"}); |
1055 | 1048 |
$::lxdebug->leave_sub(); |
1056 | 1049 |
} |
1050 |
|
|
1051 |
sub setup_ustva_report_action_bar { |
|
1052 |
for my $bar ($::request->layout->get('actionbar')) { |
|
1053 |
$bar->add( |
|
1054 |
action => [ |
|
1055 |
t8('Show'), |
|
1056 |
submit => [ '#form_do', { action => 'generate_ustva' } ], |
|
1057 |
accesskey => 'enter', |
|
1058 |
], |
|
1059 |
action => [ |
|
1060 |
t8('Geierlein'), |
|
1061 |
call => [ 'sendGeierlein' ], |
|
1062 |
disabled => !length($::lx_office_conf{paths}{geierlein_path} // '') ? t8('The Geierlein path has not been set in the configuration.') : undef, |
|
1063 |
tooltip => t8('Transfer data to Geierlein ELSTER application'), |
|
1064 |
], |
|
1065 |
); |
|
1066 |
} |
|
1067 |
} |
locale/de/all | ||
---|---|---|
1395 | 1395 |
'GL transactions changeable' => 'Änderbarkeit von Dialogbuchungen', |
1396 | 1396 |
'GLN' => 'GLN', |
1397 | 1397 |
'Gegenkonto' => 'Gegenkonto', |
1398 |
'Geierlein' => 'Geierlein', |
|
1398 | 1399 |
'Gender' => 'Geschlecht', |
1399 | 1400 |
'General Ledger' => 'Finanzbuchhaltung', |
1400 | 1401 |
'General Ledger Corrections' => 'Korrekturen im Hauptbuch', |
... | ... | |
2864 | 2865 |
'The Bins in Inventory were only a information text field.' => 'Die Lagerplätze unter Stammdaten/Waren sind nur ein informatives Textfeld.', |
2865 | 2866 |
'The Bins in master data were only a information text field.' => 'Die Lagerplätze unter Stammdaten/Waren sind nur ein informatives Textfeld.', |
2866 | 2867 |
'The GL transaction #1 has been deleted.' => 'Die Dialogbuchung #1 wurde gelöscht.', |
2868 |
'The Geierlein path has not been set in the configuration.' => 'Der Geierlein-Pfad wurde in der Konfigurationsdatei nicht gesetzt.', |
|
2867 | 2869 |
'The IBAN \'#1\' is not valid as IBANs in #2 must be exactly #3 characters long.' => 'Die IBAN \'#1\' ist ungültig, da IBANs in #2 genau #3 Zeichen lang sein müssen.', |
2868 | 2870 |
'The IBAN is missing.' => 'Die IBAN fehlt.', |
2869 | 2871 |
'The ID #1 is not a valid database ID.' => 'Die ID #1 ist keine gültige Datenbank-ID.', |
... | ... | |
3270 | 3272 |
'To (email)' => 'An', |
3271 | 3273 |
'To (time)' => 'Bis', |
3272 | 3274 |
'To Date' => 'Bis', |
3273 |
'To Geierlein' => 'In Geierlein ELSTER Anwendung übernehmen', |
|
3274 | 3275 |
'To continue please change the taxkey 0 to another value.' => 'Um fortzufahren, ändern Sie bitte den Steuerschlüssel 0 auf einen anderen Wert.', |
3275 | 3276 |
'To user login' => 'Zum Benutzerlogin', |
3276 | 3277 |
'Toggle marker' => 'Markierung umschalten', |
... | ... | |
3311 | 3312 |
'Transfer' => 'Umlagern', |
3312 | 3313 |
'Transfer Quantity' => 'Umlagermenge', |
3313 | 3314 |
'Transfer To Stock' => 'Lagereingang', |
3315 |
'Transfer data to Geierlein ELSTER application' => 'Daten in Geierlein ELSTER-Anwendung übernehmen', |
|
3314 | 3316 |
'Transfer from warehouse' => 'Quelllager', |
3315 | 3317 |
'Transfer in' => 'Einlagern', |
3316 | 3318 |
'Transfer in via default' => 'Einlagern über Standard-Lagerplatz', |
templates/webpages/ustva/report.html | ||
---|---|---|
1 | 1 |
[%- USE T8 %] |
2 |
[% USE HTML %] |
|
2 |
[% USE HTML %][%- USE L -%]
|
|
3 | 3 |
<h1>[% HTML.escape(title) %]</h1> |
4 | 4 |
|
5 | 5 |
<form method="post" id="form_do" action="[% HTML.escape(script) %]"> |
... | ... | |
170 | 170 |
<input type="hidden" name="co_city" value="[% HTML.escape(co_city) %]"> |
171 | 171 |
<input type="hidden" name="account_method" value="[% HTML.escape(account_method) %]"> |
172 | 172 |
<input type="hidden" name="fa_bufa_nr" value="[% HTML.escape(fa_bufa_nr) %]"> |
173 |
<table width="100%"> |
|
174 |
<tr> |
|
175 |
<td align="left"> |
|
176 |
<input type=hidden name=nextsub value=generate_ustva> |
|
177 |
<input type=hidden name=format value=html> |
|
178 |
<input type=submit class=submit name=action value="[% 'Show' | $T8 %]"> |
|
179 |
</td> |
|
180 |
[%- IF geierlein_enabled %] |
|
181 |
<td align="left"> |
|
182 |
<input type=button class=submit onclick="return sendGeierlein();" value="[% 'To Geierlein' | $T8 %]"> |
|
183 |
</td> |
|
184 |
[%- END %] |
|
185 |
<td align="right"> |
|
186 |
</td> |
|
187 |
</tr> |
|
188 |
</table> |
|
173 |
[% L.hidden_tag("format", "html") %] |
|
189 | 174 |
</form> |
190 |
[%- IF geierlein_enabled && geierlein_path %]
|
|
175 |
[%- IF LXCONFIG.paths.geierlein_path %]
|
|
191 | 176 |
<script type='text/javascript'> |
192 | 177 |
function sendGeierlein () { |
193 | 178 |
kivi.submit_ajax_form('controller.pl?action=ODGeierlein/send', $('#form_do')); |
Auch abrufbar als: Unified diff
ActionBar: Verwendung bei UStVA