projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dbconnect_noauto entfernt
[kivitendo-erp.git]
/
SL
/
PriceSource
/
Vendor.pm
diff --git
a/SL/PriceSource/Vendor.pm
b/SL/PriceSource/Vendor.pm
index
0b09ad6
..
0f0a0cf
100644
(file)
--- a/
SL/PriceSource/Vendor.pm
+++ b/
SL/PriceSource/Vendor.pm
@@
-28,7
+28,9
@@
sub available_discounts {
);
}
);
}
-sub price_from_source {
+sub price_from_source { }
+
+sub discount_from_source {
my ($self, $source, $spec) = @_;
my $vendor = SL::DB::Vendor->load_cached($spec);
my ($self, $source, $spec) = @_;
my $vendor = SL::DB::Vendor->load_cached($spec);
@@
-56,7
+58,7
@@
sub price_from_source {
spec => $vendor->id,
description => t8('Vendor Discount'),
price_source => $self,
spec => $vendor->id,
description => t8('Vendor Discount'),
price_source => $self,
- invalid => t8('This discount is only valid for vendor #1', $vendor->
full_description
),
+ invalid => t8('This discount is only valid for vendor #1', $vendor->
displayable_name
),
)
}
)
}