diff --git a/setup/page/permission_engine/permission_engine.html b/setup/page/permission_engine/permission_engine.html index 7831447a6a..8d989586c3 100644 --- a/setup/page/permission_engine/permission_engine.html +++ b/setup/page/permission_engine/permission_engine.html @@ -5,4 +5,6 @@ One of the Roles has Submit permission. You will have to Cancel and then Amend a submitted Document for making changes. +
+
Note: A document is not accessible to a user if Permission at level 0 is not given.
diff --git a/stock/doctype/purchase_receipt/purchase_receipt.js b/stock/doctype/purchase_receipt/purchase_receipt.js index d26636e253..9ed587b37f 100644 --- a/stock/doctype/purchase_receipt/purchase_receipt.js +++ b/stock/doctype/purchase_receipt/purchase_receipt.js @@ -150,7 +150,7 @@ cur_frm.fields_dict['select_print_heading'].get_query = function(doc, cdt, cdn) cur_frm.cscript.received_qty = function(doc, cdt, cdn) { var d = locals[cdt][cdn]; ret = { - 'qty' : 0, + 'qty' : d.qty ? d.qty : d.received_qty, 'stock_qty': 0, 'rejected_qty' : 0 }