Skip to content

Commit

Permalink
fix: conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitwaghchaure authored May 1, 2023
1 parent cca2fce commit 3ba2b9e
Showing 1 changed file with 1 addition and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,31 +177,6 @@ def test_period_closing_with_finance_book_entries(self):

self.assertSequenceEqual(pcv_gle, expected_gle)

<<<<<<< HEAD
def make_period_closing_voucher(self, submit=True):
=======
def test_gl_entries_restrictions(self):
frappe.db.sql("delete from `tabGL Entry` where company='Test PCV Company'")
frappe.db.sql("delete from `tabPeriod Closing Voucher` where company='Test PCV Company'")

company = create_company()
cost_center = create_cost_center("Test Cost Center 1")

self.make_period_closing_voucher(posting_date="2021-03-31")

jv1 = make_journal_entry(
posting_date="2021-03-15",
amount=400,
account1="Cash - TPC",
account2="Sales - TPC",
cost_center=cost_center,
save=False,
)
jv1.company = company
jv1.save()

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

def test_closing_balance_with_dimensions_and_test_reposting_entry(self):
frappe.db.sql("delete from `tabGL Entry` where company='Test PCV Company'")
frappe.db.sql("delete from `tabPeriod Closing Voucher` where company='Test PCV Company'")
Expand Down Expand Up @@ -314,8 +289,7 @@ def test_closing_balance_with_dimensions_and_test_reposting_entry(self):
repost_doc.posting_date = today()
repost_doc.save()

def make_period_closing_voucher(self, posting_date=None, submit=True):
>>>>>>> f751727149 (fix: don't allow to make reposting for the closed period)
def make_period_closing_voucher(self, submit=True):
surplus_account = create_account()
cost_center = create_cost_center("Test Cost Center 1")
pcv = frappe.get_doc(
Expand Down

0 comments on commit 3ba2b9e

Please sign in to comment.