Revision 4a36e49b
Von Jan Büren vor mehr als 4 Jahren hinzugefügt
SL/USTVA.pm | ||
---|---|---|
419 | 419 |
$main::lxdebug->leave_sub(); |
420 | 420 |
} |
421 | 421 |
|
422 |
# 20.10.2009 sschoeling: this sub seems to be orphaned. |
|
423 |
sub stichtag { |
|
424 |
$main::lxdebug->enter_sub(); |
|
425 |
|
|
426 |
# noch nicht fertig |
|
427 |
# soll mal eine Erinnerungsfunktion für USTVA Abgaben werden, die automatisch |
|
428 |
# den Termin der nächsten USTVA anzeigt. |
|
429 |
# |
|
430 |
# |
|
431 |
my ($today, $FA_dauerfrist, $FA_voranmeld) = @_; |
|
432 |
|
|
433 |
#$today zerlegen: |
|
434 |
|
|
435 |
#$today =today * 1; |
|
436 |
$today =~ /(\d\d\d\d)(\d\d)(\d\d)/; |
|
437 |
my $year = $1; |
|
438 |
my $month = $2; |
|
439 |
my $day = $3; |
|
440 |
my $yy = $year; |
|
441 |
my $mm = $month; |
|
442 |
my $yymmdd = "$year$month$day" * 1; |
|
443 |
my $mmdd = "$month$day" * 1; |
|
444 |
my $stichtag = ''; |
|
445 |
|
|
446 |
#$tage_bis = '1234'; |
|
447 |
#$ical = '...vcal format'; |
|
448 |
|
|
449 |
#if ($FA_voranmeld eq 'month'){ |
|
450 |
|
|
451 |
my %liste = ( |
|
452 |
"0110" => 'December', |
|
453 |
"0210" => 'January', |
|
454 |
"0310" => 'February', |
|
455 |
"0410" => 'March', |
|
456 |
"0510" => 'April', |
|
457 |
"0610" => 'May', |
|
458 |
"0710" => 'June', |
|
459 |
"0810" => 'July', |
|
460 |
"0910" => 'August', |
|
461 |
"1010" => 'September', |
|
462 |
"1110" => 'October', |
|
463 |
"1210" => 'November', |
|
464 |
); |
|
465 |
|
|
466 |
#$mm += $dauerfrist |
|
467 |
#$month *= 1; |
|
468 |
$month += 1 if ($day > 10); |
|
469 |
$month = sprintf("%02d", $month); |
|
470 |
$stichtag = $year . $month . "10"; |
|
471 |
my $ust_va = $month . "10"; |
|
472 |
|
|
473 |
foreach my $date (%liste) { |
|
474 |
$ust_va = $liste{$date} if ($date eq $stichtag); |
|
475 |
} |
|
476 |
|
|
477 |
#} elsif ($FA_voranmeld eq 'quarter'){ |
|
478 |
#1; |
|
479 |
|
|
480 |
#} |
|
481 |
|
|
482 |
#@stichtag = ('10.04.2004', '10.05.2004'); |
|
483 |
|
|
484 |
#@liste = ['0110', '0210', '0310', '0410', '0510', '0610', '0710', '0810', '0910', |
|
485 |
# '1010', '1110', '1210', ]; |
|
486 |
# |
|
487 |
#foreach $key (@liste){ |
|
488 |
# #if ($ddmm < ('0110' * 1)); |
|
489 |
# if ($ddmm ){} |
|
490 |
# $stichtag = $liste[$key - 1] if ($ddmm > $key); |
|
491 |
# |
|
492 |
#} |
|
493 |
# |
|
494 |
#$stichtag =~ /([\d]\d)(\d\d)$/ |
|
495 |
#$stichtag = "$1.$2.$yy" |
|
496 |
#$stichtag=$1; |
|
497 |
our $description; # most probably not existent. |
|
498 |
our $tage_bis; # most probably not existent. |
|
499 |
our $ical; # most probably not existent. |
|
500 |
|
|
501 |
$main::lxdebug->leave_sub(); |
|
502 |
return ($stichtag, $description, $tage_bis, $ical); |
|
503 |
} |
|
504 |
|
|
505 | 422 |
sub query_finanzamt { |
506 | 423 |
$main::lxdebug->enter_sub(); |
507 | 424 |
|
Auch abrufbar als: Unified diff
toter code
20.10.2009 sschoeling: this sub seems to be orphaned.
-> yes.