The measure of damages for a seller

https://b-ok.cc/book/1225779/037f5d

What is the measure of damages for a seller who delivers goods to a buyer but then the buyer does not pay for them?
What is the measure of damages for a buyer when the seller fails to deliver goods as contracted?