Skip to content

Commit

Permalink
fix: Test Case
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 committed Sep 20, 2021
1 parent e2eb72e commit 846d128
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions erpnext/accounts/doctype/sales_invoice/test_sales_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -1798,6 +1798,11 @@ def test_deferred_revenue(self):
check_gl_entries(self, si.name, expected_gle, "2019-01-30")

def test_deferred_revenue_post_account_freeze_upto_by_admin(self):
frappe.set_user("Administrator")

frappe.db.set_value('Accounts Settings', None, 'acc_frozen_upto', None)
frappe.db.set_value('Accounts Settings', None, 'frozen_accounts_modifier', None)

deferred_account = create_account(account_name="Deferred Revenue",
parent_account="Current Liabilities - _TC", company="_Test Company")

Expand Down

0 comments on commit 846d128

Please sign in to comment.