How can I finish material request

I’m creating a manufacture custom process to finish a material request type manufacture by setting some attribute of material request item: ordered_qty and received_qty eqal qty of the request. But it not work correctly? Help me please. Many thanks