X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/5f6e919f09cdbeeac184a138d62586d055e9ee0f..refs/heads/b-3.5.6.1:/SL/PriceSource/Customer.pm diff --git a/SL/PriceSource/Customer.pm b/SL/PriceSource/Customer.pm index 34f60a743..fe67d9128 100644 --- a/SL/PriceSource/Customer.pm +++ b/SL/PriceSource/Customer.pm @@ -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,