permission, user_default fix

This commit is contained in:
Rushabh Mehta 2012-12-12 16:28:21 +05:30
parent 9e12af4b7c
commit 4b8f90c5b4
2 changed files with 3 additions and 1 deletions

View File

@ -5,4 +5,6 @@
One of the Roles has <b>Submit</b> permission.
You will have to <b>Cancel</b> and then <b>Amend</b> a submitted Document for making changes.
</div>
<hr>
<div class="well">Note: A document is not accessible to a user if Permission at level 0 is not given.</div>
</div>

View File

@ -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
}