Dbh now works with the is_active variable in order, product and contract