Use Operation Service in Operation controller.

This commit is contained in:
Alexis Lahouze
2017-07-29 22:26:38 +02:00
parent 4c921bfaaa
commit 8348f5bb8f
3 changed files with 40 additions and 23 deletions

View File

@ -36,7 +36,9 @@ export class OperationService {
minDate: Date|string = null,
maxDate: Date|string = null
): Observable<Operation[]> {
var dateRange: any = {};
var dateRange: any = {
account_id: accountId
};
if(minDate) {
dateRange.begin = this.formatDate(minDate);