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