refactor: run pre-commit
This commit is contained in:
parent
24f400b123
commit
c17ccb455d
@ -1,6 +1,8 @@
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
from erpnext.accounts.general_ledger import make_reverse_gl_entries
|
from erpnext.accounts.general_ledger import make_reverse_gl_entries
|
||||||
|
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
frappe.reload_doc("accounts", "doctype", "overdue_payment")
|
frappe.reload_doc("accounts", "doctype", "overdue_payment")
|
||||||
frappe.reload_doc("accounts", "doctype", "dunning")
|
frappe.reload_doc("accounts", "doctype", "dunning")
|
||||||
@ -39,7 +41,7 @@ def execute():
|
|||||||
dunning.save()
|
dunning.save()
|
||||||
|
|
||||||
if dunning.status != "Resolved":
|
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,
|
# 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
|
# so we reverse previous GL Entries that recorded the dunning amount at
|
||||||
# time of submission of the Dunning.
|
# time of submission of the Dunning.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user