update reporte
This commit is contained in:
@@ -50,8 +50,8 @@ class ShowReportes extends Component
|
|||||||
|
|
||||||
if (!empty($this->mes)) {
|
if (!empty($this->mes)) {
|
||||||
|
|
||||||
$consulta_suma = Historiale::whereMonth('created_at',$this->mes)->sum('valor');
|
$consulta_suma = Historiale::where('vendedor_id', auth()->user()->id)->whereMonth('created_at',$this->mes)->sum('valor');
|
||||||
$consulta_cantidad = Historiale::whereMonth('created_at',$this->mes)->count();
|
$consulta_cantidad = Historiale::where('vendedor_id', auth()->user()->id)->whereMonth('created_at',$this->mes)->count();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user