Lister code are not working

Upgrade to V5 and follow this Tutorial …

… or at the very least, you can look at the Ticket Lister Formats being used in that Tutorial, or this one which was for V3 …

https://sambapos.org/en/content/custom-package-delivery-system