X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FHelper%2FFlattenToForm.pm;h=5166ff9b20341278002077f9bb281a5d4b45b140;hb=972b87711cb3c7543d585ceedca0eda2058aa6d7;hp=3627cfa49c873d0d11021d71871dd8efd42fc4c8;hpb=6f30741b2ec6d7d68aa37d7dc6918fd058c22c7b;p=kivitendo-erp.git diff --git a/SL/DB/Helper/FlattenToForm.pm b/SL/DB/Helper/FlattenToForm.pm index 3627cfa49..5166ff9b2 100644 --- a/SL/DB/Helper/FlattenToForm.pm +++ b/SL/DB/Helper/FlattenToForm.pm @@ -82,13 +82,15 @@ sub flatten_to_form { $idx++; - $form->{"partsgroup_${idx}"} = $item->part->partsgroup->partsgroup if _has($item->part, 'partsgroup_id'); + $form->{"std_warehouse_${idx}"} = $item->part->warehouse->description if _has($item->part, 'warehouse_id'); + $form->{"std_bin_${idx}"} = $item->part->bin->description if _has($item->part, 'bin_id'); + $form->{"partsgroup_${idx}"} = $item->part->partsgroup->partsgroup if _has($item->part, 'partsgroup_id'); _copy($item, $form, "${items_name}_", "_${idx}", 0, qw(id)) if $items_name; # TODO: is part_type correct here? Do we need to set part_type as default? _copy($item->part, $form, '', "_${idx}", 0, qw(id partnumber weight part_type)); _copy($item->part, $form, '', "_${idx}", 0, qw(listprice)); _copy($item, $form, '', "_${idx}", 0, qw(description project_id ship serialnumber pricegroup_id ordnumber donumber cusordnumber unit - subtotal longdescription price_factor_id marge_price_factor approved_sellprice reqdate transdate + subtotal longdescription price_factor_id marge_price_factor reqdate transdate active_price_source active_discount_source)); _copy($item, $form, '', "_${idx}", $format_noround, qw(qty sellprice)); _copy($item, $form, '', "_${idx}", $format_amounts, qw(marge_total marge_percent lastcost));