rangeMarginRaw method

num rangeMarginRaw(
  1. DateTime firstDate,
  2. DateTime lastDate
)

see yobi for same function with several stores

Implementation

num rangeMarginRaw(DateTime firstDate, DateTime lastDate) =>
    sumTicketTypePerRange(
      TicketType.sell,
      start: firstDate,
      end: lastDate,
    ) +
    sumTicketTypePerRange(
      TicketType.spend,
      start: firstDate,
      end: lastDate,
    ) -
    sumTicketTypePerRange(
      TicketType.wage,
      start: firstDate,
      end: lastDate,
    );