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
my $rows = SL::DB::Manager::CsvImportReportRow->get_all(query => \@query);
my $status = SL::DB::Manager::CsvImportReportStatus->get_all(query => \@query);
$self->{num_errors} = SL::DB::Manager::CsvImportReportStatus->get_all_count(query => [ and => [csv_import_report_id => $report_id,
type => 'errors'] ]);
$self->{report_rows} = $self->{report}->folded_rows(rows => $rows);
$self->{report_status} = $self->{report}->folded_status(status => $status);
templates/webpages/csv_import/report.html
[% USE HTML %]
[% USE LxERP %]
[% USE L %]
<h3>[%- LxERP.t8('Import result') %]</h3>
<h3>
[%- LxERP.t8('Import result') %]
[%- IF SELF.num_errors -%]
<font color="red">([%- SELF.num_errors -%]&nbsp;[%- LxERP.t8('Errors') -%])</font>
[%- END -%]
</h3>
[%- PROCESS 'common/paginate.html' pages=SELF.pages, base_url = SELF.base_url %]
<table>
    (1-1/1)