added document check and delivery order done checks