Modificacion de peso total
This commit is contained in:
@@ -476,12 +476,12 @@ export default function Documents() {
|
||||
</span>
|
||||
</td>
|
||||
<td className="px-4 py-3 whitespace-nowrap text-xs text-gray-900">{ped.clave_pedimento}</td>
|
||||
<td className="px-4 py-3 whitespace-nowrap text-xs text-gray-900">{ped.documentos_count}</td>
|
||||
<td className="px-4 py-3 whitespace-nowrap text-xs text-gray-900">{ped.documentos_count || 0}</td>
|
||||
<td className="px-4 py-3 whitespace-nowrap text-xs text-gray-900 min-w-0">
|
||||
<div className="truncate" title={typeof ped.documentos_peso_total === 'number' ? (ped.documentos_peso_total / 1024).toFixed(2) + ' MB' : ped.documentos_peso_total}>
|
||||
<div className="truncate" title={typeof ped.documentos_peso_total === 'number' ? (ped.documentos_peso_total / (1024 * 1024)).toFixed(2) + ' MB' : ped.documentos_peso_total}>
|
||||
{typeof ped.documentos_peso_total === 'number'
|
||||
? (ped.documentos_peso_total / 1024).toFixed(2) + ' MB'
|
||||
: ped.documentos_peso_total}
|
||||
? (ped.documentos_peso_total / (1024 * 1024)).toFixed(2) + ' MB'
|
||||
: ped.documentos_peso_total || 'N/A'}
|
||||
</div>
|
||||
</td>
|
||||
<td className="px-4 py-3 whitespace-nowrap">
|
||||
@@ -606,11 +606,15 @@ export default function Documents() {
|
||||
</div>
|
||||
<div className="flex items-center justify-between bg-gray-50 rounded-lg p-2">
|
||||
<span className="text-sm font-medium text-gray-700">No. Archivos</span>
|
||||
<span className="text-sm font-bold text-gray-800"></span>
|
||||
<span className="text-sm font-bold text-gray-800">{ped.documentos_count || 0}</span>
|
||||
</div>
|
||||
<div className="flex items-center justify-between bg-gray-50 rounded-lg p-2">
|
||||
<span className="text-sm font-medium text-gray-700">Peso Total</span>
|
||||
<span className="text-sm font-bold text-gray-800">Peso total</span>
|
||||
<span className="text-sm font-bold text-gray-800">
|
||||
{typeof ped.documentos_peso_total === 'number'
|
||||
? (ped.documentos_peso_total / (1024 * 1024)).toFixed(2) + ' MB'
|
||||
: ped.documentos_peso_total || 'N/A'}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user