Microtemplate fixes

Would `produced_qty,<,qty` work? or should it be `produced_qty,<,{%= doc.qty %}`?