Compare commits
5 Commits
2.1.21
...
3cd699d2e2
Author | SHA1 | Date | |
---|---|---|---|
3cd699d2e2 | |||
d8b8787be9 | |||
62edca5335 | |||
ac6c5b7d3d | |||
5b5a0ed1f5 |
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<form id="search_form" class="ui form" action="{{$urls->base}}/search" method="post">
|
<form id="search_form" class="ui form" action="{{$urls->base}}/search" method="post">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<div class="ui fluid input" data-tooltip="Para buscar frases se deben encerrar entre comillas. ej, 'portal la viña' o "portal la viña"" data-position="bottom left">
|
<div class="ui fluid input" data-tooltip="Para buscar frases se deben encerrar entre comillas. ej, 'portal la viña' o "portal la viña"" data-position="top right">
|
||||||
<input type="text" name="query" />
|
<input type="text" name="query" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -56,7 +56,7 @@
|
|||||||
unidad.html(unidad.html() + ' (I)')
|
unidad.html(unidad.html() + ' (I)')
|
||||||
}
|
}
|
||||||
propietario = $('<a></a>')
|
propietario = $('<a></a>')
|
||||||
.attr('href','{{$urls->base}}/search/' + encodeURIComponent(this.venta.propietario.nombre_completo) + '/propietario')
|
.attr('href','{{$urls->base}}/search/"' + encodeURIComponent(this.venta.propietario.nombre_completo) + '"/propietario')
|
||||||
.html(this.venta.propietario.nombre_completo)
|
.html(this.venta.propietario.nombre_completo)
|
||||||
fecha = dateFormatter.format(new Date(this.venta.fecha))
|
fecha = dateFormatter.format(new Date(this.venta.fecha))
|
||||||
if (typeof this.venta.entrega !== 'undefined') {
|
if (typeof this.venta.entrega !== 'undefined') {
|
||||||
@ -309,15 +309,23 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
set: function() {
|
||||||
|
return {
|
||||||
|
query: value => {
|
||||||
|
$("[name='query']").val(value)
|
||||||
|
this.get().results()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
setup: function(id) {
|
setup: function(id) {
|
||||||
this.id = id
|
this.id = id
|
||||||
this.get().results()
|
this.get().results()
|
||||||
|
|
||||||
$('#tipo').dropdown().dropdown('set selected', '*')
|
$('#tipo').dropdown().dropdown('set selected', '*')
|
||||||
@if (trim($post) !== '')
|
@if (trim($post) !== '')
|
||||||
$("[name='query']").val('{{$post}}')
|
this.set().query('{!! $post !!}')
|
||||||
@elseif (trim($query) !== '')
|
@elseif (trim($query) !== '')
|
||||||
$("[name='query']").val('{{$query}}')
|
this.set().query('{!! $query !!}')
|
||||||
@endif
|
@endif
|
||||||
@if (trim($tipo) !== '')
|
@if (trim($tipo) !== '')
|
||||||
$('#tipo').dropdown('set selected', '{{$tipo}}')
|
$('#tipo').dropdown('set selected', '{{$tipo}}')
|
||||||
|
@ -4,10 +4,10 @@ use Psr\Container\ContainerInterface;
|
|||||||
return [
|
return [
|
||||||
Incoviba\Common\Define\Database::class => function(ContainerInterface $container) {
|
Incoviba\Common\Define\Database::class => function(ContainerInterface $container) {
|
||||||
return new Incoviba\Common\Implement\Database\MySQL(
|
return new Incoviba\Common\Implement\Database\MySQL(
|
||||||
$container->has('MYSQL_HOST') ? $container->get('MYSQL_HOST') : 'db',
|
$container->has('DB_HOST') ? $container->get('DB_HOST') : 'db',
|
||||||
$container->get('MYSQL_DATABASE'),
|
$container->get('DB_DATABASE'),
|
||||||
$container->get('MYSQL_USER'),
|
$container->get('DB_USER'),
|
||||||
$container->get('MYSQL_PASSWORD')
|
$container->get('DB_PASSWORD')
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
Incoviba\Common\Define\Connection::class => function(ContainerInterface $container) {
|
Incoviba\Common\Define\Connection::class => function(ContainerInterface $container) {
|
||||||
|
@ -142,7 +142,7 @@ class Search
|
|||||||
}
|
}
|
||||||
protected function findPago(string $query): array
|
protected function findPago(string $query): array
|
||||||
{
|
{
|
||||||
if ($query != 0) {
|
if ((int) $query === 0) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
$methods = [
|
$methods = [
|
||||||
@ -156,6 +156,7 @@ class Search
|
|||||||
$pagos = [];
|
$pagos = [];
|
||||||
try {
|
try {
|
||||||
$pagos = $this->pagoRepository->fetchByValue((int) $valor);
|
$pagos = $this->pagoRepository->fetchByValue((int) $valor);
|
||||||
|
error_log(var_export($pagos,true).PHP_EOL,3,'/logs/debug');
|
||||||
} catch (EmptyResult) {}
|
} catch (EmptyResult) {}
|
||||||
$results = [];
|
$results = [];
|
||||||
foreach ($methods as $method) {
|
foreach ($methods as $method) {
|
||||||
|
@ -25,7 +25,7 @@ services:
|
|||||||
<<: *restart
|
<<: *restart
|
||||||
env_file:
|
env_file:
|
||||||
- ${APP_PATH:-.}/.env
|
- ${APP_PATH:-.}/.env
|
||||||
- ${APP_PATH:-.}/.db.env
|
# - ${APP_PATH:-.}/.db.env
|
||||||
- ./.key.env
|
- ./.key.env
|
||||||
#- ${APP_PATH:-.}/.remote.env
|
#- ${APP_PATH:-.}/.remote.env
|
||||||
volumes:
|
volumes:
|
||||||
|
Reference in New Issue
Block a user