Added order processing (still need to work on validation and retrieving docnumber for db)