Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a873249c

Von Moritz Bunkus vor fast 14 Jahren hinzugefügt

  • ID a873249c8c3c32006540d8636102c195dd4d9448
  • Vorgänger f35ddfbe
  • Nachfolger 50e62c57

Zahlen beim CSV-Export ohne Tausendertrennzeichen formatieren

Fix für Bug 1393.

Unterschiede anzeigen:

bin/mozilla/rp.pl
807 807
        </tr>
808 808
        <tr>
809 809
          <td>| . $locale->text('Review of Aging list') . qq|</td>
810
          <td><select name="review_of_aging_list"> 
810
          <td><select name="review_of_aging_list">
811 811
              <option></option>
812 812
              <option>0-30</option>
813 813
              <option>30-60</option>
......
1368 1368
                       'pdf_template'         => 'rp/html_report_susa',
1369 1369
    );
1370 1370
  $report->set_options_from_form();
1371
  $locale->set_numberformat_wo_thousands_separator(\%myconfig) if lc($report->{options}->{output_format}) eq 'csv';
1371 1372

  
1372 1373
  # add sort and escape callback, this one we use for the add sub
1373 1374
  $form->{callback} = $href .= "&sort=$form->{sort}";
......
1519 1520
                       'std_column_visibility' => 1,
1520 1521
    );
1521 1522
  $report->set_options_from_form();
1523
  $locale->set_numberformat_wo_thousands_separator(\%myconfig) if lc($report->{options}->{output_format}) eq 'csv';
1522 1524

  
1523 1525
  $report->set_columns(%column_defs);
1524 1526
  $report->set_column_order(@columns);
......
1719 1721
                       'title'                => $form->{title},
1720 1722
                       'attachment_basename'  => $attachment_basename . strftime('_%Y%m%d', localtime time),
1721 1723
    );
1724
  $report->set_options_from_form();
1725
  $locale->set_numberformat_wo_thousands_separator(\%myconfig) if lc($report->{options}->{output_format}) eq 'csv';
1722 1726

  
1723 1727
  my $previous_ctid = 0;
1724 1728
  my $row_idx       = 0;
......
1775 1779
                         'raw_bottom_info_text' => $raw_bottom_info_text);
1776 1780
  }
1777 1781

  
1778
  $report->set_options_from_form();
1779

  
1780 1782
  $report->generate_with_headers();
1781 1783

  
1782 1784
  $main::lxdebug->leave_sub();
......
2433 2435
    );
2434 2436
  $report->set_options_from_form();
2435 2437

  
2438
  $locale->set_numberformat_wo_thousands_separator(\%myconfig) if lc($report->{options}->{output_format}) eq 'csv';
2439

  
2436 2440
  $report->set_columns(%column_defs);
2437 2441
  $report->set_column_order(@columns);
2438 2442

  

Auch abrufbar als: Unified diff