Merge pull request 'hotfix/actualizacion-factura-al-cambio-de-unidad' (#18) from hotfix/actualizacion-factura-al-cambio-de-unidad into develop
Reviewed-on: #18
This commit is contained in:
@ -29,6 +29,7 @@
|
|||||||
}
|
}
|
||||||
return response.json().then(json => {
|
return response.json().then(json => {
|
||||||
if (!json.edited) {
|
if (!json.edited) {
|
||||||
|
alert('No se pudo editar la unidad.')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.props.valor = parseFloat(json.input.valor)
|
this.props.valor = parseFloat(json.input.valor)
|
||||||
@ -68,8 +69,7 @@
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.update().precio(newValue).then(() => {
|
this.update().precio(newValue).then(() => {
|
||||||
facturas.venta.update().totalUnidades()
|
window.location.reload()
|
||||||
facturas.draw().facturas()
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -18,8 +18,8 @@
|
|||||||
Firmar
|
Firmar
|
||||||
</a>
|
</a>
|
||||||
<br />
|
<br />
|
||||||
<a href="{{$urls->base}}/ventas/factura/{{$venta->id}}">
|
<a href="{{$urls->base}}/ventas/factura/{{$venta->id}}" class="ui icon link">
|
||||||
Factura
|
Factura<i class="small file alternate outline icon"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
|
Reference in New Issue
Block a user