feat: added data table for transactions of saving account (#1844)
* feat: added data table for transactions of saving account Now we can add the data table for transactions entity type of saving account and also we can edit,delete and create the datatable. Fixes: #1726 * made changes in the comments
This commit is contained in:
@@ -107,6 +107,24 @@ export class SavingsService {
|
||||
return this.http.get(`/datatables/${datatableName}/${accountId}`, { params: httpParams });
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {Observable<any>}
|
||||
*/
|
||||
getSavingsTransactionDatatables(): Observable<any> {
|
||||
const httpParams = new HttpParams().set('apptable', 'm_savings_account_transaction');
|
||||
return this.http.get(`/datatables`, { params: httpParams });
|
||||
}
|
||||
|
||||
/**
|
||||
* @param accountId account Id of savings account to get datatable for.
|
||||
* @param datatableName Data table name.
|
||||
* @returns {Observable<any>}
|
||||
*/
|
||||
getSavingsTransactionDatatable(transactionId: string, datatableName: string): Observable<any> {
|
||||
const httpParams = new HttpParams().set('genericResultSet', 'true');
|
||||
return this.http.get(`/datatables/${datatableName}/${transactionId}`, { params: httpParams });
|
||||
}
|
||||
|
||||
/**
|
||||
* @param accountId account Id of savings account to get add datatable entry for.
|
||||
* @param datatableName Data Table name.
|
||||
|
||||
Reference in New Issue
Block a user