so if user input a value > to the real stock (col qty_available) it should show a error or nofitication and of course dont allow saving like that to the postgresql
i tried this
{{cantidad.value > revisarDisponibilidad.data.qty_available?'No stock for that value, they are only {{revisarDisponibilidad.data.qty_available}} products available' + :'false'}}
but doesnt works, i need to show the qty available to the user
Try this {{cantidad.value > revisarDisponibilidad.data.qty_available?'No stock for that value, they are only '+ revisarDisponibilidad.data.qty_available + ' products available' :false}}
got it with {{cantidad.value > revisarDisponibilidad.data.qty_available?'No stock for that value, they are only '+ revisarDisponibilidad.data.qty_available + ' products available' :''}}