Skip to content

Commit

Permalink
fix: Deadlock while doing payment reconciliation
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 committed Jul 27, 2021
1 parent 2e5a358 commit 27ecb54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion erpnext/accounts/general_ledger.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ def delete_gl_entries(gl_entries=None, voucher_type=None, voucher_no=None,
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)
where voucher_type=%s and voucher_no=%s
for update""", (voucher_type, voucher_no), as_dict=True)

if gl_entries:
validate_accounting_period(gl_entries)
Expand Down

0 comments on commit 27ecb54

Please sign in to comment.