Revision faf42bec
Von Bernd Bleßmann vor etwa 6 Jahren hinzugefügt
SL/DB/Helper/PriceTaxCalculator.pm | ||
---|---|---|
96 | 96 |
|
97 | 97 |
my $num_dec = max 2, _num_decimal_places($item->sellprice); |
98 | 98 |
|
99 |
$item->discount(0) if !$item->discount; |
|
99 | 100 |
|
100 | 101 |
# don't include rounded discount into sellprice for calculation |
101 | 102 |
# any time the sellprice is multiplied with qty discount has to be considered as part of the multiplication |
Auch abrufbar als: Unified diff
PTC: item->discount auf 0, wenn nicht definiert, um Warnungen zu vermeiden