From 4b8f90c5b475caf0116848bcda7d141c6fff4339 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 12 Dec 2012 16:28:21 +0530 Subject: [PATCH] permission, user_default fix --- setup/page/permission_engine/permission_engine.html | 2 ++ stock/doctype/purchase_receipt/purchase_receipt.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/setup/page/permission_engine/permission_engine.html b/setup/page/permission_engine/permission_engine.html index 7831447a6a5..8d989586c37 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 d26636e2536..9ed587b37f9 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 }