I have been struggling with this piece of code for a while now, I am developing a POS app for a shop, so one feature I have is the ability for the app to register every ite