falta mirar en la base de datos si guardo el tipo de moneda
This commit is contained in:
@@ -1,16 +1,22 @@
|
||||
<script lang="ts">
|
||||
import BarraHorizontalConTexto from "../Componentes/BarraHorizontalConTexto.svelte";
|
||||
import NavBarAutocompletable from "../Componentes/NavBarAutocompletable.svelte";
|
||||
import NavBarAutocompletable from "../Componentes/NavBarAutocompletable.svelte";
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<NavBarAutocompletable/>
|
||||
|
||||
<div class="container">
|
||||
<div class="container-fluid">
|
||||
<BarraHorizontalConTexto text="Control Alquileres" />
|
||||
|
||||
<div class="row" >
|
||||
|
||||
<div class="row g-3">
|
||||
<div class="col-md-6"><!--a-->
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<p>a</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -52,13 +52,16 @@
|
||||
<th>Piso</th>
|
||||
<th>Tipo</th>
|
||||
<th>Servicios</th>
|
||||
<th>Divisa</th>
|
||||
<th>Monto</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{#each $propiedades as propiedad}
|
||||
<RowPropiedad id={propiedad.id} ubicacion={propiedad.ubicacion} letra={propiedad.letra} piso={propiedad.piso} tipo={propiedad.tipo} canthabitaciones={propiedad.canthabitaciones} servicios={propiedad.servicios} monto={propiedad.monto} />
|
||||
<RowPropiedad id={propiedad.id} ubicacion={propiedad.ubicacion} letra={propiedad.letra} piso={propiedad.piso} tipo={propiedad.tipo}
|
||||
canthabitaciones={propiedad.canthabitaciones} servicios={propiedad.servicios} monto={propiedad.monto}
|
||||
iddivisa={propiedad.iddivisa}/>
|
||||
{/each}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -53,13 +53,14 @@
|
||||
<th>Piso</th>
|
||||
<th>Tipo</th>
|
||||
<th>Servicios</th>
|
||||
<th>Divisa</th>
|
||||
<th>Monto</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{#each $propiedades as propiedad}
|
||||
<RowPropiedad id={propiedad.id} ubicacion={propiedad.ubicacion} letra={propiedad.letra} piso={propiedad.piso} tipo={propiedad.tipo} canthabitaciones={propiedad.canthabitaciones} servicios={propiedad.servicios} btnbaja={"Alta"} monto={propiedad.monto}/>
|
||||
<RowPropiedad id={propiedad.id} ubicacion={propiedad.ubicacion} letra={propiedad.letra} piso={propiedad.piso} tipo={propiedad.tipo} canthabitaciones={propiedad.canthabitaciones} servicios={propiedad.servicios} btnbaja={"Alta"} monto={propiedad.monto} iddivisa={propiedad.iddivisa}/>
|
||||
{/each}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@@ -170,7 +170,7 @@
|
||||
cantidadGarantes: data.cantGarantes,
|
||||
idPropiedad: Selmens.propiedad,
|
||||
fechaprimernotificacion: fecha,
|
||||
emailInquilino: localStorage.getItem("email"),
|
||||
emailInquilino: Selmens.remitente,
|
||||
emailPropietario: Selmens.receptor,
|
||||
};
|
||||
|
||||
@@ -459,7 +459,7 @@
|
||||
<tbody>
|
||||
{#if mensajes.length <= 0}
|
||||
<tr>
|
||||
<td colspan={mostrarleidos == false ? 6 : 5}>
|
||||
<td colspan={mostrarleidos == false ? 7 : 6}>
|
||||
<p>No hay Mensajes para leer</p>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -481,8 +481,8 @@
|
||||
Expandir
|
||||
</button>
|
||||
{/if}
|
||||
{#if men.accion === "ContratoCancelado" || men.accion === "Rechazo Contrato" ||
|
||||
men.accion === "Aceptado Contrato"}
|
||||
{#if (men.accion === "ContratoCancelado" || men.accion === "Rechazo Contrato" ||
|
||||
men.accion === "Aceptado Contrato") && mostrarleidos == false}
|
||||
<button
|
||||
class="btn btn-outline-danger"
|
||||
onclick={() => marcarleido(men.fecha, localStorage.getItem("email")|| "", men)}>
|
||||
|
||||
@@ -5,15 +5,16 @@
|
||||
import type { Propiedad } from "../types";
|
||||
import { urlG } from "../stores/urlStore";
|
||||
|
||||
let propiedad: Propiedad = {
|
||||
let propiedad = $state({
|
||||
ubicacion: "",
|
||||
canthabitaciones: 1,
|
||||
piso: 0,
|
||||
letra: "",
|
||||
email: localStorage.getItem("email") || "",
|
||||
idtipropiedad: 1,
|
||||
iddivisa:0,
|
||||
monto: 1,
|
||||
};
|
||||
});
|
||||
|
||||
let token = sessionStorage.getItem("token");
|
||||
let mostrarModal = $state(false);
|
||||
@@ -116,6 +117,31 @@
|
||||
/>
|
||||
<label for="letra">Letra</label>
|
||||
</div>
|
||||
|
||||
<div class="form-floating mb-3">
|
||||
<h6 class="form-floating form-label">Moneda</h6>
|
||||
<div class="form-check">
|
||||
<input
|
||||
type="radio"
|
||||
class="form-check-input"
|
||||
bind:group={propiedad.iddivisa}
|
||||
value={0}
|
||||
id="moneda-ar"
|
||||
/>
|
||||
<label class="form-check-label" for="moneda-ar">AR$</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input
|
||||
type="radio"
|
||||
class="form-check-input"
|
||||
bind:group={propiedad.iddivisa}
|
||||
value={1}
|
||||
id="moneda-us"
|
||||
/>
|
||||
<label class="form-check-label" for="moneda-us">US$</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-floating mb-3">
|
||||
<select
|
||||
id="idtipropiedad"
|
||||
|
||||
Reference in New Issue
Block a user