Revision 9a9b75c5
Von Sven Schöling vor etwa 7 Jahren hinzugefügt
SL/DB/Helper/PriceTaxCalculator.pm | ||
---|---|---|
112 | 112 |
$item->marge_percent(0); |
113 | 113 |
|
114 | 114 |
} else { |
115 |
my $lastcost = ! ($item->lastcost * 1) ? ($part->lastcost || 0) : $item->lastcost;
|
|
115 |
my $lastcost = !(($item->lastcost // 0) * 1) ? ($part->lastcost || 0) : $item->lastcost;
|
|
116 | 116 |
$linetotal_cost = _round($lastcost * $item->qty / $item->marge_price_factor, 2); |
117 | 117 |
|
118 | 118 |
$item->marge_total( $linetotal - $linetotal_cost); |
Auch abrufbar als: Unified diff
Warnings: PTC - lastcost kann undefined sein