| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668 |
- <div *ngIf="!summary">
- <h4 class="card-title">
- Préstamo empresarial
- </h4>
- <form
- class="form-auth-small ng-untouched ng-pristine ng-valid"
- [formGroup]="investmentProposalForm"
- >
- <div class="row">
- <!-- Monto préstamo -->
- <div class="col-lg-6 col-sm-12 pr-xl-3">
- <div class="form-group">
- <label for="monto_prestamo">Monto préstamo: </label>
- <div class="input-box-container">
- <p>
- <i class="fas fa-dollar-sign"></i>
- </p>
- <input
- type="text"
- formControlName="monto_prestamo"
- class="form-control"
- [ngClass]="{
- 'is-invalid': submitted && f.monto_prestamo.errors
- }"
- />
- <div
- *ngIf="submitted && f.monto_prestamo.errors"
- class="invalid-feedback"
- >
- <div *ngIf="f.monto_prestamo.errors.required">
- Campo requerido
- </div>
- <div *ngIf="f.monto_prestamo.errors.pattern">
- Debe ingresar una cifra válida
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- Tasa -->
- <div class="col-lg-6 col-sm-12 pr-xl-3">
- <div class="form-group">
- <label for="tasa_porcentaje">Tasa: </label>
- <div class="input-box-container">
- <p>
- <i class="fas fa-percent" aria-hidden="true"></i>
- </p>
- <input
- type="text"
- formControlName="tasa_porcentaje"
- class="form-control"
- [ngClass]="{
- 'is-invalid': submitted && f.tasa_porcentaje.errors
- }"
- />
- <div
- *ngIf="submitted && f.tasa_porcentaje.errors"
- class="invalid-feedback"
- >
- <div *ngIf="f.tasa_porcentaje.errors.required">
- Campo requerido
- </div>
- <div *ngIf="f.tasa_porcentaje.errors.pattern">
- Debe ingresar una cifra válida
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- IVA -->
- <div class="col-lg-6 col-sm-12 pr-xl-3">
- <div class="form-group">
- <label for="iva_porcentaje">IVA: </label>
- <div class="input-box-container">
- <p>
- <i class="fas fa-percent" aria-hidden="true"></i>
- </p>
- <input
- type="text"
- formControlName="iva_porcentaje"
- class="form-control"
- [ngClass]="{
- 'is-invalid': submitted && f.iva_porcentaje.errors
- }"
- />
- <div
- *ngIf="submitted && f.iva_porcentaje.errors"
- class="invalid-feedback"
- >
- <div *ngIf="f.iva_porcentaje.errors.required">
- Campo requerido
- </div>
- <div *ngIf="f.iva_porcentaje.errors.pattern">
- Debe ingresar una cifra válida
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- Comisián desembolso -->
- <div class="col-lg-6 col-sm-12 pr-xl-3">
- <div class="form-group">
- <label for="comision_desembolso_porcentaje"
- >Comisión desembolso:
- </label>
- <div class="input-box-container">
- <p>
- <i class="fas fa-percent" aria-hidden="true"></i>
- </p>
- <input
- type="text"
- formControlName="comision_desembolso_porcentaje"
- class="form-control"
- [ngClass]="{
- 'is-invalid':
- submitted && f.comision_desembolso_porcentaje.errors
- }"
- />
- <div
- *ngIf="submitted && f.comision_desembolso_porcentaje.errors"
- class="invalid-feedback"
- >
- <div *ngIf="f.comision_desembolso_porcentaje.errors.required">
- Campo requerido
- </div>
- <div *ngIf="f.comision_desembolso_porcentaje.errors.pattern">
- Debe ingresar una cifra válida
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- Fecha operación -->
- <div class="col-lg-6 col-sm-12 pr-xl-3">
- <div class="form-group">
- <label for="fecha_operacion">Fecha operación: </label>
- <div class="input-box-container">
- <p>
- <i class="far fa-calendar" aria-hidden="true"></i>
- </p>
- <input
- class="input-box form-control"
- placeholder="Seleccione una fecha"
- angular-mydatepicker
- formControlName="fecha_operacion"
- (click)="dp.toggleCalendar()"
- [options]="myDpOptions"
- #dp="angular-mydatepicker"
- [ngClass]="{
- 'is-invalid': submitted && f.fecha_operacion.errors
- }"
- />
- </div>
- <div
- *ngIf="submitted && f.fecha_operacion.errors"
- class="invalid-feedback"
- >
- <div *ngIf="f.fecha_operacion.errors.required">
- Campo requerido
- </div>
- </div>
- </div>
- </div>
- <!-- Fecha vencimiento -->
- <div class="col-lg-6 col-sm-12 pr-xl-3">
- <div class="form-group">
- <label for="fecha_vencimiento">Fecha vencimiento: </label>
- <div class="input-box-container">
- <div>
- <p>
- <i class="far fa-calendar" aria-hidden="true"></i>
- </p>
- <input
- class="input-box form-control"
- placeholder="Seleccione una fecha"
- angular-mydatepicker
- formControlName="fecha_vencimiento"
- (click)="dp1.toggleCalendar()"
- [options]="myDpOptions"
- #dp1="angular-mydatepicker"
- [ngClass]="{
- 'is-invalid': submitted && f.fecha_vencimiento.errors
- }"
- />
- </div>
- </div>
- <div
- *ngIf="submitted && f.fecha_vencimiento.errors"
- class="invalid-feedback"
- >
- <div *ngIf="f.fecha_vencimiento.errors.required">
- Campo requerido
- </div>
- </div>
- </div>
- </div>
- <div class="col-lg-12 col-sm-12 pr-xl-12">
- <div class="form-group text-right">
- <br />
- <button
- type="button"
- class="btn btn-success center-component"
- (click)="getCalculations(investmentProposalForm, false)"
- >
- Realizar cálculos
- </button>
- </div>
- </div>
- </div>
- <br />
- <!-- Calculos del instrumento-->
- <div class="instrument-calcs">
- <div class="row">
- <div class="col-12">
- <span class="badge badge-success badge-custom"
- >Cálculos del instrumento</span
- >
- </div>
- <div class="col-sm-6">
- <h4>Monto préstamo:</h4>
- <div class="field">$USD {{ monto_prestamo | number: "1.2-4" }}</div>
- </div>
- <div class="col-sm-6">
- <h4>Tasa (%):</h4>
- <div class="field">{{ tasa_porcentaje | number: "1.2-4" }}%</div>
- </div>
- <div class="col-sm-6">
- <h4>IVA (%):</h4>
- <div class="field">{{ iva_porcentaje | number: "1.2-4" }}%</div>
- </div>
- <div class="col-sm-6">
- <h4>IVA ($):</h4>
- <div class="field">$USD {{ iva | number: "1.2-4" }}</div>
- </div>
- <div class="col-sm-6">
- <h4>Comisión desembolso (%):</h4>
- <div class="field">
- {{ comision_desembolso_porcentaje | number: "1.2-4" }}%
- </div>
- </div>
- <div class="col-sm-6">
- <h4>Comisión desembolso ($):</h4>
- <div class="field">
- $USD {{ comision_desembolso | number: "1.2-4" }}
- </div>
- </div>
- <div class="col-sm-6">
- <h4>Plazo:</h4>
- <div class="field">{{ plazo | number: "1.2-4" }}</div>
- </div>
- <div class="col-sm-6">
- <h4>Fecha de operacion:</h4>
- <div class="field">{{ fecha_operacion }}</div>
- </div>
- <div class="col-sm-6">
- <h4>Fecha de vencimiento:</h4>
- <div class="field">{{ fecha_vencimiento }}</div>
- </div>
- </div>
- </div>
- <br />
- <!-- Tabla de proyecciones del instrumento-->
- <div class="instrument-calcs">
- <div class="row">
- <div class="col-12">
- <span class="badge badge-success badge-custom"
- >Proyecciones del instrumento</span
- >
- </div>
- <div *ngIf="hasProjections" class="cete-table-container">
- <table mat-table [dataSource]="dataSource" class="example-table">
- <ng-container matColumnDef="posicion">
- <th mat-header-cell *matHeaderCellDef>#</th>
- <td mat-cell *matCellDef="let row">
- {{ row.posicion }}
- </td>
- <td mat-footer-cell *matFooterCellDef>TOTAL</td>
- </ng-container>
- <ng-container matColumnDef="plazo">
- <th mat-header-cell *matHeaderCellDef>Plazo</th>
- <td mat-cell *matCellDef="let row">
- {{ row.plazo }}
- </td>
- <td mat-footer-cell *matFooterCellDef></td>
- </ng-container>
- <ng-container matColumnDef="fecha_pago">
- <th mat-header-cell *matHeaderCellDef>Fecha pago</th>
- <td mat-cell *matCellDef="let row">
- {{
- row.fecha_pago == "" || row.fecha_pago == undefined
- ? "-"
- : row.fecha_pago
- }}
- </td>
- <td mat-footer-cell *matFooterCellDef></td>
- </ng-container>
- <ng-container matColumnDef="tasa_porcentaje">
- <th mat-header-cell *matHeaderCellDef>Tasa (%)</th>
- <td mat-cell *matCellDef="let row">
- {{
- row.tasa_porcentaje == "" || row.tasa_porcentaje == undefined
- ? "0"
- : row.tasa_porcentaje | number: "1.2-4"
- }}%
- </td>
- <td mat-footer-cell *matFooterCellDef>
- {{
- consolidado_proyeccion.total_tasa_porcentaje
- | number: "1.2-4"
- }}%
- </td>
- </ng-container>
- <ng-container matColumnDef="ingreso_bruto">
- <th mat-header-cell *matHeaderCellDef>Ingreso bruto</th>
- <td mat-cell *matCellDef="let row">
- ${{
- row.ingreso_bruto == "" || row.ingreso_bruto == undefined
- ? "0"
- : row.ingreso_bruto | number: "1.2-4"
- }}
- </td>
- <td mat-footer-cell *matFooterCellDef>
- ${{
- consolidado_proyeccion.total_ingreso_bruto | number: "1.2-4"
- }}
- </td>
- </ng-container>
- <ng-container matColumnDef="ingreso_neto">
- <th mat-header-cell *matHeaderCellDef>Ingreso neto</th>
- <td mat-cell *matCellDef="let row">
- ${{
- row.ingreso_neto == "" || row.ingreso_neto == undefined
- ? "0"
- : row.ingreso_neto | number: "1.2-4"
- }}
- </td>
- <td mat-footer-cell *matFooterCellDef>
- ${{
- consolidado_proyeccion.total_ingreso_neto | number: "1.2-4"
- }}
- </td>
- </ng-container>
- <ng-container matColumnDef="iva">
- <th mat-header-cell *matHeaderCellDef>IVA</th>
- <td mat-cell *matCellDef="let row">
- ${{ row.iva == "" || row.iva == undefined ? "0" : row.iva | number: "1.2-4"}}
- </td>
- <td mat-footer-cell *matFooterCellDef>
- ${{ consolidado_proyeccion.total_iva | number: "1.2-4" }}
- </td>
- </ng-container>
- <ng-container matColumnDef="amortizacion_capital">
- <th mat-header-cell *matHeaderCellDef>Amortización capital</th>
- <td mat-cell *matCellDef="let row">
- ${{
- row.amortizacion_capital == "" ||
- row.amortizacion_capital == undefined
- ? "0"
- : (row.amortizacion_capital | number: "1.2-4")
- }}
- </td>
- <td mat-footer-cell *matFooterCellDef>
- ${{
- consolidado_proyeccion.total_amortizacion_capital
- | number: "1.2-4"
- }}
- </td>
- </ng-container>
- <ng-container matColumnDef="monto_recibir">
- <th mat-header-cell *matHeaderCellDef>Monto a recibir</th>
- <td mat-cell *matCellDef="let row">
- ${{
- row.monto_recibir == "" || row.monto_recibir == undefined
- ? "0"
- : row.monto_recibir | number: "1.2-4"
- }}
- </td>
- <td mat-footer-cell *matFooterCellDef>
- ${{
- consolidado_proyeccion.total_monto_recibir | number: "1.2-4"
- }}
- </td>
- </ng-container>
- <ng-container matColumnDef="capital_restante">
- <th mat-header-cell *matHeaderCellDef>Monto a recibir</th>
- <td mat-cell *matCellDef="let row">
- ${{
- row.capital_restante == "" ||
- row.capital_restante == undefined
- ? "0"
- : row.capital_restante | number: "1.2-4"
- }}
- </td>
- <td mat-footer-cell *matFooterCellDef>
- ${{
- consolidado_proyeccion.total_capital_restante
- | number: "1.2-4"
- }}
- </td>
- </ng-container>
- <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
- <tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
- <tr mat-footer-row *matFooterRowDef="displayedColumns"></tr>
- </table>
- </div>
- </div>
- </div>
- <br />
- <div class="form-group text-center space-20">
- <button
- type="button"
- class="btn btn-default center-component margin-right"
- (click)="goToPrevious()"
- >
- Anterior
- </button>
- <button
- type="submit"
- class="btn btn-primary center-component margin-right"
- (click)="goToNext(investmentProposalForm)"
- >
- Siguiente
- </button>
- </div>
- </form>
- </div>
- <div *ngIf="summary">
- <div class="timeline-body">
- <div class="row">
- <div class="col-lg-3 col-md-4 col-sm-6">
- <h4>Valor nominal:</h4>
- <div class="field">
- $USD {{ instrument_work.monto_prestamo | number: "1.2-4" }}
- </div>
- </div>
- <div class="col-lg-3 col-md-4 col-sm-6">
- <h4>Monto préstamo:</h4>
- <div class="field">
- $USD {{ instrument_work.monto_prestamo | number: "1.2-4" }}
- </div>
- </div>
- <div class="col-lg-3 col-md-4 col-sm-6">
- <h4>Tasa (%):</h4>
- <div class="field">
- {{ instrument_work.tasa_porcentaje | number: "1.2-4" }}%
- </div>
- </div>
- <div class="col-lg-3 col-md-4 col-sm-6">
- <h4>IVA (%):</h4>
- <div class="field">
- {{ instrument_work.iva_porcentaje | number: "1.2-4" }}%
- </div>
- </div>
- <div class="col-lg-3 col-md-4 col-sm-6">
- <h4>IVA ($):</h4>
- <div class="field">
- $USD {{ instrument_work.iva | number: "1.2-4" }}
- </div>
- </div>
- <div class="col-lg-3 col-md-4 col-sm-6">
- <h4>Comisión desembolso (%):</h4>
- <div class="field">
- {{
- instrument_work.comision_desembolso_porcentaje | number: "1.2-4"
- }}%
- </div>
- </div>
- <div class="col-lg-3 col-md-4 col-sm-6">
- <h4>Comisión desembolso ($):</h4>
- <div class="field">
- $USD {{ instrument_work.comision_desembolso | number: "1.2-4" }}
- </div>
- </div>
- <div class="col-lg-3 col-md-4 col-sm-6">
- <h4>Plazo:</h4>
- <div class="field">{{ instrument_work.plazo | number: "1.2-4" }}</div>
- </div>
- <div class="col-lg-3 col-md-4 col-sm-6">
- <h4>Fecha de operacion:</h4>
- <div class="field">{{ instrument_work.fecha_operacion }}</div>
- </div>
- <div class="col-lg-3 col-md-4 col-sm-6">
- <h4>Fecha de vencimiento:</h4>
- <div class="field">{{ instrument_work.fecha_vencimiento }}</div>
- </div>
- </div>
- <br />
- <div *ngIf="hasProjections" class="instrument-calcs-summary">
- <div class="row">
- <div class="col-12">
- <span class="badge-warning badge-custom-instrument"
- >Proyecciones del instrumento</span
- >
- </div>
- <div class="cete-table-container">
- <table mat-table [dataSource]="dataSource2" class="example-table">
- <ng-container matColumnDef="posicion">
- <th mat-header-cell *matHeaderCellDef>#</th>
- <td mat-cell *matCellDef="let row">
- {{ row.posicion }}
- </td>
- <td mat-footer-cell *matFooterCellDef>TOTAL</td>
- </ng-container>
- <ng-container matColumnDef="plazo">
- <th mat-header-cell *matHeaderCellDef>Plazo</th>
- <td mat-cell *matCellDef="let row">
- {{ row.plazo }}
- </td>
- <td mat-footer-cell *matFooterCellDef></td>
- </ng-container>
- <ng-container matColumnDef="fecha_pago">
- <th mat-header-cell *matHeaderCellDef>Fecha pago</th>
- <td mat-cell *matCellDef="let row">
- {{
- row.fecha_pago == "" || row.fecha_pago == undefined
- ? "-"
- : row.fecha_pago
- }}
- </td>
- <td mat-footer-cell *matFooterCellDef></td>
- </ng-container>
- <ng-container matColumnDef="tasa_porcentaje">
- <th mat-header-cell *matHeaderCellDef>Tasa (%)</th>
- <td mat-cell *matCellDef="let row">
- {{
- row.tasa_porcentaje == "" || row.tasa_porcentaje == undefined
- ? "0"
- : row.tasa_porcentaje | number: "1.2-4"
- }}%
- </td>
- <td mat-footer-cell *matFooterCellDef></td>
- </ng-container>
- <ng-container matColumnDef="ingreso_bruto">
- <th mat-header-cell *matHeaderCellDef>Ingreso bruto</th>
- <td mat-cell *matCellDef="let row">
- ${{
- row.ingreso_bruto == "" || row.ingreso_bruto == undefined
- ? "0"
- : row.ingreso_bruto | number: "1.2-4"
- }}
- </td>
- <td mat-footer-cell *matFooterCellDef>
- ${{
- consolidado_proyeccion.total_ingreso_bruto | number: "1.2-4"
- }}
- </td>
- </ng-container>
- <ng-container matColumnDef="ingreso_neto">
- <th mat-header-cell *matHeaderCellDef>Ingreso neto</th>
- <td mat-cell *matCellDef="let row">
- ${{
- row.ingreso_neto == "" || row.ingreso_neto == undefined
- ? "0"
- : row.ingreso_neto | number: "1.2-4"
- }}
- </td>
- <td mat-footer-cell *matFooterCellDef>
- ${{
- consolidado_proyeccion.total_ingreso_neto | number: "1.2-4"
- }}
- </td>
- </ng-container>
- <ng-container matColumnDef="iva">
- <th mat-header-cell *matHeaderCellDef>IVA</th>
- <td mat-cell *matCellDef="let row">
- ${{ row.iva == "" || row.iva == undefined ? "0" : row.iva | number: "1.2-4"}}
- </td>
- <td mat-footer-cell *matFooterCellDef>
- ${{ consolidado_proyeccion.total_iva | number: "1.2-4" }}
- </td>
- </ng-container>
- <ng-container matColumnDef="amortizacion_capital">
- <th mat-header-cell *matHeaderCellDef>Amortización capital</th>
- <td mat-cell *matCellDef="let row">
- ${{
- row.amortizacion_capital == "" ||
- row.amortizacion_capital == undefined
- ? "0"
- : (row.amortizacion_capital | number: "1.2-4")
- }}
- </td>
- <td mat-footer-cell *matFooterCellDef>
- ${{
- consolidado_proyeccion.total_amortizacion_capital
- | number: "1.2-4"
- }}
- </td>
- </ng-container>
- <ng-container matColumnDef="monto_recibir">
- <th mat-header-cell *matHeaderCellDef>Monto a recibir</th>
- <td mat-cell *matCellDef="let row">
- ${{
- row.monto_recibir == "" || row.monto_recibir == undefined
- ? "0"
- : row.monto_recibir | number: "1.2-4"
- }}
- </td>
- <td mat-footer-cell *matFooterCellDef>
- ${{
- consolidado_proyeccion.total_monto_recibir | number: "1.2-4"
- }}
- </td>
- </ng-container>
- <ng-container matColumnDef="capital_restante">
- <th mat-header-cell *matHeaderCellDef>Monto a recibir</th>
- <td mat-cell *matCellDef="let row">
- ${{
- row.capital_restante == "" ||
- row.capital_restante == undefined
- ? "0"
- : row.capital_restante | number: "1.2-4"
- }}
- </td>
- <td mat-footer-cell *matFooterCellDef>
- ${{
- consolidado_proyeccion.total_capital_restante
- | number: "1.2-4"
- }}
- </td>
- </ng-container>
- <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
- <tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
- <tr mat-footer-row *matFooterRowDef="displayedColumns"></tr>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
|