projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a1e1544
)
PayPostingImport: Testfall zu d32410ac096b angepasst
author
Jan Büren
<jan@kivitendo.de>
Mon, 20 Dec 2021 09:41:49 +0000
(10:41 +0100)
committer
Jan Büren
<jan@kivitendo.de>
Mon, 20 Dec 2021 09:42:14 +0000
(10:42 +0100)
t/pay_posting_import/datev_import.t
patch
|
blob
|
history
diff --git
a/t/pay_posting_import/datev_import.t
b/t/pay_posting_import/datev_import.t
index
0afff35
..
e11415c
100644
(file)
--- 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");
# 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");
is ($source, $booking->transactions->[0]->source, "Source 0 correctly assigned");
is ($source, $booking->transactions->[1]->source, "Source 1 correctly assigned");