Revision dc83feb1
Von Bernd Bleßmann vor mehr als 9 Jahren hinzugefügt
SL/PriceSource/Business.pm | ||
---|---|---|
50 | 50 |
) |
51 | 51 |
} |
52 | 52 |
|
53 |
if ($business->id != $self->customer_vendor->business->id) { |
|
53 |
if (!$self->customer_vendor->business || |
|
54 |
$business->id != $self->customer_vendor->business->id) { |
|
54 | 55 |
return SL::PriceSource::Discount->new( |
55 | 56 |
discount => $business->discount, |
56 | 57 |
spec => $business->id, |
57 | 58 |
description => t8('Business Discount'), |
58 | 59 |
price_source => $self, |
59 |
invalid => t8('This discount is only valid for business #1', $business->full_description),
|
|
60 |
invalid => t8('This discount is only valid for business #1', $business->displayable_name),
|
|
60 | 61 |
) |
61 | 62 |
} |
62 | 63 |
|
Auch abrufbar als: Unified diff
Wechsel eines Kunden-/Lieferanten mit Typ zu einem ohne …
… beim Bestimmen des Rabatts abfangen.