From c17ccb455d1507351ff89cf5d410a23d74901e27 Mon Sep 17 00:00:00 2001 From: barredterra <14891507+barredterra@users.noreply.github.com> Date: Tue, 12 Oct 2021 17:48:54 +0200 Subject: [PATCH] refactor: run pre-commit --- erpnext/patches/v14_0/single_to_multi_dunning.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/patches/v14_0/single_to_multi_dunning.py b/erpnext/patches/v14_0/single_to_multi_dunning.py index 40fba041ef..af83ef7096 100644 --- a/erpnext/patches/v14_0/single_to_multi_dunning.py +++ b/erpnext/patches/v14_0/single_to_multi_dunning.py @@ -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.