Revision a5b2f9b4
Von Bernd Bleßmann vor fast 8 Jahren hinzugefügt
SL/PriceSource/Pricegroup.pm | ||
---|---|---|
51 | 51 |
|
52 | 52 |
my $price = SL::DB::Manager::Price->find_by(pricegroup_id => $spec, parts_id => $self->part->id); |
53 | 53 |
|
54 |
# TODO: if someone deletes the prices entry, this fails. add a fallback |
|
54 |
if (!$price) { |
|
55 |
return SL::PriceSource::Price->new( |
|
56 |
price_source => $self, |
|
57 |
missing => t8('Could not find an entry for this part in the pricegroup.'), |
|
58 |
); |
|
59 |
} |
|
60 |
|
|
55 | 61 |
return $self->make_price($price); |
56 | 62 |
} |
57 | 63 |
|
Auch abrufbar als: Unified diff
Preisquelle Preisgruppe: Fallback für entfernte Preise.