contactAllWages method
Implementation
num contactAllWages(int contactId, {DateTime? end}) => where((t) => t.status)
.where((t) => t.contactId == contactId)
.where((t) => t.date.isBefore(end ?? DateTime.now()))
.where((t) => t.ticketType == TicketType.wage)
.fold(0, (prev, e) => prev + e.received);