Compare commits

..

No commits in common. "025f45b9723cdc35ed62f55ea57a119cc87c0ae8" and "e0e93f93d02f22ec67a8847faff85757b1d137d9" 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(),