15 Commits

Author SHA1 Message Date
c784d1bee9 Fix informes 2024-02-21 21:22:04 +00:00
a1ade5c2c7 Merge branch 'develop' of http://git.provm.cl/Incoviba/oficial into develop 2024-02-20 01:54:05 +00:00
b4cdd2d5f7 Merge branch 'develop' of http://git.provm.cl/Incoviba/oficial into develop 2024-02-15 21:59:47 +00:00
d2e51e76f8 Merge branch 'develop' of http://git.provm.cl/Incoviba/oficial into develop 2024-02-14 16:54:10 +00:00
0e32512adc Merge branch 'develop' of http://git.provm.cl/Incoviba/oficial into develop 2024-02-13 21:18:11 +00:00
2aad7e1152 Merge branch 'develop' of http://git.provm.cl/Incoviba/oficial into develop 2024-02-13 21:00:02 +00:00
1c7797b1b1 Merge branch 'develop' of http://git.provm.cl/Incoviba/oficial into develop 2024-02-13 15:13:06 +00:00
faac3874a8 Merge branch 'develop' of http://git.provm.cl/Incoviba/oficial into develop 2024-02-13 15:11:33 +00:00
c192cf1883 Merge branch 'develop' of http://git.provm.cl/Incoviba/oficial into develop 2024-02-13 15:08:31 +00:00
ccbb71d875 Merge branch 'develop' of http://git.provm.cl/Incoviba/oficial into develop 2024-02-13 14:26:36 +00:00
f0b26a251b Merge branch 'develop' of http://git.provm.cl/Incoviba/oficial into develop 2024-02-13 14:17:08 +00:00
1ccc9ab3d4 Cambio a proyectos:activos 2024-02-13 14:12:19 +00:00
5cd19bcdce Merge branch 'develop' of http://git.provm.cl/Incoviba/oficial into develop 2024-02-13 14:11:45 +00:00
4b39f93f30 Update permissions for cli 2024-02-13 04:30:54 +00:00
d3f188684a Increase update of proyectos 2024-02-13 04:30:29 +00:00
5 changed files with 9 additions and 4 deletions

View File

@ -398,6 +398,9 @@
},
draw() {
return {
empty: () => {
Object.values(this.ids.table).forEach(id => $(id).find('tbody').html(''))
},
diferencia: () => {
const table = $(this.ids.table.diferencia)
const tbody = table.find('tbody')
@ -442,6 +445,7 @@
diaria.loader().show()
fetchAPI(url, {method: 'post', body}).then(response => {
diaria.loader().hide()
this.draw().empty()
if (!response) {
return
}
@ -463,7 +467,7 @@
saldo: row.saldo
}
})
const ayer = new Date(this.data.cartolas[cartolaIdx].fecha.timestamp)
const ayer = new Date(this.data.cartolas[cartolaIdx].fecha.getTime())
ayer.setDate(this.data.cartolas[cartolaIdx].fecha.getDate() - 1)
this.data.cartolas[cartolaIdx].saldo = entry[1].cartola.saldo
this.data.cartolas[cartolaIdx].get().ayer(ayer)

View File

@ -6,7 +6,7 @@
<i class="dropdown icon"></i>
Informes
<div class="menu">
<a class="item" href="{{$urls->base}}/contabilidad/informes/tesoreria">Tesorería</a>
<a class="item" href="{{$urls->base}}/contabilidad/informes/tesoreria/{{$hoy->sub(new DateInterval('P1D'))->format('Y-m-d')}}">Tesorería</a>
</div>
</div>
<div class="item">

View File

@ -12,7 +12,8 @@ return [
'API_KEY' => $container->get('API_KEY'),
'UF' => $container->get(Incoviba\Service\UF::class),
'USD' => $container->get(Incoviba\Service\USD::class),
'IPC' => $container->get(Incoviba\Service\IPC::class)
'IPC' => $container->get(Incoviba\Service\IPC::class),
'hoy' => new DateTimeImmutable()
];
if ($global_variables['login']->isIn()) {
$global_variables['user'] = $global_variables['login']->getUser();

0
cli/bin/incoviba Normal file → Executable file
View File

View File

@ -2,7 +2,7 @@
0 2 * * * /code/bin/incoviba ventas:cuotas:pendientes >> /logs/commands 2>&1
0 2 * * * /code/bin/incoviba ventas:cuotas:vencer >> /logs/commands 2>&1
0 2 * * * /code/bin/incoviba ventas:cierres:vigentes >> /logs/commands 2>&1
0 2 * * * /code/bin/incoviba proyectos:activos >> /logs/commands 2>&1
* */3 * * * /code/bin/incoviba proyectos:activos >> /logs/commands 2>&1
0 2 * * * /code/bin/incoviba comunas >> /logs/commands 2>&1
0 2 * * * /code/bin/incoviba money:uf >> /logs/commands 2>&1
0 2 1 * * /code/bin/incoviba money:ipc >> /logs/commands 2>&1