Skip to content

Commit

Permalink
chore: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
dj12djdjs authored and anandbaburajan committed Jun 12, 2023
1 parent 479945e commit 86c1a80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion erpnext/accounts/doctype/payment_entry/payment_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,9 @@ def validate_allocated_amount(self):
# The reference has already been allocated, or partially allocated.
if not latest or d.outstanding_amount != latest.outstanding_amount:
frappe.throw(
_("{0} {1}, has already been allocated after the creation of Payment Entry {2}.").format(d.reference_doctype, d.reference_name, self.name)
_("{0} {1}, has already been allocated after the creation of Payment Entry {2}.").format(
d.reference_doctype, d.reference_name, self.name
)
)

d.outstanding_amount = latest.outstanding_amount
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1037,6 +1037,7 @@ def test_duplicate_payment_entry_partial_allocate_amount(self):

self.assertRaises(frappe.ValidationError, pe_draft.submit)


def create_payment_entry(**args):
payment_entry = frappe.new_doc("Payment Entry")
payment_entry.company = args.get("company") or "_Test Company"
Expand Down

0 comments on commit 86c1a80

Please sign in to comment.