The Script section in Automation accepts JScript (ECMA3) and MS SQL. Expressions in Rules or Printer Templates can use JScript as well.
Yes, you do this with Recipes, in the Inventory section. You can map Order Tags to Inventory Items or Inventory Products, or a combination of the two.
There are different methods to set this up depending on how you want it to work, and how granular you want to be. But this is an example, using Condiments, which are Order Tags. They are mapped to Inventory Items in this case:
