]> wagnertech.de Git - mfinanz.git/blobdiff - SL/PriceSource/Customer.pm
Zeiterfassung: Auch beim Laden entsprechende Eingabe-Felder sperren:
[mfinanz.git] / SL / PriceSource / Customer.pm
index 34f60a743c1ef094b9f1e39c72e507ba762ad1ee..fe67d9128835ec63ac23add5e64f81c0a4d76527 100644 (file)
@@ -43,7 +43,7 @@ sub discount_from_source {
     )
   }
 
-  if (!$self->record->customer) {
+  if (!$self->record->can('customer') || !$self->record->customer) {
     return SL::PriceSource::Discount->new(
       discount     => $customer->discount,
       spec         => $customer->id,