Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1870f11e

Von Bernd Bleßmann vor fast 11 Jahren hinzugefügt

  • ID 1870f11e7915b768e83e18f8491f1e13d0702ead
  • Vorgänger 48da0312
  • Nachfolger cb7c9269

Kosmetik: Leerzeichen am Zeilenende entfernt.

Unterschiede anzeigen:

SL/Controller/CsvImport.pm
557 557
    my $row_ident = $self->worker->profile->[$i]->{row_ident};
558 558
    my $n_info_methods = $info_methods->{$row_ident} ? scalar @{ $info_methods->{$row_ident} } : 0;
559 559
    my $n_methods      = $methods->{$row_ident} ?      scalar @{ $methods->{$row_ident} }      : 0;
560
    
560

  
561 561
    $off1->{$row_ident} = $n_info_methods;
562 562
    $off2->{$row_ident} = $off1->{$row_ident} + $n_methods;
563 563
  }
......
571 571

  
572 572
    my $o1 = $off1->{$row_ident};
573 573
    my $o2 = $off2->{$row_ident};
574
    
574

  
575 575
    $sth->execute($report->id,       $_, $row + $n_header_rows, $data_row->{info_data}{ $info_methods->{$row_ident}->[$_] }) for 0 .. $#{ $info_methods->{$row_ident} };
576 576
    $sth->execute($report->id, $o1 + $_, $row + $n_header_rows, $data_row->{object}->${ \ $methods->{$row_ident}->[$_] })    for 0 .. $#{ $methods->{$row_ident} };
577 577
    $sth->execute($report->id, $o2 + $_, $row + $n_header_rows, $data_row->{raw_data}{ $raw_methods->{$row_ident}->[$_] })   for 0 .. $#{ $raw_methods->{$row_ident} };
SL/Controller/CsvImport/BaseMulti.pm
74 74
  }
75 75
  $self->controller->raw_data_headers($raw_data_headers);
76 76
  $self->controller->info_headers($info_headers);
77
    
78 77

  
79 78
  my @objects  = $self->csv->get_objects;
80 79
  $self->controller->track_progress(progress => 70);
......
101 100

  
102 101
sub add_columns {
103 102
  my ($self, $row_ident, @columns) = @_;
104
  
103

  
105 104
  my $h = $self->controller->headers->{$row_ident};
106 105

  
107 106
  foreach my $column (grep { !$h->{used}->{$_} } @columns) {
SL/Controller/CsvImport/Order.pm
308 308
      $self->check_project($entry, global => 0);
309 309
      $self->check_price_factor($entry);
310 310
      $self->check_pricegroup($entry);
311
      
312 311
    }
313 312
  }
314 313

  
SL/Helper/Csv.pm
231 231
  if ($self->is_multiplexed && ! defined $self->_row_header ) {
232 232
    $self->_row_header({ pairwise { $a->{row_ident} => $b } @{ $self->profile }, @{ $self->header } });
233 233
  }
234
    
234

  
235 235
  if ($self->is_multiplexed) {
236 236
    return $self->_row_header->{$row->[0]}
237 237
  } else {

Auch abrufbar als: Unified diff