FIX: Negative numbers in cuenta ui, and update_consolidar command route
This commit is contained in:
4
console/setup/commands/03_update_consolidar.php
Normal file
4
console/setup/commands/03_update_consolidar.php
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
<?php
|
||||||
|
use Contabilidad\Common\Command\UpdateConsolidar;
|
||||||
|
|
||||||
|
$app->add(new UpdateConsolidar($app->getContainer()->get(\Psr\Http\Client\ClientInterface::class), 'update_consolidar'));
|
@ -47,7 +47,7 @@ class Transaccion {
|
|||||||
).append(
|
).append(
|
||||||
$('<td></td>').attr('class', 'right aligned').html((this.isIncrement()) ? '' : format_call({value: this.valor.valor, format, format_array}))
|
$('<td></td>').attr('class', 'right aligned').html((this.isIncrement()) ? '' : format_call({value: this.valor.valor, format, format_array}))
|
||||||
).append(
|
).append(
|
||||||
$('<td></td>').attr('class', 'right aligned').html((this.isIncrement()) ? format_call({value: this.valor.valor, format, format_array}) : '')
|
$('<td></td>').attr('class', 'right aligned').html((this.isIncrement()) ? format_call({value: -this.valor.valor, format, format_array}) : '')
|
||||||
).append(
|
).append(
|
||||||
$('<td></td>').attr('class', 'right aligned').html(format_call({value: saldo, format_array, format}))
|
$('<td></td>').attr('class', 'right aligned').html(format_call({value: saldo, format_array, format}))
|
||||||
).append(
|
).append(
|
||||||
@ -134,7 +134,6 @@ const transacciones = {
|
|||||||
sendGet(_urls.api + '/cuenta/' + this.cuenta_id + '/categoria').then((resp) => {
|
sendGet(_urls.api + '/cuenta/' + this.cuenta_id + '/categoria').then((resp) => {
|
||||||
this.cuenta.categoria = resp.categoria
|
this.cuenta.categoria = resp.categoria
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
//this.saldo = this.cuenta.saldo
|
|
||||||
$('#cuenta').html(this.cuenta.nombre + ' (' + this.cuenta.categoria.nombre + ')').append(
|
$('#cuenta').html(this.cuenta.nombre + ' (' + this.cuenta.categoria.nombre + ')').append(
|
||||||
$('<i></i>').attr('class', 'square full icon').css('color', '#' + this.cuenta.tipo.color)
|
$('<i></i>').attr('class', 'square full icon').css('color', '#' + this.cuenta.tipo.color)
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user