Resultado y fix cuentas

This commit is contained in:
2022-01-06 15:20:21 -03:00
parent 3cb2a877de
commit c1eeba04a2
3 changed files with 40 additions and 1 deletions

View File

@ -231,8 +231,10 @@ const transacciones = {
edit: function() {
const id = $("[name='id']").val()
const fecha = $("[name='fecha']").val()
const valor = $("[name='valor']").val()
const cuenta = $("[name='cuenta']").val()
const glosa = $("[name='glosa']").val()
const detalle = $("[name='detalle']").val()
const valor = $("[name='valor']").val()
const data = JSON.stringify({
debito_id: (valor < 0) ? this.cuenta_id : cuenta,
credito_id: (valor < 0) ? cuenta : this.cuenta_id,