mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 11:39:18 +00:00
[fixes] pull previous doc details
This commit is contained in:
@@ -112,7 +112,7 @@ cur_frm.cscript.get_items = function(doc,dt,dn) {
|
||||
if(doc.sales_order_no) {
|
||||
unhide_field(['customer_address','contact_person','territory','customer_group']);
|
||||
}
|
||||
cur_frm.refresh();
|
||||
cur_frm.refresh_fields();
|
||||
}
|
||||
}
|
||||
$c_obj(make_doclist(doc.doctype, doc.name),'pull_sales_order_details','',callback);
|
||||
|
||||
@@ -103,7 +103,7 @@ cur_frm.fields_dict.contact_person.on_new = function(dn) {
|
||||
// -----------------
|
||||
cur_frm.cscript.pull_purchase_order_details = function(doc, dt, dn) {
|
||||
$c_obj(make_doclist(dt,dn),'get_po_details','',function(r,rt) {
|
||||
cur_frm.refresh();
|
||||
cur_frm.refresh_fields();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user