Skip to content

Commit fbab416

Browse files
committed
fix(py3): Undefined variable
1 parent 14b5c96 commit fbab416

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

erpnext/regional/report/fichier_des_ecritures_comptables_[fec]/fichier_des_ecritures_comptables_[fec].py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ def get_gl_entries(filters):
6969

7070
gl_entries = frappe.db.sql("""
7171
select
72-
gl.posting_date as GlPostDate, gl.name as GlName, gl.account, gl.transaction_date,
72+
gl.posting_date as GlPostDate, gl.name as GlName, gl.account, gl.transaction_date,
7373
sum(gl.debit) as debit, sum(gl.credit) as credit,
7474
sum(gl.debit_in_account_currency) as debitCurr, sum(gl.credit_in_account_currency) as creditCurr,
75-
gl.voucher_type, gl.voucher_no, gl.against_voucher_type,
76-
gl.against_voucher, gl.account_currency, gl.against,
75+
gl.voucher_type, gl.voucher_no, gl.against_voucher_type,
76+
gl.against_voucher, gl.account_currency, gl.against,
7777
gl.party_type, gl.party,
78-
inv.name as InvName, inv.title as InvTitle, inv.posting_date as InvPostDate,
78+
inv.name as InvName, inv.title as InvTitle, inv.posting_date as InvPostDate,
7979
pur.name as PurName, pur.title as PurTitle, pur.posting_date as PurPostDate,
8080
jnl.cheque_no as JnlRef, jnl.posting_date as JnlPostDate, jnl.title as JnlTitle,
8181
pay.name as PayName, pay.posting_date as PayPostDate, pay.title as PayTitle,
@@ -84,7 +84,7 @@ def get_gl_entries(filters):
8484
emp.employee_name, emp.name as empName,
8585
stu.title as student_name, stu.name as stuName,
8686
member_name, mem.name as memName
87-
87+
8888
from `tabGL Entry` gl
8989
left join `tabSales Invoice` inv on gl.voucher_no = inv.name
9090
left join `tabPurchase Invoice` pur on gl.voucher_no = pur.name
@@ -124,7 +124,7 @@ def get_result_as_list(data, filters):
124124
if account_number[0] is not None:
125125
CompteNum = account_number[0]
126126
else:
127-
frappe.throw(_("Account number for account {0} is not available.<br> Please setup your Chart of Accounts correctly.").format(account.name))
127+
frappe.throw(_("Account number for account {0} is not available.<br> Please setup your Chart of Accounts correctly.").format(d.get("account")))
128128

129129
if d.get("party_type") == "Customer":
130130
CompAuxNum = d.get("cusName")

0 commit comments

Comments
 (0)