Separacion de objetos

This commit is contained in:
Juan Pablo Vial
2025-01-17 16:55:34 -03:00
parent d74beb5518
commit e031fd22d3
4 changed files with 31 additions and 36 deletions

View File

@ -115,7 +115,7 @@
})
@endforeach
@else
this.venta.add().propietario({
const propietario = this.venta.add().propietario({
proporcion: 1,
rut: '{{$venta->propietario()->rut()}}',
nombre: '{{$venta->propietario()->nombreCompleto()}}',
@ -124,7 +124,9 @@
})
@endif
this.draw().venta()
this.venta.update().facturas()
if (typeof propietario !== 'undefined') {
this.venta.add().factura(propietario)
}
this.draw().facturas()
}
}