update reporte

This commit is contained in:
lizandrogd
2024-01-02 23:12:22 -05:00
parent 33ff2ebb69
commit 5c23236b9b
+2 -2
View File
@@ -50,8 +50,8 @@ class ShowReportes extends Component
if (!empty($this->mes)) {
$consulta_suma = Historiale::whereMonth('created_at',$this->mes)->sum('valor');
$consulta_cantidad = Historiale::whereMonth('created_at',$this->mes)->count();
$consulta_suma = Historiale::where('vendedor_id', auth()->user()->id)->whereMonth('created_at',$this->mes)->sum('valor');
$consulta_cantidad = Historiale::where('vendedor_id', auth()->user()->id)->whereMonth('created_at',$this->mes)->count();
}
}