I have got an idea regarding the feature request…if would generally be easy…:
Print format for {{ doc.name }} which is 2015/201017 and then add “in sales order”.
This should be generated with something like that: GitHub - davidscotttufts/php-barcode: Source code for the article "How To Create Barcodes in PHP" found at http://davidscotttufts.com/2009/03/31/how-to-create-barcodes-in-php/
Does ERPNext generates or execudes PHP files for standard_macro ?
Daniel