X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FController%2FRequirementSpecOrder.pm;h=a949901f1610768e3e5598f720b116bbff6f0efb;hb=b058e195e82aa1f6b7614b8f83be6122ec3d3dca;hp=f695a510a648f59318d139443ce31fae5b5578b5;hpb=d41efcfe571f88b63aa53492e3e3460d948232d6;p=kivitendo-erp.git diff --git a/SL/Controller/RequirementSpecOrder.pm b/SL/Controller/RequirementSpecOrder.pm index f695a510a..a949901f1 100644 --- a/SL/Controller/RequirementSpecOrder.pm +++ b/SL/Controller/RequirementSpecOrder.pm @@ -318,8 +318,8 @@ sub create_order_item { longdescription => $longdescription, qty => $is_time_based ? $section->time_estimation * 1 : 1, unit => $is_time_based ? $self->h_unit_name : $part->unit, - sellprice => $::form->round_amount($self->requirement_spec->hourly_rate * ($is_time_based ? 1 : $section->time_estimation), 2), - lastcost => $part->lastcost, + sellprice => $::form->round_amount($self->requirement_spec->hourly_rate * ($is_time_based ? 1 : $section->time_estimation * $section->sellprice_factor), 2), + lastcost => $part->lastcost * $section->sellprice_factor, discount => 0, project_id => $self->requirement_spec->project_id, );