rangeSellCash method
Implementation
@action
num rangeSellCash(DateTime firstDate, DateTime lastDate) => tickets
.where((t) => t.status == true)
.where((t) => t.date.isAfter(firstDate) && t.date.isBefore(lastDate))
.where((t) => t.ticketType == TicketType.sell)
.where((t) => t.paymentType == PaymentType.cash)
.fold(0, (prev, element) => prev + element.totalPriceTaxAndPromoIncluded);