i copied and pasted the code stored in the database and pasted it into the source and it worked. now when i did it the other way where the value comes from the database its prints a receipt with the exact drawer code but doesnt kick open the drawer.