Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision dc83feb1

Von Bernd Bleßmann vor etwa 9 Jahren hinzugefügt

  • ID dc83feb1ebefe50e443a351a7d158517bc23d526
  • Vorgänger 79b7fc43
  • Nachfolger 97908d77

Wechsel eines Kunden-/Lieferanten mit Typ zu einem ohne …

… beim Bestimmen des Rabatts abfangen.

Unterschiede anzeigen:

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