This commit is contained in:
2025-09-01 16:38:47 -06:00
parent 0d3d20832f
commit 938e75b9bc
2 changed files with 6 additions and 3 deletions

View File

@@ -38,8 +38,7 @@ function RegistrosCargadosModal({ open, onClose, registros }) {
<th className="px-2 py-1 border">Cantidad</th> <th className="px-2 py-1 border">Cantidad</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody> {(registros && typeof registros === 'object' ? Object.entries(registros) : []).map(([registro, cantidad]) => (
{(registros && typeof registros === 'object' ? Object.entries(registros) : []).map(([registro, cantidad]) => (
<tr key={registro}> <tr key={registro}>
<td className="px-2 py-1 border">{registro}</td> <td className="px-2 py-1 border">{registro}</td>
<td className="px-2 py-1 border text-right">{cantidad}</td> <td className="px-2 py-1 border text-right">{cantidad}</td>

View File

@@ -475,7 +475,11 @@ export default function Documents() {
</td> </td>
<td className="px-4 py-4 whitespace-nowrap text-sm text-gray-900 font-semibold">{ped.clave_pedimento}</td> <td className="px-4 py-4 whitespace-nowrap text-sm text-gray-900 font-semibold">{ped.clave_pedimento}</td>
<td className="px-4 py-4 whitespace-nowrap text-sm text-gray-900 font-semibold">{ped.documentos_count}</td> <td className="px-4 py-4 whitespace-nowrap text-sm text-gray-900 font-semibold">{ped.documentos_count}</td>
<td className="px-4 py-4 whitespace-nowrap text-sm text-gray-900 font-semibold">{ped.documentos_peso_total}</td> <td className="px-4 py-4 whitespace-nowrap text-sm text-gray-900 font-semibold">
{typeof ped.documentos_peso_total === 'number'
? (ped.documentos_peso_total / 1024).toFixed(2) + ' MB'
: ped.documentos_peso_total}
</td>
<td className="px-4 py-4 whitespace-nowrap"> <td className="px-4 py-4 whitespace-nowrap">
<span className={`inline-flex items-center px-3 py-1 rounded-full text-xs font-semibold ${ <span className={`inline-flex items-center px-3 py-1 rounded-full text-xs font-semibold ${
ped.existe_expediente ped.existe_expediente