ReportFinancial<C extends ClosingRangeAbstract> constructor

ReportFinancial<C extends ClosingRangeAbstract>({
  1. required List<TicketWeebi> tickets,
  2. required List<C> closingsObjects,
  3. required DateTime startDate,
  4. required DateTime endDate,
  5. required int objectId,
})

Implementation

ReportFinancial({
  required List<TicketWeebi> tickets,
  required List<C> closingsObjects,
  required DateTime startDate,
  required DateTime endDate,
  required this.objectId,
})  : emptyFlows = List<FinFlow>.generate(
        TicketType.financialTypes.length,
        (index) => FinFlow(
          TicketType.financialTypes[index].toString(),
          sumTickets: 0,
          sumClosings: 0,
        ),
      ),
      super(
        tickets,
        closingsObjects,
        startDate,
        endDate,
      );