parche temporal

This commit is contained in:
lemuel 2023-04-11 09:22:34 -06:00
parent 46dce0105f
commit 4b2728c57a

View File

@ -262,12 +262,12 @@ export default {
},
methods: {
hora(date) {
const fecha = moment(date)
const fecha = moment(date).add(-1, 'h')
return fecha.isValid() ? fecha.format('HH:mm') : ''
},
fechaHora(date) {
const fecha = moment(date)
const fecha = moment(date).add(-1, 'h')
return fecha.isValid() ? fecha.format('YYYY-MM-DD HH:mm') : ''
},
@ -277,9 +277,9 @@ export default {
return ''
},
retraso(row) {
const now = moment()
const horaFin = moment(row.hora_fin)
const quinceMin = moment(row.hora_fin).add(15, 'm')
const now = moment().add(-1, 'h')
const horaFin = moment(row.hora_fin).add(-1, 'h')
const quinceMin = moment(row.hora_fin).add(-1, 'h').add(15, 'm')
if (now > horaFin) {
if (now < quinceMin) return 'posible-multa'