feat: Group by filter in reports (#3973)

This commit is contained in:
Aswin Dev P.S
2022-02-15 03:40:49 -08:00
committed by GitHub
parent a703ef2de6
commit e6f8895c1b
14 changed files with 343 additions and 35 deletions

View File

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