From: G. Richardson Date: Mon, 2 Oct 2017 07:10:30 +0000 (+0200) Subject: DATEV Export: invoices.t generate_datev_lines mit Encode::decode prüfen X-Git-Tag: release-3.5.4~735 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=dd33b4ae069626ed6e48f49ae02be91c46e2f44b;p=kivitendo-erp.git DATEV Export: invoices.t generate_datev_lines mit Encode::decode prüfen --- diff --git a/t/datev/invoices.t b/t/datev/invoices.t index a37c34c98..225af8836 100644 --- a/t/datev/invoices.t +++ b/t/datev/invoices.t @@ -59,10 +59,12 @@ my $datev1 = SL::DATEV->new( dbh => $invoice->db->dbh, trans_id => $invoice->id, ); + $datev1->generate_datev_data; + cmp_bag $datev1->generate_datev_lines, [ { - 'belegfeld1' => "\x{de} sales \x{a5}& inv\x{f6}ice", + 'belegfeld1' => Encode::decode('utf-8', "Þ sales Â¥& invöice"), 'buchungstext' => 'Testcustomer', 'datum' => '01.01.2017', 'gegenkonto' => '8400', @@ -74,7 +76,7 @@ cmp_bag $datev1->generate_datev_lines, [ 'soll_haben_kennzeichen' => 'S', }, { - 'belegfeld1' => "\x{de} sales \x{a5}& inv\x{f6}ice", + 'belegfeld1' => Encode::decode('utf-8', "Þ sales Â¥& invöice"), 'buchungstext' => 'Testcustomer', 'datum' => '01.01.2017', 'gegenkonto' => '8300', @@ -86,7 +88,7 @@ cmp_bag $datev1->generate_datev_lines, [ 'soll_haben_kennzeichen' => 'S', }, { - 'belegfeld1' => "\x{de} sales \x{a5}& inv\x{f6}ice", + 'belegfeld1' => Encode::decode('utf-8', "Þ sales Â¥& invöice"), 'buchungstext' => 'Testcustomer', 'datum' => '05.01.2017', 'gegenkonto' => '1400',