make invoice class ints compatible