Se reparo error en el buscador
This commit is contained in:
@@ -60,6 +60,8 @@ class VentaController extends Component
|
||||
|
||||
public function updated()
|
||||
{
|
||||
if(!$this->modal)
|
||||
return;
|
||||
if($this->venta->cambio()>0)
|
||||
{
|
||||
$this->cambio = $this->venta->cambio();
|
||||
@@ -83,6 +85,12 @@ class VentaController extends Component
|
||||
'venta.estado_movimiento_id' => 'numeric',
|
||||
]);
|
||||
|
||||
if($this->venta->isTotalMayorCambio())
|
||||
{
|
||||
session()->flash("error","Pago diferente al efectivo no pueden superar el total de venta.");
|
||||
return;
|
||||
}
|
||||
|
||||
$this->venta->ajusteCambio();
|
||||
|
||||
$this->venta->user_id = Auth::user()->id;
|
||||
|
||||
Reference in New Issue
Block a user