added tempmod to invdetails