Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1b8b9cd4

Von G. Richardson vor mehr als 4 Jahren hinzugefügt

  • ID 1b8b9cd404cc572820142311fbafd578c79de2ea
  • Vorgänger 03007e57
  • Nachfolger 424269dc

year_end.t - Testjahr: in 2020 das Jahr 2019 nehmen

wegen Steuerumstellung

Unterschiede anzeigen:

t/year_end/year_end.t
30 30
# * also the default test client has the accounting method "cash" rather than "accrual"
31 31
#   (Ist-versteuerung, rather than Soll-versteuerung)
32 32

  
33
# 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
34
# can be changed back to current year in 2021
35
my $year = 2019; # DateTime->today->year;
33
# use 2019 instead of 2020 because of tax changes in Germany (19/16 and 7/5) because we check for account sums
34
my $year = 2019 if DateTime->today_local->year == 2020;
36 35
my $start_of_year = DateTime->new(year => $year, month => 01, day => 01);
37 36
my $booking_date  = DateTime->new(year => $year, month => 12, day => 22);
38 37

  
......
97 96
$ar_transaction->pay_invoice(
98 97
                              chart_id     => $bank_account->chart_id,
99 98
                              amount       => $ar_transaction->amount,
100
                              transdate    => $booking_date->to_kivitendo,
99
                              transdate    => $booking_date,
101 100
                              payment_type => 'without_skonto',
102 101
                            );
103 102

  

Auch abrufbar als: Unified diff