Projekt

Allgemein

Profil

Fehler #82 » 0002-PTC-item-discount-auf-0-wenn-nicht-definiert-um-Warn.patch

Bernd Bleßmann, 14.11.2018 17:31

Unterschiede anzeigen:

SL/DB/Helper/PriceTaxCalculator.pm
100 100
  my $sellprice = $item->sellprice; # don't include rounded discount into sellprice
101 101
  # any time the sellprice is multiplied with qty discount has to be considered as part of the multiplication
102 102

  
103
  $item->discount(0) if !$item->discount;
103 104
  $item->price_factor(      ! $item->price_factor_obj   ? 1 : ($item->price_factor_obj->factor   || 1));
104 105
  $item->marge_price_factor(! $part->price_factor ? 1 : ($part->price_factor->factor || 1));
105 106
  my $linetotal = _round($sellprice * (1-$item->discount) * $item->qty / $item->price_factor, 2) * $data->{exchangerate};
106
- 
(2-2/3)