From: Martin Helmling martin.helmling@octosoft.eu Date: Thu, 2 Aug 2018 12:19:31 +0000 (+0200) Subject: Korrektur PriceTaxCalculator: Falsches Objekt zum Prüfen genommen X-Git-Tag: release-3.5.4~188 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=dbcaeb6aece5d4c2490cb308bc793e2bdff17423;p=kivitendo-erp.git Korrektur PriceTaxCalculator: Falsches Objekt zum Prüfen genommen mit Sven durchdiskutiert (cherry picked from commit d4102550a27e2bee22d4faed2626fc1434d9e721) --- diff --git a/SL/DB/Helper/PriceTaxCalculator.pm b/SL/DB/Helper/PriceTaxCalculator.pm index d0412c2bb..e1db34039 100644 --- a/SL/DB/Helper/PriceTaxCalculator.pm +++ b/SL/DB/Helper/PriceTaxCalculator.pm @@ -83,7 +83,7 @@ sub _calculate_item { my ($self, $item, $idx, $data, %params) = @_; my $part = SL::DB::Part->load_cached($item->parts_id); - return unless $item->part; + return unless $part; my $part_unit = $data->{units_by_name}->{ $part->unit }; my $item_unit = $data->{units_by_name}->{ $item->unit };