[Fix] company key error during cancellation of stock entry
This commit is contained in:
parent
6870e45276
commit
b1391ca635
@ -168,8 +168,8 @@ def delete_gl_entries(gl_entries=None, voucher_type=None, voucher_no=None,
|
|||||||
|
|
||||||
if not gl_entries:
|
if not gl_entries:
|
||||||
gl_entries = frappe.db.sql("""
|
gl_entries = frappe.db.sql("""
|
||||||
select account, posting_date, party_type, party, cost_center, fiscal_year,
|
select account, posting_date, party_type, party, cost_center, fiscal_year,voucher_type,
|
||||||
voucher_type, voucher_no, against_voucher_type, against_voucher, cost_center
|
voucher_no, against_voucher_type, against_voucher, cost_center, company
|
||||||
from `tabGL Entry`
|
from `tabGL Entry`
|
||||||
where voucher_type=%s and voucher_no=%s""", (voucher_type, voucher_no), as_dict=True)
|
where voucher_type=%s and voucher_no=%s""", (voucher_type, voucher_no), as_dict=True)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user