[fixes] pull previous doc details
diff --git a/accounts/doctype/purchase_invoice/purchase_invoice.js b/accounts/doctype/purchase_invoice/purchase_invoice.js
index 49292c2..8b7af8b 100644
--- a/accounts/doctype/purchase_invoice/purchase_invoice.js
+++ b/accounts/doctype/purchase_invoice/purchase_invoice.js
@@ -166,7 +166,7 @@
 cur_frm.cscript.get_items = function(doc, dt, dn) {
 	var callback = function(r,rt) { 
 		unhide_field(['supplier_address', 'contact_person']);				
-		cur_frm.refresh();
+		cur_frm.refresh_fields();
 	}
 	$c_obj(make_doclist(dt,dn),'pull_details','',callback);
 }
diff --git a/accounts/doctype/sales_invoice/sales_invoice.js b/accounts/doctype/sales_invoice/sales_invoice.js
index be6ec3d..f5301c1 100644
--- a/accounts/doctype/sales_invoice/sales_invoice.js
+++ b/accounts/doctype/sales_invoice/sales_invoice.js
@@ -275,7 +275,7 @@
 cur_frm.cscript.get_items = function(doc, dt, dn) {
 	var callback = function(r,rt) {
 		unhide_field(['customer_address','contact_person', 'territory','customer_group']);
-		cur_frm.refresh();
+		cur_frm.refresh_fields();
 	}
 	get_server_fields('pull_details','','',doc, dt, dn,1,callback);
 }
diff --git a/selling/doctype/sales_order/sales_order.js b/selling/doctype/sales_order/sales_order.js
index f272b2e..d50f06d 100644
--- a/selling/doctype/sales_order/sales_order.js
+++ b/selling/doctype/sales_order/sales_order.js
@@ -163,7 +163,7 @@
 					'contact_person', 'territory', 'customer_group']);
 				if(doc.customer) get_server_fields('get_shipping_address', doc.customer, '', doc, dt, dn, 0);
 			}			
-			cur_frm.refresh();
+			cur_frm.refresh_fields();
 		}
 	} 
 
diff --git a/stock/doctype/delivery_note/delivery_note.js b/stock/doctype/delivery_note/delivery_note.js
index 6467f62..5992d01 100644
--- a/stock/doctype/delivery_note/delivery_note.js
+++ b/stock/doctype/delivery_note/delivery_note.js
@@ -112,7 +112,7 @@
 			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); 
diff --git a/stock/doctype/purchase_receipt/purchase_receipt.js b/stock/doctype/purchase_receipt/purchase_receipt.js
index 419ccb4..609baa8 100644
--- a/stock/doctype/purchase_receipt/purchase_receipt.js
+++ b/stock/doctype/purchase_receipt/purchase_receipt.js
@@ -103,7 +103,7 @@
 // -----------------
 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();
 	});
 }