Now properly storing invoice in local storage