Se reparo error en el buscador
This commit is contained in:
@@ -129,10 +129,14 @@ class VentaEspecialController extends Component
|
||||
]);
|
||||
|
||||
if(($this->calcularTotalPagar($this->ventaEspecial) - $this->ventaAnterior->totalAbono()) >0){
|
||||
// session()->flash("message_abono",($this->calcularTotalPagar($this->ventaEspecial) - $this->ventaAnterior->totalAbono()));
|
||||
session()->flash("message_abono","Debes liquidar la deuda para cerrarla.");
|
||||
return;
|
||||
}
|
||||
if($this->ventaEspecial->isTotalMayorCambio())
|
||||
{
|
||||
session()->flash("error","Pago diferente al efectivo no pueden superar el total de venta.");
|
||||
return;
|
||||
}
|
||||
|
||||
$this->ventaAnterior->is_liquidado = true;
|
||||
$this->ventaAnterior->save();
|
||||
|
||||
Reference in New Issue
Block a user