Skip to content

Commit

Permalink
test: pda document submission and cancellation
Browse files Browse the repository at this point in the history
  • Loading branch information
ruthra-kumar committed Sep 2, 2022
1 parent 08f2e4e commit 1c38554
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,16 @@ def test_creation_of_ledger_entry_on_submit(self):
]

check_gl_entries(self, si.name, expected_gle, "2019-01-10")

def test_pda_submission_and_cancellation(self):
pda = frappe.get_doc(
dict(
doctype="Process Deferred Accounting",
posting_date="2019-01-01",
start_date="2019-01-01",
end_date="2019-01-31",
type="Income",
)
)
pda.submit()
pda.cancel()

0 comments on commit 1c38554

Please sign in to comment.