Fehler #82 » 0002-PTC-item-discount-auf-0-wenn-nicht-definiert-um-Warn.patch
SL/DB/Helper/PriceTaxCalculator.pm | ||
---|---|---|
my $sellprice = $item->sellprice; # don't include rounded discount into sellprice
|
||
# any time the sellprice is multiplied with qty discount has to be considered as part of the multiplication
|
||
$item->discount(0) if !$item->discount;
|
||
$item->price_factor( ! $item->price_factor_obj ? 1 : ($item->price_factor_obj->factor || 1));
|
||
$item->marge_price_factor(! $part->price_factor ? 1 : ($part->price_factor->factor || 1));
|
||
my $linetotal = _round($sellprice * (1-$item->discount) * $item->qty / $item->price_factor, 2) * $data->{exchangerate};
|