Sec. 45.02.717. - Deduction of damages from the price.
The buyer on notifying the seller of the intention to do so may deduct all or any part of the damages resulting from a breach of the contract from any part of the price still due under the same contract.