update detail view for purchase and purchase_revision