feat: edit and delete financial activity mapping

Add edit financial activity component and delete dialog component.
This commit is contained in:
abhay_1806
2018-07-28 20:18:01 +05:30
committed by Abhay Chawla
parent 8ebfd61aa3
commit ff8e878e9a
15 changed files with 279 additions and 38 deletions
+11 -2
View File
@@ -83,8 +83,17 @@ export class AccountingService {
return this.http.post('/financialactivityaccounts', financialActivityAccount);
}
getFinancialActivityAccount(financialActivityAccountId: number) {
return this.http.get(`/financialactivityaccounts/${financialActivityAccountId}`);
getFinancialActivityAccount(financialActivityAccountId: number, template: boolean) {
const httpParams = new HttpParams().set('template', template.toString());
return this.http.get(`/financialactivityaccounts/${financialActivityAccountId}`, { params: httpParams });
}
updateFinancialActivityAccount(financialActivityAccountId: number, financialActivityAccount: any) {
return this.http.put(`/financialactivityaccounts/${financialActivityAccountId}`, financialActivityAccount);
}
deleteFinancialActivityAccount(financialActivityAccountId: number) {
return this.http.delete(`/financialactivityaccounts/${financialActivityAccountId}`);
}
}