mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 22:00:31 +00:00
fix(Journals): sync posting datetime with jorunal entries.
This commit is contained in:
@@ -13,7 +13,8 @@ interface IJournalTransactionsFilter {
|
||||
contactType?: string,
|
||||
referenceType?: string[],
|
||||
referenceId?: number[],
|
||||
index: number|number[]
|
||||
index: number|number[],
|
||||
indexGroup: number|number[],
|
||||
};
|
||||
|
||||
export default class AccountTransactionsRepository extends TenantRepository {
|
||||
@@ -58,6 +59,13 @@ export default class AccountTransactionsRepository extends TenantRepository {
|
||||
query.where('index', filter.index);
|
||||
}
|
||||
}
|
||||
if (filter.indexGroup) {
|
||||
if (Array.isArray(filter.indexGroup)) {
|
||||
query.whereIn('index_group', filter.indexGroup);
|
||||
} else {
|
||||
query.where('index_group', filter.indexGroup);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user