feedback updates
This commit is contained in:
parent
a62273476d
commit
420900fec1
@ -57,12 +57,12 @@ export class EditCarnetComponent {
|
||||
|
||||
// set application type based on the route url
|
||||
const urlSegments = this.route.snapshot.url.map(segment => segment.path);
|
||||
if (urlSegments.includes('duplicate-carnet')) {
|
||||
if (urlSegments.includes('duplicate-carnet') || urlSegments.includes('process-duplicate-carnet')) {
|
||||
this.applicationType = 'duplicate';
|
||||
} else if (urlSegments.includes('extend-carnet')) {
|
||||
} else if (urlSegments.includes('extend-carnet') || urlSegments.includes('process-extend-carnet')) {
|
||||
this.applicationType = 'extend';
|
||||
}
|
||||
else if (urlSegments.includes('additional-sets')) {
|
||||
else if (urlSegments.includes('additional-sets') || urlSegments.includes('process-additional-sets')) {
|
||||
this.applicationType = 'additional';
|
||||
} else {
|
||||
this.applicationType = 'edit';
|
||||
|
||||
@ -79,7 +79,9 @@ export class CarnetService {
|
||||
P_SPID: this.userService.getUserSpid(),
|
||||
P_HEADERID: headerid
|
||||
}
|
||||
return this.http.post(`${this.apiUrl}/${this.apiDb}/PrintGL`, data);
|
||||
return this.http.post(`${this.apiUrl}/${this.apiDb}/PrintGL`, data, {
|
||||
responseType: 'blob', // Important: Set responseType to 'blob'
|
||||
});
|
||||
}
|
||||
|
||||
duplicateCarnet(carnetNumber: string): Observable<any> {
|
||||
@ -87,7 +89,9 @@ export class CarnetService {
|
||||
P_USERID: this.userService.getUser(),
|
||||
P_CARNETNO: carnetNumber
|
||||
}
|
||||
return this.http.patch(`${this.apiUrl}/${this.apiDb}/DuplicateCarnet`, data);
|
||||
return this.http.patch(`${this.apiUrl}/${this.apiDb}/DuplicateCarnet`, data, {
|
||||
responseType: 'blob', // Important: Set responseType to 'blob'
|
||||
});
|
||||
}
|
||||
|
||||
extendCarnet(carnetNumber: string): Observable<any> {
|
||||
@ -114,4 +118,20 @@ export class CarnetService {
|
||||
}
|
||||
return this.http.patch(`${this.apiUrl}/${this.apiDb}/CopyCarnet`, data);
|
||||
}
|
||||
|
||||
resetCarnet(headerid: number): Observable<any> {
|
||||
const data = {
|
||||
P_USERID: this.userService.getUser(),
|
||||
P_HEADERID: headerid
|
||||
}
|
||||
return this.http.patch(`${this.apiUrl}/${this.apiDb}/ResetCarnet`, data);
|
||||
}
|
||||
|
||||
voidCarnet(headerid: number): Observable<any> {
|
||||
const data = {
|
||||
P_USERID: this.userService.getUser(),
|
||||
P_HEADERID: headerid
|
||||
}
|
||||
return this.http.patch(`${this.apiUrl}/${this.apiDb}/VoidCarnet`, data);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user