Added the delete logic.
Take into account the sign of the transaction's quantity to remove the
minus and toggle the button accordingly