feat: add allocate cash component (#878)

Fixes: #758
This commit is contained in:
Benura Abeywardena
2020-07-12 12:11:43 +05:30
committed by GitHub
parent 5ef7465ce5
commit 1b0aa6c28e
7 changed files with 207 additions and 2 deletions
@@ -295,6 +295,7 @@ export class OrganizationService {
/**
* Settle Cash.
* Allocate Cash.
* @param {string} tellerId Teller Id.
* @param {string} cashierId Cashier Id.
* @param {string} cashData Cash Data.
@@ -305,6 +306,11 @@ export class OrganizationService {
return this.http.post(`/tellers/${tellerId}/cashiers/${cashierId}/settle`, cashData, {params: httpParams});
}
allocateCash(tellerId: string, cashierId: string, cashData: any): Observable<any> {
const httpParams = new HttpParams().set('command', 'allocate');
return this.http.post(`/tellers/${tellerId}/cashiers/${cashierId}/allocate`, cashData, {params: httpParams});
}
/**
* @param {string} tellerId Teller ID of teller to be deleted.
* @returns {Observable<any>}