X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/0b84f51fd598e4b5a1cb139aa582297d089b1602..201c9038c6c64d91b9be59991b6b6449c33a0d4f:/SL/Controller/Order.pm?ds=sidebyside diff --git a/SL/Controller/Order.pm b/SL/Controller/Order.pm index 89c7ded25..631ab16dd 100644 --- a/SL/Controller/Order.pm +++ b/SL/Controller/Order.pm @@ -784,7 +784,7 @@ sub _make_item { $item->assign_attributes(%$attr); $item->longdescription($item->part->notes) if $is_new && !defined $attr->{longdescription}; # item fields that currently can't be set in in row but are needed: - $item->lastcost($item->part->lastcost); + $item->lastcost($item->part->lastcost) if $is_new; return $item; }