diff --git a/app/resources/views/ventas/show/escritura.blade.php b/app/resources/views/ventas/show/escritura.blade.php index 5fc371d..29ed21e 100644 --- a/app/resources/views/ventas/show/escritura.blade.php +++ b/app/resources/views/ventas/show/escritura.blade.php @@ -1,9 +1,9 @@
ESCRITURA
-@if ($venta->formaPago()->escritura !== null) +@if (in_array($venta->currentEstado()->tipoEstadoVenta->descripcion, ['escriturando', 'firmado por inmobiliaria', 'archivado']))
- Escriturado {{$venta->formaPago()->escritura->fecha->format('d-m-Y')}} + Escriturado {{$venta->currentEstado()->fecha->format('d-m-Y')}} Informe diff --git a/app/resources/views/ventas/show/forma_pago/total.blade.php b/app/resources/views/ventas/show/forma_pago/total.blade.php index 06d3ac9..388df73 100644 --- a/app/resources/views/ventas/show/forma_pago/total.blade.php +++ b/app/resources/views/ventas/show/forma_pago/total.blade.php @@ -16,7 +16,7 @@ - @if ($venta->saldo() / $venta->valor > 0.01) + @if (abs($venta->saldo() / $venta->valor) > 0.01) Δ {{$format->ufs($venta->saldo())}}