X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=t%2Fyear_end%2Fyear_end.t;h=dc0be7c58abc411b8267902a34ce187a0d059b30;hb=332e327b6613bf762b34d841442378de255d946b;hp=39a7f1c51aa2cc9829a1d747373f74096f1508ab;hpb=a493c210af861b1b92f4a674ddc808e975a2c6d3;p=kivitendo-erp.git 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', );