From: G. Richardson Date: Fri, 29 Jul 2016 13:14:51 +0000 (+0200) Subject: Bug #199 - Kundenrabatt in Einkaufsrechnungspositionen X-Git-Tag: release-3.5.4~2167 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=7d5e8b70dc7ae6a3feddf40aa6f2cfe24ce15384;p=kivitendo-erp.git Bug #199 - Kundenrabatt in Einkaufsrechnungspositionen Behebt Fehler #199 (Redmine) --- 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,