Skip to content

Commit

Permalink
chore: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
dj12djdjs committed Jun 13, 2022
1 parent 0c3493a commit 1ef44c8
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 @@ -174,7 +174,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 @@ -782,6 +782,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 1ef44c8

Please sign in to comment.