From 3d96d9f069b5512659ae077695ffdc4d11f20a32 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bernd=20Ble=C3=9Fmann?= Date: Fri, 2 Aug 2013 13:35:13 +0200 Subject: [PATCH] Kosmetik: Kopieroperationen zusammenfassen. --- SL/DB/Helper/FlattenToForm.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SL/DB/Helper/FlattenToForm.pm b/SL/DB/Helper/FlattenToForm.pm index 5a6751ba2..95152593b 100644 --- a/SL/DB/Helper/FlattenToForm.pm +++ b/SL/DB/Helper/FlattenToForm.pm @@ -59,10 +59,8 @@ sub flatten_to_form { $idx++; - $form->{"id_${idx}"} = $item->parts_id; - $form->{"partnumber_${idx}"} = $item->part->partnumber; - $form->{"weight_${idx}"} = $item->part->weight; $form->{"partsgroup_${idx}"} = $item->part->partsgroup->partsgroup if _has($item->part, 'partsgroup_id'); + _copy($item->part, $form, '', "_${idx}", 0, qw(id partnumber weight)); _copy($item->part, $form, '', "_${idx}", $format_amounts, qw(listprice)); _copy($item, $form, '', "_${idx}", 0, qw(description project_id ship serialnumber pricegroup_id ordnumber cusordnumber unit subtotal longdescription price_factor_id marge_price_factor approved_sellprice reqdate transdate)); -- 2.20.1