|
@@ -312,16 +312,15 @@ export class PaymentInfoComponent implements OnInit {
|
|
|
//fecha_pago: this.investmentProposalForm.value.fecha_pago.singleDate.formatted,
|
|
//fecha_pago: this.investmentProposalForm.value.fecha_pago.singleDate.formatted,
|
|
|
fecha_vencimiento: this.investmentProposalForm.value
|
|
fecha_vencimiento: this.investmentProposalForm.value
|
|
|
.fecha_vencimiento.singleDate.formatted,
|
|
.fecha_vencimiento.singleDate.formatted,
|
|
|
|
|
+ emitir_nombre: this.investmentProposalForm.value.emitir_nombre,
|
|
|
id_inversion: +this.investmentProposalID
|
|
id_inversion: +this.investmentProposalID
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- if (+this.investmentProposalForm.value.tipo_pago == 2) {
|
|
|
|
|
- this.paymentObject[
|
|
|
|
|
- "emitir_nombre"
|
|
|
|
|
- ] = this.investmentProposalForm.value.emitir_nombre;
|
|
|
|
|
- } else if (+this.investmentProposalForm.value.tipo_pago == 3) {
|
|
|
|
|
|
|
+ if (+this.investmentProposalForm.value.tipo_pago == 3) {
|
|
|
this.paymentObject["id_cuenta_bancaria_destino"] = +this
|
|
this.paymentObject["id_cuenta_bancaria_destino"] = +this
|
|
|
.investmentProposalForm.value.cuenta_bancaria_destino;
|
|
.investmentProposalForm.value.cuenta_bancaria_destino;
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.paymentObject["id_cuenta_bancaria_destino"] = null;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}).then(result1 => {
|
|
}).then(result1 => {
|