From f26083d9a08116e4d2a72f975f3bc2b81955dcea Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 24 Feb 2014 10:28:18 +0100 Subject: [PATCH] =?utf8?q?Revert=20"=C3=9Cberlagerte=20benutzerdefinierte?= =?utf8?q?=20Variablen=20werden=20in=20wiederkehrende=20Rechnungen=20nicht?= =?utf8?q?=20=C3=BCbernommen"?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This reverts commit 5bd7e74db1f425a8bbc43357e949efcc1d4eb135. --- SL/DB/Invoice.pm | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/SL/DB/Invoice.pm b/SL/DB/Invoice.pm index 78fa46f5b..c0a936c7b 100644 --- a/SL/DB/Invoice.pm +++ b/SL/DB/Invoice.pm @@ -7,7 +7,6 @@ use strict; use Carp; use List::Util qw(first); -use List::MoreUtils qw(pairwise); use SL::DB::MetaSetup::Invoice; use SL::DB::Manager::Invoice; @@ -16,7 +15,6 @@ use SL::DB::Helper::LinkedRecords; use SL::DB::Helper::PriceTaxCalculator; use SL::DB::Helper::PriceUpdater; use SL::DB::Helper::TransNumberGenerator; -use SL::DB::CustomVariable; __PACKAGE__->meta->add_relationship( invoiceitems => { @@ -162,14 +160,6 @@ sub new_from { fxsellprice => $source_item->sellprice,); } @{ $source->items_sorted }; - my $i = 0; - foreach my $item (@items) { - my $source_cvars = $source->items_sorted->[$i]->cvars_by_config; - my $target_cvars = $item->cvars_by_config; - pairwise { $a->value($b->value) } @{ $target_cvars }, @{ $source_cvars }; - $i++; - } - $invoice->invoiceitems(\@items); return $invoice; -- 2.20.1