]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/PriceSource/Customer.pm
Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.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,