feat: Consider business hours while generating the reports (#4330)

* feat: Consider business hours while generating the reports
This commit is contained in:
Aswin Dev P.S
2022-04-08 12:48:18 +05:30
committed by GitHub
parent 57359be37e
commit d5536d65f7
19 changed files with 241 additions and 48 deletions

View File

@@ -42,7 +42,8 @@ export const actions = {
reportObj.to,
reportObj.type,
reportObj.id,
reportObj.groupBy
reportObj.groupBy,
reportObj.businessHours
).then(accountReport => {
let { data } = accountReport;
data = data.filter(
@@ -69,7 +70,8 @@ export const actions = {
reportObj.to,
reportObj.type,
reportObj.id,
reportObj.groupBy
reportObj.groupBy,
reportObj.businessHours
)
.then(accountSummary => {
commit(types.default.SET_ACCOUNT_SUMMARY, accountSummary.data);