Missed an END IF; from a check in add_sale.sql