How do I change PO State to Closed and partly consumed

I would like to close Purchase Orders even they have not been invoiced completely. Could you please advise how to do it as the status is fixed and can be changed only by the system (I guess there is a workflow behind it). 

I can only change Opportunity State to Paid but it does not have an influence on the Purchase Order State.