To enter into a bargain; to agree upon the conditions of a sale or other transaction.
To discuss something so fully as to resolve a problem or conflict; to hammer out.