ruby script for handling mandates, and submitting new orders with lua with a job string and material type