Searching for a negative idiom. Where a person sacrifices long term for small relief [duplicate]

You could consider eating the seed corn:-

To consume what is meant for investment (Wiktionary)