SL::DBUpgrade2::Base: Spalte-zu-HTML-Funktion ausgelagert
[kivitendo-erp.git] / SL / PriceSource / Pricegroup.pm
index 8a322c5..6408300 100644 (file)
@@ -23,7 +23,7 @@ sub available_prices {
   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;
@@ -44,6 +44,8 @@ sub price_from_source {
   return $self->make_price($price);
 }
 
+sub discount_from_source { }
+
 sub best_price {
   my ($self, %params) = @_;