CsvImport::BankTransaction: currency als info spalte anzeigen
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 17 Jun 2016 12:46:15 +0000 (14:46 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 17 Jun 2016 12:46:15 +0000 (14:46 +0200)
SL/Controller/CsvImport/BankTransaction.pm

index addcb01..5be8968 100644 (file)
@@ -56,6 +56,7 @@ sub check_objects {
   }
 
   $self->add_info_columns({ header => $::locale->text('Bank account'), method => 'local_bank_name' });
+  $self->add_raw_data_columns("currency", "currency_id") if grep { /^currency(?:_id)?$/ } @{ $self->csv->header };
 }
 
 sub check_existing {