From 7d5e8b70dc7ae6a3feddf40aa6f2cfe24ce15384 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Fri, 29 Jul 2016 15:14:51 +0200 Subject: [PATCH] Bug #199 - Kundenrabatt in Einkaufsrechnungspositionen Behebt Fehler #199 (Redmine) --- SL/PriceSource/Customer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.20.1