Revision 8f8375c5
Von Bernd Bleßmann vor 8 Monaten hinzugefügt
SL/PriceSource/Vendor.pm | ||
---|---|---|
18 | 18 |
|
19 | 19 |
return if $self->record->is_sales; |
20 | 20 |
return unless $self->record->vendor; |
21 |
return unless $self->record->vendor->discount != 0;
|
|
21 |
return unless ($self->record->vendor->discount//0) != 0;
|
|
22 | 22 |
|
23 | 23 |
SL::PriceSource::Discount->new( |
24 | 24 |
discount => $self->record->vendor->discount, |
... | ... | |
78 | 78 |
} |
79 | 79 |
|
80 | 80 |
1; |
81 |
|
Auch abrufbar als: Unified diff
S:PriceSource:Vendor: Warnung vermeiden