projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0683770
)
PriceSource: Objekt der richtigen Klasse für Lieferanten-Rabtt erzeugen.
author
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Sun, 26 Apr 2015 14:37:11 +0000
(16:37 +0200)
committer
Bernd Bleßmann
<bernd@kivitendo-premium.de>
Sun, 26 Apr 2015 14:37:11 +0000
(16:37 +0200)
SL/PriceSource/Vendor.pm
patch
|
blob
|
history
diff --git
a/SL/PriceSource/Vendor.pm
b/SL/PriceSource/Vendor.pm
index
94d9bd0
..
0b09ad6
100644
(file)
--- 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'),