X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/0e470b13db4ca16d13d406ad56f9b1714d8c831b..35cd4452:/SL/IC.pm diff --git a/SL/IC.pm b/SL/IC.pm index 36520b97d..45604b0c9 100644 --- a/SL/IC.pm +++ b/SL/IC.pm @@ -72,6 +72,8 @@ sub get_part { # copy to $form variables map { $form->{$_} = $ref->{$_} } (keys %{$ref}); + $form->{mtime} = $form->{itime} if !$form->{mtime}; + $form->{lastmtime} = $form->{mtime}; $form->{onhand} *= 1; # part or service item @@ -671,7 +673,7 @@ sub assembly_item { my $query = qq|SELECT p.id, p.partnumber, p.description, p.sellprice, p.weight, p.onhand, p.unit, pg.partsgroup, p.lastcost, - p.price_factor_id, pfac.factor AS price_factor + p.price_factor_id, pfac.factor AS price_factor, p.notes as longdescription FROM parts p LEFT JOIN partsgroup pg ON (p.partsgroup_id = pg.id) LEFT JOIN price_factors pfac ON pfac.id = p.price_factor_id