added flag for type of transcation (payment/expense)