X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=t%2Fpay_posting_import%2Fdatev_import.t;h=e11415c8506ea137ef462ee551c17fc9967e08cf;hb=51a586e7fce096525d476919e809945a04dcf2ab;hp=0afff356c907e784320ca67efc681f2cee892faa;hpb=cdee87dfae07c6ccd6000d7e7a18678225428f58;p=kivitendo-erp.git diff --git a/t/pay_posting_import/datev_import.t b/t/pay_posting_import/datev_import.t index 0afff356c..e11415c85 100644 --- a/t/pay_posting_import/datev_import.t +++ b/t/pay_posting_import/datev_import.t @@ -73,7 +73,13 @@ foreach my $booking (@{ $gl_bookings }) { # gl is ($current_row->[13], $booking->reference, "Buchungstext correct"); - is ("Wisavis", $booking->department->description, "Department correctly assigned"); + if (ref $booking->department eq 'SL::DB::Department') { + is ($current_row->[36], 'wisavis', "Department correctly assigned"); # lowercase + is ('Wisavis', $booking->department->description, "Department correctly assigned"); # upper case + } else { + is ($current_row->[36], '', "No Department correctly assigned"); + + } is ($source, $booking->transactions->[0]->source, "Source 0 correctly assigned"); is ($source, $booking->transactions->[1]->source, "Source 1 correctly assigned");