mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-12 19:35:09 +00:00
accepted qty = received qty, if not accepted qty
This commit is contained in:
@@ -150,9 +150,10 @@ 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' : d.qty ? d.qty : d.received_qty,
|
||||
'qty' : (flt(d.qty) && flt(d.qty) < flt(d.received_qty))
|
||||
? flt(d.qty) : flt(d.received_qty),
|
||||
'stock_qty': 0,
|
||||
'rejected_qty' : 0
|
||||
'rejected_qty' : 0,
|
||||
}
|
||||
set_multiple('Purchase Receipt Item', cdn, ret, 'purchase_receipt_details');
|
||||
cur_frm.cscript.calc_amount(doc, 2);
|
||||
|
||||
Reference in New Issue
Block a user