overhead account stuff

This commit is contained in:
2021-11-08 21:04:21 +01:00
parent ba63874a18
commit 28e505f570
17 changed files with 204 additions and 41 deletions

View File

@ -7,7 +7,7 @@ import { serviceBaseUrl } from './config';
import { Account, Fee, OverheadAdvance } from './data-objects';
import { Saldo, Tenant_with_Saldo } from './ext-data-objects';
import { Saldo, Tenant_with_Saldo, UniqueNumber } from './ext-data-objects';
@Injectable({ providedIn: 'root' })
@ -38,4 +38,9 @@ export class ExtApiService {
this.messageService.add("ExtApiService: get tenants with saldo");
return this.http.get<Tenant_with_Saldo[]>(`${serviceBaseUrl}/v1/tenants/saldo`).toPromise()
}
async getUniqueNumber(): Promise<UniqueNumber> {
this.messageService.add("ExtApiService: get unique number");
return this.http.get<UniqueNumber>(`${serviceBaseUrl}/v1/uniquenumber`).toPromise()
}
}