mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
test: pda document submission and cancellation
(cherry picked from commit 1c385541fa)
This commit is contained in:
@@ -57,3 +57,16 @@ class TestProcessDeferredAccounting(unittest.TestCase):
|
|||||||
]
|
]
|
||||||
|
|
||||||
check_gl_entries(self, si.name, expected_gle, "2019-01-10")
|
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()
|
||||||
|
|||||||
Reference in New Issue
Block a user