Revision 98b64fe1
Von Kivitendo Admin vor mehr als 7 Jahren hinzugefügt
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
Ware/Erzeugnis/Dienstleistung per parts.part_type unterscheiden 2
kivitendo Code angepasst.