DATEV Export: invoices.t generate_datev_lines mit Encode::decode prüfen
authorG. Richardson <grichardson@kivitec.de>
Mon, 2 Oct 2017 07:10:30 +0000 (09:10 +0200)
committerJan Büren <jan@kivitendo-premium.de>
Mon, 2 Oct 2017 11:29:36 +0000 (13:29 +0200)
t/datev/invoices.t

index a37c34c..225af88 100644 (file)
@@ -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',