I want user only print status submitted not draft
I need it for only one document like delivery note
You can edit the pint format and add an if to prevent it from printing anything (?)
https://erpnext.com/docs/user/manual/en/customize-erpnext/print-format
https://erpnext.com/docs/user/manual/en/setting-up/print/print-format-builder
@clarkej @Nahuel_Nso @fkardame
Dear all
i want to prevent user to print draft delivery not all draft on system
@Ashraf_El_Sharqawy
You can use a custom client script, and remove the “Print” from icons and “Print” form menu bar.
This will make it difficult enough for a print if not impossible for printing.
Here is some code for custom script:
function removePrintBtn(frm){
var print_menu = $(".dropdown-menu > li:contains('Print')");
if (print_menu.length >0){
print_menu[0].parentElement.removeChild(print_menu[0]);
}
var print_btn = $(".fa-print");
if(print_btn.length > 0){
print_btn[0].parentElement.removeChild(print_btn[0]);
}
}
1 Like