Projekt

Allgemein

Profil

Fehler #172 » 0001-Csv-Import-Anzahl-der-Fehler-beim-Ergebnis-anzeigen.patch

Bernd Bleßmann, 30.05.2016 13:34

Unterschiede anzeigen:

SL/Controller/CsvImport.pm
204 204

  
205 205
  my $rows             = SL::DB::Manager::CsvImportReportRow->get_all(query => \@query);
206 206
  my $status           = SL::DB::Manager::CsvImportReportStatus->get_all(query => \@query);
207
  $self->{num_errors}  = SL::DB::Manager::CsvImportReportStatus->get_all_count(query => [ and => [csv_import_report_id => $report_id,
208
                                                                                                  type                 => 'errors'] ]);
207 209

  
208 210
  $self->{report_rows}   = $self->{report}->folded_rows(rows => $rows);
209 211
  $self->{report_status} = $self->{report}->folded_status(status => $status);
templates/webpages/csv_import/report.html
1 1
[% USE HTML %]
2 2
[% USE LxERP %]
3 3
[% USE L %]
4
 <h3>[%- LxERP.t8('Import result') %]</h3>
4
 <h3>
5
   [%- LxERP.t8('Import result') %]
6
   [%- IF SELF.num_errors -%]
7
     <font color="red">([%- SELF.num_errors -%]&nbsp;[%- LxERP.t8('Errors') -%])</font>
8
   [%- END -%]
9
 </h3>
5 10

  
6 11
[%- PROCESS 'common/paginate.html' pages=SELF.pages, base_url = SELF.base_url %]
7 12
 <table>
8
- 
    (1-1/1)