]> wagnertech.de Git - mfinanz.git/blobdiff - SL/PriceSource/Customer.pm
Preisquellen: Darstellung Kundenpreise gefixt
[mfinanz.git] / SL / PriceSource / Customer.pm
index 52d35ee926c49064aa5f4a02964d6e66b05aece5..34f60a743c1ef094b9f1e39c72e507ba762ad1ee 100644 (file)
@@ -29,7 +29,9 @@ sub available_discounts {
   );
 }
 
-sub price_from_source {
+sub price_from_source { }
+
+sub discount_from_source {
   my ($self, $source, $spec) = @_;
 
   my $customer = SL::DB::Customer->load_cached($spec);
@@ -57,7 +59,7 @@ sub price_from_source {
       spec         => $customer->id,
       description  => t8('Customer Discount'),
       price_source => $self,
-      invalid      => t8('This discount is only valid for customer #1', $customer->full_description),
+      invalid      => t8('This discount is only valid for customer #1', $customer->displayable_name),
     )
   }