@emre i am implementing a discount based on scanning the barcode from a printed discount voucher. Using the idea from another post where someone implemented a voucher printing when the transaction value reached a certain amount e.g. spend £50 and get a £5 off voucher.
The flow would be that after the transaction receipt has printed a discount voucher for £5 would then print. I want to add a barcode to this printed voucher so when it is used you can simply scan the voucher to take off the discount.
I have successfully set up my system so that different barcodes scanned would deduct a different discount either by value or by percent (hurray!!! I did it by myself!!)
However, everything works great except when the voucher is scanned and the discount added, when the remaining balance is then paid i get that screen switch issue that you have fixed before for me. The main menu button disappears, the keyboard button disappears and the POS seems to change from being logged in as admin to logged in as non admin as buttons that require an admin PIN start asking for one, even though i havent actually logged in as a non admin user. what should happen is when the remaining balance is paid my auto logout rule should kick in and return the POS to the log in screen for the next user.
Heres the screen shots of the operational flow
discount voucher barcode scanned (or barcode manually typed into number pad)
discount is applied, ticket is refreshed and payment details update
Remaining amount paid by cash, in this example i used my cash button, pressing it prompts for the tender amount
My tender amount and change due message appears
THEN THIS IS THE ERROR - I should now be logged out but instead i get the screen switch error and the POS screen appears with the missing buttons and it now behaves as if i am a non admin user when i have not logged out and logged back in as non admin
This also happens if my discount barcode scanned is for a % discount, the correct %discount show on the ticket in the same way as the set value shown above but when the remaining balance is paid the screen switch happens