Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 98b64fe1

Von Kivitendo Admin vor mehr als 7 Jahren hinzugefügt

  • ID 98b64fe1e380c232428d63cea0eb5f44b1d1a2c3
  • Vorgänger 71041661
  • Nachfolger f5abed86

Ware/Erzeugnis/Dienstleistung per parts.part_type unterscheiden 2

kivitendo Code angepasst.

Unterschiede anzeigen:

SL/Controller/CsvImport/Part.pm
97 97
sub init_parts_by {
98 98
  my ($self) = @_;
99 99

  
100
#  my $parts_by = { id         => { map { ( $_->id => $_ ) } grep { !$_->assembly } @{ $self->existing_objects } },
100
#  my $parts_by = { id         => { map { ( $_->id => $_ ) } grep { !$_->part_type = 'assembly' } @{ $self->existing_objects } },
101 101
#                   partnumber => { part    => { },
102 102
#                                   service => { } } };
103 103
#
104 104
#  foreach my $part (@{ $self->existing_objects }) {
105
#    next if $part->assembly;
105
#    next if $part->part_type eq 'assembly';
106 106
#    $parts_by->{partnumber}->{ $part->type }->{ $part->partnumber } = $part;
107 107
#  }
108 108

  
......
675 675
  my ($self) = @_;
676 676

  
677 677
  my $profile = $self->SUPER::init_profile;
678
  delete @{$profile}{qw(alternate assembly bom expense_accno_id income_accno_id inventory_accno_id makemodel priceupdate stockable type)};
678
  delete @{$profile}{qw(bom expense_accno_id income_accno_id inventory_accno_id makemodel priceupdate stockable type)};
679 679

  
680 680
  $profile->{"pricegroup_$_"} = '' for 1 .. scalar @{ $_[0]->all_pricegroups };
681 681

  

Auch abrufbar als: Unified diff