feat(accounting): add accounting rules component

Add accounting rules component to preconfigure accounting transactions.
This commit is contained in:
Abhay Chawla
2018-08-06 00:57:30 +05:30
parent 6c80e86c0c
commit 7b8b91f10a
9 changed files with 151 additions and 8 deletions
+6 -2
View File
@@ -13,8 +13,12 @@ export class AccountingService {
return this.http.get('/offices?orderBy=id');
}
getAccountingRules(): Observable<any> {
return this.http.get('/accountingrules?associations=all');
getAccountingRules(useHttpParams?: boolean): Observable<any> {
let httpParams = new HttpParams();
if (useHttpParams) {
httpParams = httpParams.set('associations', 'all');
}
return this.http.get('/accountingrules', { params: httpParams });
}
getCurrencies(): Observable<any> {