my $prices = SL::DB::Manager::Price->get_all(
query => [ parts_id => $item->parts_id, price => { gt => 0 } ],
with_objects => 'pricegroup',
- order_by => 'pricegroun.id',
+ order_by => 'pricegroup.id',
);
return () unless @$prices;
} @$prices;
}
+sub available_discounts { }
+
sub price_from_source {
my ($self, $source, $spec) = @_;
return $self->make_price($price);
}
+sub discount_from_source { }
+
sub best_price {
my ($self, %params) = @_;
return $best_price || ();
}
+sub best_discount { }
+
sub make_price {
my ($self, $price_obj) = @_;