feat: add edit cashier component (#802)

Fixes: #762
This commit is contained in:
Benura Abeywardena
2020-07-12 12:32:55 +05:30
committed by GitHub
parent 1b0aa6c28e
commit a977cb6e0c
9 changed files with 265 additions and 4 deletions
@@ -311,6 +311,25 @@ export class OrganizationService {
return this.http.post(`/tellers/${tellerId}/cashiers/${cashierId}/allocate`, cashData, {params: httpParams});
}
/** Get Cashier Template.
* @param tellerId Teller ID.
* @returns {Observable<any>} Cashier template.
*/
getCashierTemplate(tellerId: string): Observable<any> {
return this.http.get(`/tellers/${tellerId}/cashiers/template`);
}
/**
* Update Cashier.
* @param tellerId Teller Id.
* @param cashierId Cashier Id.
* @param cashierData Cashier data to be updated.
* @returns {Observable<any>}
*/
updateCashier(tellerId: string, cashierId: string, cashierData: any): Observable<any> {
return this.http.put(`/tellers/${tellerId}/cashiers/${cashierId}`, cashierData);
}
/**
* @param {string} tellerId Teller ID of teller to be deleted.
* @returns {Observable<any>}