feat(accounting-rules): edit and delete rule

Add edit accounting rule component and ability to delete accounting
rule.
This commit is contained in:
Abhay Chawla
2018-08-06 00:57:30 +05:30
parent 6b008b968d
commit ca80e5eff4
8 changed files with 312 additions and 5 deletions
+8
View File
@@ -157,4 +157,12 @@ export class AccountingService {
return this.http.get(`/accountingrules/${accountingRuleId}`);
}
deleteAccountingRule(accountingRuleId: number) {
return this.http.delete(`/accountingrules/${accountingRuleId}`);
}
updateAccountingRule(accoutingRuleId: number, accountingRule: any) {
return this.http.put(`/accountingrules/${accoutingRuleId}`, accountingRule);
}
}