diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js index 17fad2eca43..ad367f3c9cb 100644 --- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js +++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.js @@ -644,7 +644,7 @@ frappe.ui.form.on("Purchase Invoice", { }, add_custom_buttons: function (frm) { - if (frm.doc.docstatus == 1 && frm.doc.per_received < 100) { + if (frm.doc.docstatus == 1 && frm.doc.per_received < 100 && frm.doc.update_stock == 0) { frm.add_custom_button( __("Purchase Receipt"), () => {