[Fix] purchase order state incorrectly mark as done when generate backorder