X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/9a14696176033f03c97244f420d93f9c15efed61..53593baa211863fbf66540cf1bcc36c8fb37257f:/t/year_end/year_end.t diff --git a/t/year_end/year_end.t b/t/year_end/year_end.t index 39a7f1c51..dc0be7c58 100644 --- a/t/year_end/year_end.t +++ b/t/year_end/year_end.t @@ -30,9 +30,8 @@ clear_up(); # * also the default test client has the accounting method "cash" rather than "accrual" # (Ist-versteuerung, rather than Soll-versteuerung) -# hardcode for 2019, as this will break in 2020 due to change in tax (19/16 and 7/5) because we check for account sums -# can be changed back to current year in 2021 -my $year = 2019; # DateTime->today->year; +# use 2019 instead of 2020 because of tax changes in Germany (19/16 and 7/5) because we check for account sums +my $year = 2019; my $start_of_year = DateTime->new(year => $year, month => 01, day => 01); my $booking_date = DateTime->new(year => $year, month => 12, day => 22); @@ -97,7 +96,7 @@ my $ar_transaction = create_ar_transaction( $ar_transaction->pay_invoice( chart_id => $bank_account->chart_id, amount => $ar_transaction->amount, - transdate => $booking_date->to_kivitendo, + transdate => $booking_date, payment_type => 'without_skonto', );