Separacion de objetos
This commit is contained in:
@ -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()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user