Bug #199 - Kundenrabatt in Einkaufsrechnungspositionen
[kivitendo-erp.git] / SL / PriceSource / Customer.pm
index 34f60a7..fe67d91 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,