Listar movimientos y exportar

TODO: editar
This commit is contained in:
Juan Pablo Vial
2024-09-24 21:02:28 -03:00
parent afbac7259a
commit 87dfb0ae6e
4 changed files with 342 additions and 670 deletions

View File

@ -3,11 +3,11 @@
<script type="text/javascript">
class APIClient {
static fetch(url, options=null) {
return fetchAPI(url, options)
static fetch(url, options=null, showErrors=false) {
return fetchAPI(url, options, showErrors)
}
}
function fetchAPI(url, options=null) {
function fetchAPI(url, options=null, showErrors=false) {
if (options === null) {
options = {}
}
@ -23,7 +23,9 @@
}
throw new Error(JSON.stringify({code: response.status, message: response.statusText, url}))
}).catch(error => {
console.error(error)
if (showErrors) {
console.error(error)
}
})
}
const datatables_defaults = {