Revision 4d65e27a
Von Tamino Steinert vor 5 Tagen hinzugefügt
SL/DB/Part.pm | ||
---|---|---|
643 | 643 |
$self->variant_property_values) . "]"; |
644 | 644 |
} |
645 | 645 |
|
646 |
sub variant_value { |
|
647 |
my ($self, $variant_property) = @_; |
|
648 |
|
|
649 |
my %property_id_to_values = |
|
650 |
map {$_->variant_property_id => $_} |
|
651 |
@{$self->variant_property_values}; |
|
652 |
|
|
653 |
my $property_value = $property_id_to_values{$variant_property->id}; |
|
654 |
|
|
655 |
return $property_value && $property_value->displayable_name(); |
|
656 |
} |
|
657 |
|
|
646 | 658 |
sub init_onhandqty { |
647 | 659 |
my ($self) = @_; |
648 | 660 |
my $qty = SL::Helper::Inventory::get_onhand(part => $self->id) || 0; |
Auch abrufbar als: Unified diff
Varianten: Varianten Eigenschaften zum Stammartikel hinzufügen