if ($entry->{raw_data}->{datatype} eq $self->_order_column) {
$self->handle_order($entry);
+ } elsif ($entry->{raw_data}->{datatype} eq $self->_item_column && $entry->{object}->can('part')) {
+ $self->handle_item($entry);
}
+
} continue {
$i++;
}
$self->add_columns($self->_order_column, 'globalproject_id') if exists $self->controller->data->[0]->{raw_data}->{globalprojectnumber};
$self->add_columns($self->_order_column, 'cp_id') if exists $self->controller->data->[0]->{raw_data}->{contact};
- foreach my $entry (@{ $self->controller->data }) {
- if ($entry->{raw_data}->{datatype} eq $self->_item_column && $entry->{object}->can('part')) {
- $self->handle_item($entry);
- }
- }
-
$self->add_info_columns($self->_item_column,
{ header => $::locale->text('Part Number'), method => 'partnumber' });
# Todo: access via ->[1] ok? Better: search first item column and use this