feature/cierres (#30)

Reservas agregar y aprobar

Co-authored-by: Juan Pablo Vial <jpvialb@incoviba.cl>
Reviewed-on: #30
This commit is contained in:
2025-09-11 15:16:12 -03:00
parent cc4cb17f1a
commit 61c813fc08
61 changed files with 3806 additions and 190 deletions

View File

@ -24,6 +24,12 @@
rut.replace(/\D/g, '')
return rut.replace(/^(\d{1,2})(\d{3})(\d{3})$/, '$1.$2.$3')
}
static clean(rut) {
if (!(typeof rut === 'string' || rut instanceof String)) {
rut = rut.toString()
}
return rut.replace(/\D/g, '')
}
static validar(rut, digito) {
if (!(typeof digito === 'string' || digito instanceof String)) {
digito = digito.toString()