Added TODO to add exception logic for getAppSession()
Added invoice number to Purchase model