|
@@ -118,7 +118,7 @@ export class ResultComponent implements OnInit {
|
|
|
this.general = this.formDataService.getGeneralInfo();
|
|
this.general = this.formDataService.getGeneralInfo();
|
|
|
this.instrument = this.formDataService.getWork();
|
|
this.instrument = this.formDataService.getWork();
|
|
|
this.complement = this.formDataService.getComplementInfo();
|
|
this.complement = this.formDataService.getComplementInfo();
|
|
|
-
|
|
|
|
|
|
|
+ console.log(this.instrument);
|
|
|
this.catalogService.getFinancialEntities().subscribe(res => {
|
|
this.catalogService.getFinancialEntities().subscribe(res => {
|
|
|
this.financials = res.find(
|
|
this.financials = res.find(
|
|
|
e => e.id_entidad_financiera == this.general.casa
|
|
e => e.id_entidad_financiera == this.general.casa
|
|
@@ -458,7 +458,7 @@ export class ResultComponent implements OnInit {
|
|
|
// Verifica permisos para mostrar boton de edicion y/o envio a revision,
|
|
// Verifica permisos para mostrar boton de edicion y/o envio a revision,
|
|
|
// segun los permisos del usuario y el estado de la propuesta
|
|
// segun los permisos del usuario y el estado de la propuesta
|
|
|
can_send_to_review(status: string) {
|
|
can_send_to_review(status: string) {
|
|
|
- if (status == "NUEVA" && (this.userRole.length == 0 || this.userRole)) {
|
|
|
|
|
|
|
+ if (status == "NUEVA" || status == "RECHA") {
|
|
|
// TO DO ver que el codigo de los tipos de usuario
|
|
// TO DO ver que el codigo de los tipos de usuario
|
|
|
return true;
|
|
return true;
|
|
|
} else {
|
|
} else {
|
|
@@ -467,7 +467,7 @@ export class ResultComponent implements OnInit {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
can_finish_proposal(status: string) {
|
|
can_finish_proposal(status: string) {
|
|
|
- if (status == "LIQUI" && (this.userRole.length == 0 || this.userRole)) {
|
|
|
|
|
|
|
+ if (status == "LIQUI") {
|
|
|
// TO DO ver que el codigo de los tipos de usuario
|
|
// TO DO ver que el codigo de los tipos de usuario
|
|
|
return true;
|
|
return true;
|
|
|
} else {
|
|
} else {
|