travel plan and TC updates
This commit is contained in:
parent
a541e3788b
commit
47ff5377c1
@ -1,5 +1,5 @@
|
|||||||
.travel-plan-container {
|
.travel-plan-container {
|
||||||
padding: 8px;
|
padding: 0.75rem 0 0 0;
|
||||||
// max-width: 1200px;
|
// max-width: 1200px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import { HttpClient } from '@angular/common/http';
|
import { HttpClient } from '@angular/common/http';
|
||||||
import { inject, Injectable } from '@angular/core';
|
import { inject, Injectable } from '@angular/core';
|
||||||
import { Observable, filter, map } from 'rxjs';
|
import { Observable, map } from 'rxjs';
|
||||||
import { environment } from '../../../../environments/environment';
|
import { environment } from '../../../../environments/environment';
|
||||||
import { UserService } from '../common/user.service';
|
import { UserService } from '../common/user.service';
|
||||||
import { Fees } from '../../models/carnet/fee';
|
import { Fees } from '../../models/carnet/fee';
|
||||||
@ -17,8 +17,7 @@ export class CarnetService {
|
|||||||
|
|
||||||
getEstimatedFees(headerid: number): Observable<Fees> {
|
getEstimatedFees(headerid: number): Observable<Fees> {
|
||||||
return this.http.get<any>(`${this.apiUrl}/${this.apiDb}/EstimatedFees/${this.userService.getUserSpid()}/${this.userService.getUser()}/${headerid}`).pipe(
|
return this.http.get<any>(`${this.apiUrl}/${this.apiDb}/EstimatedFees/${this.userService.getUserSpid()}/${this.userService.getUser()}/${headerid}`).pipe(
|
||||||
filter(response => response.length > 0),
|
map(response => this.mapToFeesData(response)));
|
||||||
map(response => this.mapToFeesData(response?.[0])));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private mapToFeesData(estimatedFeesDetails: any): Fees {
|
private mapToFeesData(estimatedFeesDetails: any): Fees {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user