fun stats(sellerId: String, period: String?, cashRegisterName: String?): SaleStatsInfo?
Returns sales stats filtered by seller, cash register name and period.
period - filters by date period
cashRegisterName - filters by cash register name
com.srv4pos.server.api.exceptions.TypeMismatchJsonException - if period java.lang.String isn't convertible to
java.util.Date.
Return
com.srv4pos.server.api.sale.SaleStatsInfo with stats.