fix updating for purchase order