Compare commits

..

No commits in common. "bceca0c54f4e78584fb6df622c86b17164b3d92f" and "8af255bea01594d62ce3da202af5f39036b19261" have entirely different histories.

View File

@ -36,13 +36,9 @@ fun Route.valorePasti(valorePastiRepository: ValorePastiRepository){
// Cerca la tessera per codice fiscale
val valorePasto = valorePastiRepository.valorePastoByTessVassData(idTessera, idVassoio, data)
val prezzo = valorePasto.split("#").get(0)
val punti = valorePasto.split("#").get(1)
if(prezzo == "-1" && punti == "-1")
call.respondText("Prezzo e punti non trovati", status = HttpStatusCode.NotFound)
call.respond( ValorePasti(idTessera.toLong(),
idVassoio.toLong(), data,
prezzo.replace(',', '.').toDouble(),