Projekte: Leeren Reiter "Projekt-Details" entfernt.
[kivitendo-erp.git] / SL / PriceSource / Vendor.pm
index 0b09ad6..0f0a0cf 100644 (file)
@@ -28,7 +28,9 @@ sub available_discounts {
   );
 }
 
-sub price_from_source {
+sub price_from_source { }
+
+sub discount_from_source {
   my ($self, $source, $spec) = @_;
 
   my $vendor = SL::DB::Vendor->load_cached($spec);
@@ -56,7 +58,7 @@ sub price_from_source {
       spec         => $vendor->id,
       description  => t8('Vendor Discount'),
       price_source => $self,
-      invalid      => t8('This discount is only valid for vendor #1', $vendor->full_description),
+      invalid      => t8('This discount is only valid for vendor #1', $vendor->displayable_name),
     )
   }