FIX: Venta no se actualizaba
This commit is contained in:
@ -61,8 +61,8 @@
|
||||
return
|
||||
}
|
||||
const body = new FormData()
|
||||
const fecha = date
|
||||
fecha.setDate(date.getDate() - 1)
|
||||
const fecha = new Date(date.getTime())
|
||||
fecha.setDate(fecha.getDate() - 1)
|
||||
body.set('fecha', fecha.toISOString())
|
||||
$('#loading-spinner-fecha').show()
|
||||
APIClient.fetch(url, {method: 'post', body}).then(response => {
|
||||
@ -70,7 +70,7 @@
|
||||
if (!response) {
|
||||
return
|
||||
}
|
||||
old = date
|
||||
old = new Date(date.getTime())
|
||||
alertResponse('Fecha cambiada correctamente.')
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user