Se reparo error en el buscador
This commit is contained in:
@@ -65,9 +65,20 @@ class Movimiento extends Model
|
||||
|
||||
public function ajusteCambio()
|
||||
{
|
||||
if(((float)$this->pago_efectivo) - $this->cambio()>0)
|
||||
if(((float)$this->pago_efectivo) - $this->cambio()>=0)
|
||||
{
|
||||
$this->pago_efectivo-= $this->cambio();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new Eloquent model instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function isTotalMayorCambio() : bool
|
||||
{
|
||||
|
||||
return ($this->pago_tarjeta + $this->pago_vales + $this->pago_transferencia)>$this->precio_venta;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user