From: Bernd Bleßmann Date: Sun, 26 Apr 2015 14:37:11 +0000 (+0200) Subject: PriceSource: Objekt der richtigen Klasse für Lieferanten-Rabtt erzeugen. X-Git-Tag: release-3.3.0beta~129 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=79b7fc43c32d9e28b4c222ec86fce96839199e12;p=kivitendo-erp.git PriceSource: Objekt der richtigen Klasse für Lieferanten-Rabtt erzeugen. --- diff --git a/SL/PriceSource/Vendor.pm b/SL/PriceSource/Vendor.pm index 94d9bd01f..0b09ad698 100644 --- a/SL/PriceSource/Vendor.pm +++ b/SL/PriceSource/Vendor.pm @@ -4,7 +4,7 @@ use strict; use parent qw(SL::PriceSource::Base); use SL::DB::Vendor; -use SL::PriceSource::Price; +use SL::PriceSource::Discount; use SL::Locale::String; sub name { 'vendor_discount' } @@ -20,7 +20,7 @@ sub available_discounts { return unless $self->record->vendor; return unless $self->record->vendor->discount != 0; - SL::PriceSource::Vendor->new( + SL::PriceSource::Discount->new( discount => $self->record->vendor->discount, spec => $self->record->vendor->id, description => t8('Vendor Discount'),