I have a script for printing the receipt and it works perfectly fine as well as the CSS file
printJS({printable:'print-receipt', type:'html',css:'assets/css/receipt.css'});
But, when I try to add a JavaScript file with this following code i.e: javascript:'charts/charts.min.js'
and it should look like this
printJS({printable:'print-receipt', type:'html',css:'assets/css/receipt.css',javascript:'charts/charts.min.js'});
Then, there is no effect after the javascript file is added! Is there any way to add a javascript file on printJS ? Please, I need your help. Thanks in advance :)