Minor fixes
diff --git a/erpnext/accounts/doctype/journal_entry/journal_entry.py b/erpnext/accounts/doctype/journal_entry/journal_entry.py
index 9813ba4..27c946d 100644
--- a/erpnext/accounts/doctype/journal_entry/journal_entry.py
+++ b/erpnext/accounts/doctype/journal_entry/journal_entry.py
@@ -53,11 +53,10 @@
 		self.update_inter_company_jv()
 
 	def before_print(self):
-		gl_entries = frappe.get_list("GL Entry",filters={"voucher_type": "Journal Entry",
+		self.gl = frappe.get_list("GL Entry",filters={"voucher_type": "Journal Entry",
 			"voucher_no": self.name} ,
 			fields=["account", "party_type", "party", "debit", "credit", "remarks"]
 		)
-		self.gl = gl_entries
 
 	def get_title(self):
 		return self.pay_to_recd_from or self.accounts[0].account
diff --git a/erpnext/accounts/doctype/payment_entry/payment_entry.py b/erpnext/accounts/doctype/payment_entry/payment_entry.py
index ef4cd3d..00ffd17 100644
--- a/erpnext/accounts/doctype/payment_entry/payment_entry.py
+++ b/erpnext/accounts/doctype/payment_entry/payment_entry.py
@@ -71,11 +71,10 @@
 		self.update_expense_claim()
 
 	def before_print(self):
-		gl_entries = frappe.get_list("GL Entry",filters={"voucher_type": "Payment Entry",
+		self.gl = frappe.get_list("GL Entry",filters={"voucher_type": "Payment Entry",
 			"voucher_no": self.name} ,
 			fields=["account", "party_type", "party", "debit", "credit", "remarks"]
 		)
-		self.gl = gl_entries
 
 	def on_cancel(self):
 		self.setup_party_account_field()
diff --git a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py
index 9ac532d..cbade18 100644
--- a/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py
+++ b/erpnext/accounts/doctype/purchase_invoice/purchase_invoice.py
@@ -54,11 +54,10 @@
 			self.release_date = ''
 
 	def before_print(self):
-		gl_entries = frappe.get_list("GL Entry",filters={"voucher_type": "Purchase Invoice",
+		self.gl = frappe.get_list("GL Entry",filters={"voucher_type": "Purchase Invoice",
 			"voucher_no": self.name} ,
 			fields=["account", "party_type", "party", "debit", "credit"]
 		)
-		self.gl = gl_entries
 
 	def invoice_is_blocked(self):
 		return self.on_hold and (not self.release_date or self.release_date > getdate(nowdate()))
diff --git a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py
index 5e747b3..5bc1272 100644
--- a/erpnext/accounts/doctype/sales_invoice/sales_invoice.py
+++ b/erpnext/accounts/doctype/sales_invoice/sales_invoice.py
@@ -206,11 +206,10 @@
 		self.update_time_sheet(None)
 
 	def before_print(self):
-		gl_entries = frappe.get_list("GL Entry",filters={"voucher_type": "Sales Invoice",
+		self.gl = frappe.get_list("GL Entry",filters={"voucher_type": "Sales Invoice",
 			"voucher_no": self.name} ,
 			fields=["account", "party_type", "party", "debit", "credit"]
 		)
-		self.gl = gl_entries
 
 	def on_cancel(self):
 		self.check_close_sales_order("sales_order")