2 Commits

Author SHA1 Message Date
2b1190202a FIX: Desisitimiento no encontrado 2024-12-03 11:39:25 -03:00
acb1081190 Logs diferentes para desarrollo 2024-12-03 11:39:11 -03:00
3 changed files with 17 additions and 4 deletions

View File

@ -1,3 +1,5 @@
#ENVIRONMENT=
APP_URL=
MYSQL_HOST=db
@ -9,3 +11,8 @@ MAX_LOGIN_HOURS=120
REDIS_HOST=redis
REDIS_PORT=6379
DB_HOST=db
DB_DATABASE=incoviba
DB_USER=incoviba
DB_PASSWORD=

View File

@ -18,7 +18,7 @@ $showPropietario = true;
<i class="ban icon"></i>
{{ucwords($venta->currentEstado()->tipoEstadoVenta->descripcion)}}
(<a href="{{$urls->base}}/venta/{{$venta->id}}/desistida">
{{$format->pesos($venta->resciliacion()->valor)}}
{{$format->pesos($venta->resciliacion()->valor ?? 0)}}
</a>)
</div>
@endif

View File

@ -16,13 +16,19 @@ return [
Monolog\Level::Critical
),
new Monolog\Handler\FilterHandler(
new Monolog\Handler\RedisHandler($container->get(Predis\ClientInterface::class), 'logs:notices'),
($container->has('ENVIRONMENT') and $container->get('ENVIRONMENT') === 'development')
? (new Monolog\Handler\RotatingFileHandler('/logs/notices.log', 10))
->setFormatter(new Monolog\Formatter\LineFormatter(null, null, false, false, true))
: new Monolog\Handler\RedisHandler($container->get(Predis\ClientInterface::class), 'logs:notices'),
Monolog\Level::Notice,
Monolog\Level::Warning
),
new Monolog\Handler\FilterHandler(
(new Incoviba\Common\Implement\Log\MySQLHandler($container->get(Incoviba\Common\Define\Connection::class)))
->setFormatter(new Incoviba\Common\Implement\Log\PDOFormatter()),
($container->has('ENVIRONMENT') and $container->get('ENVIRONMENT') === 'development')
? (new Monolog\Handler\RotatingFileHandler('/logs/debug.log', 10))
->setFormatter(new Monolog\Formatter\LineFormatter(null, null, false, false, true))
: (new Incoviba\Common\Implement\Log\MySQLHandler($container->get(Incoviba\Common\Define\Connection::class)))
->setFormatter(new Incoviba\Common\Implement\Log\PDOFormatter()),
Monolog\Level::Debug,
Monolog\Level::Warning
)