Actualizar frontend/src/pages/Ventas.jsx
This commit is contained in:
@@ -181,7 +181,7 @@ export default function Ventas() {
|
||||
{KPIS.map(([ico,label,val,sub]) => (
|
||||
<div className="kpi" key={label}>
|
||||
<div className="ico">{ico}</div>
|
||||
<div className="label" style={{fontSize:15}}>{label}</div>
|
||||
<div className="label" style={{fontSize:12}}>{label}</div>
|
||||
<div className="value" style={{fontSize:20}}>{val}</div>
|
||||
<div className="sub">{sub}</div>
|
||||
</div>
|
||||
@@ -235,7 +235,7 @@ function ModalDetalle({ vendedor, ano, mes, onClose }) {
|
||||
useEffect(() => {
|
||||
let activo = true;
|
||||
setLoading(true);
|
||||
api.ventasDetalle(vendedor, ano, mes, tipo)
|
||||
api.ventasDetalle(vendedor, ano, mes, tipo, "TODOS", "TODOS", true)
|
||||
.then((res) => { if (activo) { setFilas(res.filas || []); setLoading(false); } })
|
||||
.catch(() => { if (activo) { setFilas([]); setLoading(false); } });
|
||||
return () => { activo = false; };
|
||||
|
||||
Reference in New Issue
Block a user