This commit is contained in:
lizandrogd
2026-01-19 18:29:18 -05:00
parent 084b644714
commit eb95830bb3
3 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ class Recepcion extends Model
if ($rec->referencia) {
$referencia = $rec->referencia;
$enviada = (int) ($referencia->cantidad_enviada ?? 0);
$yaRecibido = (int) \\App\\Models\\Recepcion::where('referencia_type', get_class($referencia))
$yaRecibido = (int) \App\Models\Recepcion::where('referencia_type', get_class($referencia))
->where('referencia_id', $referencia->id)
->sum('cantidad');