How to hide print popup on POS & Invoice when Include Payment is checked?

We have one customer, who don’t want to make separate entry for Payment,
So we are using Include Payment (POS) checkbox.

How can we hide following popup OR rewrite it to show pdf instead of print?


Have you checked out new

Try adding js to pages.
page_js = {"page":"public/js/file.js"}