Editar valor venta

This commit is contained in:
2023-12-04 19:00:21 -03:00
parent 57579a52f1
commit 377cf51b44
5 changed files with 69 additions and 61 deletions

View File

@ -158,10 +158,10 @@
return
}
const old_value = this.unidades[idx].valor
if (old_value === parseFloat(value)) {
if (old_value === parseFloat(valor)) {
return
}
const url = '{{$urls->api}}/ventas/propiedades/unidad/' + id + '/edit'
const url = '{{$urls->api}}/ventas/propiedades/unidad/' + pid + '/edit'
const data = new FormData()
data.set('valor', valor)
return fetchAPI(url, {method: 'post', body: data}).then(response => {