X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=t%2Fdatev%2Finvoices.t;fp=t%2Fdatev%2Finvoices.t;h=05e9aa4dd1689b994849d50a9901a07c96a909fb;hb=8abfdcfcd5021aa2fad1226a1524a3c619c8007c;hp=c944dd8bd12f98b45da263442daeda50e10e3d52;hpb=5b61797958e72c0668fa818b6bc6d18433409523;p=kivitendo-erp.git diff --git a/t/datev/invoices.t b/t/datev/invoices.t index c944dd8bd..05e9aa4dd 100644 --- a/t/datev/invoices.t +++ b/t/datev/invoices.t @@ -123,7 +123,7 @@ my $umsatzsumme = sum map { $_->{umsatz} } @{ $datev_lines }; cmp_ok($::form->round_amount($umsatzsumme,2), '==', 3924.5, "Sum of all bookings ok"); note('testing gldatefrom'); -my $datev = SL::DATEV->new( +$datev = SL::DATEV->new( dbh => $dbh, from => $startdate, to => DateTime->new(year => 2017, month => 01, day => 31), @@ -133,8 +133,8 @@ $::form = Support::TestSetup->create_new_form; $::form->{gldatefrom} = DateTime->new(year => 2017, month => 3, day => 1)->to_kivitendo; $datev->generate_datev_data(from_to => $datev->fromto); -my $datev_lines = $datev->generate_datev_lines; -my $umsatzsumme = sum map { $_->{umsatz} } @{ $datev_lines }; +$datev_lines = $datev->generate_datev_lines; +$umsatzsumme = sum map { $_->{umsatz} } @{ $datev_lines }; cmp_ok($umsatzsumme, '==', 1569.8, "Sum of bookings made after March 1st (only invoice2) ok"); $::form->{gldatefrom} = DateTime->new(year => 2017, month => 5, day => 1)->to_kivitendo;