From b1391ca635b3800447dab3c171775cb68ad58748 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Mon, 3 Oct 2016 12:25:04 +0530 Subject: [PATCH] [Fix] company key error during cancellation of stock entry --- erpnext/accounts/general_ledger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/accounts/general_ledger.py b/erpnext/accounts/general_ledger.py index 4af197e42c..392902c935 100644 --- a/erpnext/accounts/general_ledger.py +++ b/erpnext/accounts/general_ledger.py @@ -168,8 +168,8 @@ def delete_gl_entries(gl_entries=None, voucher_type=None, voucher_no=None, if not gl_entries: gl_entries = frappe.db.sql(""" - select account, posting_date, party_type, party, cost_center, fiscal_year, - voucher_type, voucher_no, against_voucher_type, against_voucher, cost_center + select account, posting_date, party_type, party, cost_center, fiscal_year,voucher_type, + voucher_no, against_voucher_type, against_voucher, cost_center, company from `tabGL Entry` where voucher_type=%s and voucher_no=%s""", (voucher_type, voucher_no), as_dict=True)