refactor: run pre-commit

This commit is contained in:
barredterra 2021-10-12 17:48:54 +02:00 committed by marination
parent 24f400b123
commit c17ccb455d

View File

@ -1,6 +1,8 @@
import frappe
from erpnext.accounts.general_ledger import make_reverse_gl_entries
def execute():
frappe.reload_doc("accounts", "doctype", "overdue_payment")
frappe.reload_doc("accounts", "doctype", "dunning")
@ -39,7 +41,7 @@ def execute():
dunning.save()
if dunning.status != "Resolved":
# With the new logic, dunning amount gets recorded as additional income
# With the new logic, dunning amount gets recorded as additional income
# at time of payment. We don't want to record the dunning amount twice,
# so we reverse previous GL Entries that recorded the dunning amount at
# time of submission of the Dunning.