Whenever any retailer enters into an agreement, evidenced by a written or oral contract, with a supplier wherein the retailer agrees to maintain an inventory of parts and to provide service and the contract is terminated, then the supplier shall repurchase the inventory as provided in this chapter. The retailer may keep the inventory if he desires. If the retailer has any outstanding debts to the supplier, then the repurchase amount may be setoff or credited to the retailer’s account.