From: Jan Büren Date: Mon, 20 Dec 2021 09:41:49 +0000 (+0100) Subject: PayPostingImport: Testfall zu d32410ac096b angepasst X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~266 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=f6191560e6db010cd9bf8b0854174d772b49b5c2;p=kivitendo-erp.git PayPostingImport: Testfall zu d32410ac096b angepasst --- 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");