update logic for options invoice