Added Org submission API and transaction fixes

This commit is contained in:
piratefinn 2017-09-08 11:54:34 +01:00
parent 65cbea5d5d
commit 1982ce6790
3 changed files with 31 additions and 5 deletions

View file

@ -130,6 +130,32 @@ export class ApiService {
).map( response => response.json() )
}
// handles Org data added
public orgPayroll(data) {
data.session_key = this.sessionKey;
return this.http.post(
this.apiUrl + '/org/payroll',
data
).map( response => response.json() )
}
public orgSupplier(data) {
data.session_key = this.sessionKey;
return this.http.post(
this.apiUrl + '/org/supplier',
data
).map( response => response.json() )
}
public orgEmployee(data) {
data.session_key = this.sessionKey;
return this.http.post(
this.apiUrl + '/org/employee',
data
).map( response => response.json() )
}
// Handles user data interaction
// Checks for login status