adds invoice payment status function