Skip to content

Commit

Permalink
fix: skip check for removed validation
Browse files Browse the repository at this point in the history
  • Loading branch information
GursheenK committed Nov 6, 2023
1 parent 4867ca3 commit 0e100cd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions erpnext/accounts/doctype/payment_entry/test_payment_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,17 +683,6 @@ def test_internal_transfer_usd_to_inr(self):
self.validate_gl_entries(pe.name, expected_gle)

def test_payment_against_negative_sales_invoice(self):
pe1 = frappe.new_doc("Payment Entry")
pe1.payment_type = "Pay"
pe1.company = "_Test Company"
pe1.party_type = "Customer"
pe1.party = "_Test Customer"
pe1.paid_from = "_Test Cash - _TC"
pe1.paid_amount = 100
pe1.received_amount = 100

self.assertRaises(InvalidPaymentEntry, pe1.validate)

si1 = create_sales_invoice()

# create full payment entry against si1
Expand Down Expand Up @@ -751,8 +740,6 @@ def test_payment_against_negative_sales_invoice(self):

# pay more than outstanding against si1
pe3 = get_payment_entry("Sales Invoice", si1.name, bank_account="_Test Cash - _TC")
pe3.paid_amount = pe3.received_amount = 300
self.assertRaises(InvalidPaymentEntry, pe3.validate)

# pay negative outstanding against si1
pe3.paid_to = "Debtors - _TC"
Expand Down

0 comments on commit 0e100cd

Please sign in to comment.