supplierSpendCoveredThisMonth method
Implementation
num supplierSpendCoveredThisMonth(
int herderId, DateTime dateMonthStart, DateTime dateMonthEnd) =>
where((t) => t.status)
.where((t) => t.contactId == herderId)
.where((t) => t.ticketType == TicketType.spendCovered)
.where((t) => t.date.isAfter(dateMonthStart))
.where((t) => t.date.isBefore(dateMonthEnd))
.fold(0.0, (prev, e) => prev + e.received);