Skip to content

Commit

Permalink
fix: detalles varios
Browse files Browse the repository at this point in the history
  • Loading branch information
yoelmarain committed Dec 8, 2024
1 parent 1e93988 commit 3190dce
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,12 @@ const DarseBaja = () => {
Compromiso de pago no firmado
</Alert>
)}

{!puedeSolicitarBaja && (
<Alert status="error">
<AlertIcon />
No se puede solicitar baja en este momento, debido a que no se encuentra dentro de la fecha permitida.
</Alert>
)}


<Box
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ function InformarPago() {
</Text>
</Flex>
</Tag>
{alumno?.estado_financiero === 'Inhabilitado' ? (
{alumno?.estado_financiero === 'Inhabilitado' && alumno?.estado_academico === 'Inhabilitado' ? (
<Tag flex="1" p="10px" fontSize={16} bg="#FF8A8A">
<Text color="gray">
Motivo:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const DrawerInformar: React.FC<DrawerInformarProps> = ({ isOpen, onClose, cuotas


useEffect(() => {
const calculatedTotal = cuotasseleccionadas.reduce((acc, cuota) => acc + (cuota.montoActual - cuota.monto_pagado - cuota.valorinformado), 0);
const calculatedTotal = cuotasseleccionadas.reduce((acc, cuota) => acc + (cuota.montoActual - cuota.valorinformado), 0);
setTotal(calculatedTotal);
setMontoAbonado(calculatedTotal);
}, [isOpen, cuotasseleccionadas]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ function TablaCuotas({ refresh, setCuotasSeleccionadas, cuotasSeleccionadas }: T
<Td textAlign="center">{"$ " + new Intl.NumberFormat('es-ES').format(cuota.montoActual)}</Td>
<Td textAlign="center">{"$ " + new Intl.NumberFormat('es-ES').format(cuota.monto_pagado)}</Td>
<Td textAlign="center">{"$ " + new Intl.NumberFormat('es-ES').format(cuota.valorinformado)}</Td>
<Td textAlign="center">{"$ " + new Intl.NumberFormat('es-ES').format(cuota.montoActual - cuota.monto_pagado - cuota.valorinformado)}</Td>
<Td textAlign="center">{'$ ' + new Intl.NumberFormat('es-ES').format(cuota.montoActual - cuota.valorinformado)}</Td>
</Tr>
))}
</Tbody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const AlumnosBaja = () => {
<Button colorScheme="green" onClick={() => handleAceptar(baja)}>
Aceptar
</Button>
<Button colorScheme="red" onClick={() => handleRechazar(baja)}>
<Button variant={'light'} onClick={() => handleRechazar(baja)}>
Rechazar
</Button>
</Flex>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function Resultado({ data }: { data: any }) {
<Stack mt={3}>
<Text fontSize="xl" fontWeight="bold">Datos cargados</Text>
<Tag colorScheme="green" fontSize="md" fontWeight="bold">
Total procesado: {total_processed}
Total filas leidas: {total_processed}
</Tag>
{Object.keys(alumnos_rehabilitados).length > 0 && (
<Stack>
Expand All @@ -27,7 +27,7 @@ function Resultado({ data }: { data: any }) {
)}
{Object.keys(not_processed).length > 0 && (
<Stack>
<Text fontSize="md" fontWeight="bold">No procesados:</Text>
<Text fontSize="md" fontWeight="bold">Filas No procesadas:</Text>
<Box maxHeight="200px" overflowY="auto" border="1px solid #ccc" borderRadius="md" p={2} >
{Object.keys(not_processed).map((key) => (
<Tag colorScheme="red" fontSize="md" fontWeight="bold" key={key} display="block" m={1}>
Expand Down
2 changes: 1 addition & 1 deletion FrontAdmin/src/components/Pages/SysAdmin/SysAdmin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function Sysadmin(){
borderRadius={10}
w={["90%", "80%", "550px"]} // Se ajusta el ancho para pantallas pequeñas
>
<Text fontSize={["lg", "xl"]}>Subir Excel de SysAdmin</Text>
<Text fontSize={["lg", "xl"]}>Procesar Excel de SysAdmin</Text>
<ZonaCarga
onFileUpload={handleFileUpload}
reset={reset}
Expand Down

0 comments on commit 3190dce

Please sign in to comment.