From dbcaeb6aece5d4c2490cb308bc793e2bdff17423 Mon Sep 17 00:00:00 2001 From: "Martin Helmling martin.helmling@octosoft.eu" Date: Thu, 2 Aug 2018 14:19:31 +0200 Subject: [PATCH] =?utf8?q?Korrektur=20PriceTaxCalculator:=20Falsches=20Obj?= =?utf8?q?ekt=20zum=20Pr=C3=BCfen=20genommen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit mit Sven durchdiskutiert (cherry picked from commit d4102550a27e2bee22d4faed2626fc1434d9e721) --- SL/DB/Helper/PriceTaxCalculator.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }; -- 2.20.1